:root{color-scheme:dark;--bg:#090b14;--panel:#131725;--line:#272c40;--text:#f2f4ff;--muted:#9aa3bd;--accent:#a679ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 85% -10%,#291b49,transparent 38%),var(--bg);font:15px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px max(22px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:#0d101bcc;position:sticky;top:0;backdrop-filter:blur(15px);z-index:5}.logo{font-size:23px;font-weight:850;letter-spacing:-.8px;white-space:nowrap}.logo span{color:var(--accent)}a{color:inherit;text-decoration:none}nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap}nav a:hover{color:var(--accent)}main{max-width:1160px;margin:auto;padding:30px 22px 80px;min-height:75vh}.hero{padding:70px 40px;background:linear-gradient(120deg,#24163f,#11172b);border:1px solid #393052;border-radius:24px;margin-bottom:25px}.hero h1{font-size:clamp(30px,5vw,52px);max-width:740px;line-height:1.13;margin:12px 0}.hero p{color:#c2bdd2}.eyebrow,small{color:#b6a1f7;letter-spacing:.06em}.filters{display:flex;gap:10px;margin:25px 0}.filters input{flex:2}.filters select{flex:1}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.product,.panel,.auth,.detail{background:var(--panel);border:1px solid var(--line);border-radius:19px;overflow:hidden}.product{transition:transform .2s,border-color .2s}.product:hover{transform:translateY(-3px);border-color:#654c9d}.cover{height:175px;background:linear-gradient(130deg,#3d235f,#181f38);display:grid;place-items:center;font-size:68px;color:#b697ff}.cover img,.detail-art img{width:100%;height:100%;object-fit:cover}.product-body{padding:20px}.product h3{font-size:19px;margin:6px 0}.product p{color:var(--muted);min-height:44px}.price{font-size:24px;font-weight:800;margin:12px 0}.btn,button{display:inline-block;background:linear-gradient(100deg,#8454e9,#b06bff);border:0;color:white;font-weight:750;padding:11px 18px;border-radius:10px;cursor:pointer;font:inherit}.btn:hover,button:hover{filter:brightness(1.1)}.secondary{background:#2c3144}.textbutton{background:none;padding:0;color:var(--muted)}.inline{display:inline}.detail{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:30px}.detail-art{min-height:300px;background:linear-gradient(130deg,#3d235f,#181f38);display:grid;place-items:center;font-size:100px;border-radius:12px;overflow:hidden}.detail h1{font-size:36px}.muted,footer{color:var(--muted)}.auth{max-width:460px;margin:40px auto;padding:30px}.panel{padding:24px;margin:20px 0}.panel h2{margin-top:0}form label{display:block;margin:13px 0;color:#c9cee0}input,select,textarea{background:#0b0e19;border:1px solid #363b51;border-radius:10px;padding:12px 14px;color:white;font:inherit;width:100%;margin-top:5px}textarea{min-height:90px;resize:vertical}form button{margin-top:8px}.line{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px;border-bottom:1px solid var(--line)}.line form{flex-shrink:0}.line button{margin:0}.owner-title{display:flex;justify-content:space-between;align-items:center}.pill{background:#32244f;padding:9px 14px;border-radius:100px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stats .panel{margin:0}.stats h2{font-size:32px;margin:5px 0}.order{border-top:1px solid var(--line);padding:15px 0}.actions{display:flex;gap:10px}.empty{padding:30px;color:var(--muted)}footer{text-align:center;border-top:1px solid var(--line);padding:25px}@media(max-width:700px){header{position:static;align-items:flex-start;flex-direction:column;padding:15px 20px}nav{gap:12px;font-size:13px}.hero{padding:40px 23px}.filters{flex-direction:column}.detail{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.owner-title{align-items:flex-start;flex-direction:column}.line{align-items:flex-start;flex-direction:column}}

/* Dashboard Owner V2 */
main:has(.dashboard){max-width:1480px;padding:22px 20px 70px}.dashboard{display:grid;grid-template-columns:235px minmax(0,1fr);gap:22px;align-items:start}.dash-sidebar{background:#111524;border:1px solid #282d43;border-radius:18px;padding:20px 13px;position:sticky;top:100px}.dash-brand{font-size:18px;font-weight:800;padding:8px 12px 20px;color:#b991ff}.dash-brand span{color:#f3f0ff}.dash-brand b{color:#b991ff}.dash-sidebar>small{display:block;padding:10px 12px;color:#727e9b;font-size:11px}.dash-link{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:11px;color:#a8b1c9;font-weight:600;margin:3px 0}.dash-link span{font-size:21px;width:23px;text-align:center}.dash-link:hover,.dash-link.selected{background:#302349;color:#f7efff}.dash-link b{margin-left:auto;background:#8354df;border-radius:12px;padding:1px 8px;font-size:12px}.dash-sidebar-bottom{border-top:1px solid #292f42;margin-top:20px;padding:18px 12px 2px;color:#aab1c7}.dash-main{min-width:0}.dash-top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:25px}.dash-top h1{font-size:clamp(25px,3vw,34px);line-height:1.2;margin:6px 0}.dash-top p,.dash-section-heading p{color:#8f9bb6;margin:4px 0}.dash-owner{white-space:nowrap;border:1px solid #493765;color:#b99aff;border-radius:25px;padding:7px 13px}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.dash-stat,.dash-card{background:#141827;border:1px solid #2a3045;border-radius:16px;padding:20px}.dash-stat small{display:block;color:#a7b0c7;letter-spacing:0}.dash-stat strong{display:block;font-size:clamp(22px,2.5vw,31px);line-height:1.4;margin:10px 0}.dash-stat span{font-size:12px;color:#8290ab}.dash-two{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.dash-card{margin-bottom:18px}.dash-card h2,.dash-card h3{margin:0 0 12px}.dash-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dash-section-heading a:not(.btn){color:#bb9aff}.dash-record{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #292f42;padding:15px 0}.dash-record p{margin:4px 0;color:#9aa4bd;font-size:13px;overflow-wrap:anywhere}.dash-record strong{overflow-wrap:anywhere}.dash-record form{flex-shrink:0}.dash-record button{font-size:13px}.status{display:inline-block;border-radius:20px;padding:5px 10px;background:#2d3143;color:#c6cde2;font-size:12px;white-space:nowrap}.status.review{background:#473521;color:#f8c878}.status.delivered{background:#1d423a;color:#7ae1bb}.status.rejected{background:#4a252c;color:#ffb0b7}.quick-links{display:grid;gap:9px}.quick-links a{display:block;background:#20253a;border:1px solid #313951;border-radius:11px;padding:12px}.quick-links a:hover{background:#30284a}.dash-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.dash-form .wide{grid-column:1/-1}.dash-form button{justify-self:start}.dash-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.dash-chips span{border:1px solid #3e355b;background:#261e3c;padding:7px 12px;border-radius:20px}.dash-actions{display:flex;flex-wrap:wrap;gap:6px}.dash-actions button{padding:8px 10px}@media(max-width:1050px){.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-two{grid-template-columns:1fr}}@media(max-width:760px){main:has(.dashboard){padding:15px 12px 55px}.dashboard{grid-template-columns:1fr;gap:14px}.dash-sidebar{position:static;padding:12px}.dash-brand{padding:5px 8px}.dash-sidebar>small,.dash-sidebar-bottom{display:none}.dash-sidebar{display:flex;flex-wrap:wrap;gap:5px}.dash-brand{width:100%}.dash-link{font-size:12px;padding:8px 10px;gap:5px;margin:0}.dash-link span{font-size:15px;width:auto}.dash-top{align-items:flex-start}.dash-owner{font-size:12px}.dash-card{padding:15px}.dash-record{align-items:flex-start;flex-direction:column}.dash-form{grid-template-columns:1fr}.dash-form .wide{grid-column:auto}}

/* Catálogo de inicio inspirado en la organización visual de Recursos */
.resources-hero{display:flex;position:relative;overflow:hidden;align-items:center;min-height:290px;border:1px solid #393052;border-radius:22px;background:radial-gradient(circle at 85% 20%,#53307a88,transparent 36%),linear-gradient(115deg,#211a39,#101726);padding:42px;margin-bottom:34px}.resources-hero-copy{position:relative;z-index:1;max-width:720px}.resources-hero h1{font-size:clamp(28px,4.5vw,48px);line-height:1.15;letter-spacing:-.04em;margin:12px 0}.resources-hero p{color:#c5c6d6;max-width:590px}.hero-decoration{position:absolute;right:7%;font-size:180px;color:#ac82ff24}.hero-actions{display:flex;gap:20px;align-items:center;margin-top:23px}.hero-link,.subtle-link{color:#c6a9ff;font-weight:650}.resource-section{margin:32px 0 42px}.resource-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:19px}.resource-heading h2{font-size:26px;margin:4px 0;letter-spacing:-.03em}.resource-heading p{margin:0;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.category-tile{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:20px;background:#14192a;border:1px solid #2a3044;border-radius:15px;transition:.2s}.category-tile:hover,.category-tile.selected{border-color:#9974ef;background:#1e2037;transform:translateY(-2px)}.category-symbol{display:grid;place-items:center;background:#35274f;color:#c7a9ff;border-radius:11px;width:39px;height:39px;font-size:23px;margin-bottom:5px}.category-tile small{color:var(--muted);letter-spacing:0}.resource-toolbar{display:flex;gap:10px;background:#121726;border:1px solid #292e43;padding:12px;border-radius:15px;margin:16px 0 20px;align-items:center}.search-wrap{display:flex;align-items:center;gap:9px;flex:2;min-width:140px}.search-wrap span{font-size:23px;color:#a5a9c5}.resource-toolbar input{width:100%}.resource-toolbar select{flex:1;min-width:120px}.resource-product-grid .product{border-radius:15px}.resource-product-grid .cover{height:185px}.resource-product-grid .product-body{padding:17px}.resource-product-grid .product h3{font-size:17px}.resource-product-grid .product p{font-size:13px}.resource-product-grid .price{font-size:21px}.purchase-info{background:#131927;border:1px solid #2a3044;border-radius:14px;padding:20px 24px;color:#aeb6ce}.purchase-info span{font-weight:750;color:#e4ddff}.purchase-info p{margin:6px 0 0}@media(max-width:760px){.resources-hero{padding:28px 23px;min-height:250px}.hero-decoration{right:-10%;font-size:120px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-toolbar{flex-wrap:wrap}.search-wrap{flex-basis:100%}.resource-toolbar select{min-width:0;flex:1}.resource-toolbar button{width:100%}.resource-heading h2{font-size:23px}}@media(max-width:390px){.category-tile{padding:14px}.resource-toolbar select{flex-basis:100%}}

/* V4: responsive storefront repair, overrides legacy rules */
html{scroll-behavior:smooth}body{min-width:320px;background:#090b14;background-image:radial-gradient(ellipse at 75% 0%,rgba(100,59,169,.18),transparent 48%)}
header{padding:16px max(20px,calc((100vw - 1160px)/2));min-height:72px}header nav{display:flex;gap:18px}header nav a{font-size:14px;font-weight:600}
main{width:100%;max-width:1160px;margin:0 auto;padding:30px 22px 80px}.resources-hero{display:flex!important;align-items:center;min-height:315px;padding:clamp(24px,5vw,52px)!important;border-radius:22px!important;background:radial-gradient(circle at 88% 25%,rgba(155,94,241,.22),transparent 42%),linear-gradient(120deg,#1e1735,#101522)!important;border:1px solid #37304e!important;margin-bottom:38px}.resources-hero-copy{max-width:710px}.resources-hero h1{font-size:clamp(30px,4.5vw,49px);font-weight:800;line-height:1.12}.resources-hero p{font-size:15px;line-height:1.75}.hero-decoration{pointer-events:none}.hero-actions{display:flex;flex-wrap:wrap;gap:18px}.resource-section{margin:35px 0 45px}.resource-heading{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.resource-heading h2{font-size:clamp(23px,3vw,29px)}.category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:20px}.category-tile{display:flex!important;min-width:0;min-height:136px;flex-direction:column;align-items:flex-start;gap:7px;padding:20px!important;border:1px solid #30364e!important;background:#151a2a!important;border-radius:16px!important;overflow-wrap:anywhere}.category-tile strong{font-size:15px;line-height:1.3}.category-tile small{font-size:12px}.category-symbol{flex-shrink:0}.resource-toolbar{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) minmax(150px,1fr) auto;gap:12px!important;align-items:center;padding:14px!important}.resource-toolbar .search-wrap{display:flex;align-items:center;min-width:0;gap:8px}.resource-toolbar input,.resource-toolbar select{width:100%;min-width:0;margin:0!important;min-height:44px}.resource-toolbar button{margin:0;min-height:44px;padding:10px 20px}.resource-product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.resource-product-grid .product{min-width:0}.resource-product-grid .cover{height:195px}.resource-product-grid .product-body{padding:18px}.resource-product-grid .product h3{overflow-wrap:anywhere}.purchase-info{margin-top:24px}.empty{grid-column:1/-1;text-align:center;padding:38px 20px;border:1px dashed #373d57;border-radius:16px;background:#111523}.empty a{color:#c4a4ff;text-decoration:underline}footer{margin-top:40px}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.resource-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-toolbar .search-wrap{grid-column:1/-1}.resource-toolbar button{grid-column:1/-1}}
@media(max-width:600px){header{padding:15px 16px;gap:12px;position:static}header .logo{font-size:21px}header nav{gap:8px 15px}header nav a{font-size:13px}main{padding:17px 15px 55px}.resources-hero{padding:28px 21px!important;min-height:260px;margin-bottom:28px}.resources-hero h1{font-size:31px}.resources-hero p{font-size:14px}.hero-decoration{font-size:90px;right:-8%;opacity:.35}.hero-actions{gap:14px}.hero-actions .btn{padding:11px 14px}.resource-section{margin:28px 0 34px}.resource-heading h2{font-size:24px}.resource-heading p{font-size:13px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.category-tile{min-height:124px;padding:14px!important}.category-symbol{width:34px;height:34px;font-size:20px}.category-tile strong{font-size:14px}.resource-toolbar{grid-template-columns:1fr;gap:10px!important}.resource-toolbar .search-wrap,.resource-toolbar button{grid-column:auto}.resource-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.resource-product-grid .cover{height:120px;font-size:43px}.resource-product-grid .product-body{padding:12px}.resource-product-grid .product h3{font-size:14px}.resource-product-grid .product p{font-size:12px;min-height:0}.resource-product-grid .price{font-size:17px}.resource-product-grid .btn{font-size:12px;padding:9px 11px}.purchase-info{padding:17px}.empty{padding:30px 14px}}
@media(max-width:370px){.resource-product-grid{grid-template-columns:1fr}.resource-product-grid .cover{height:170px}}

/* V5: acceso unificado y aceptación explícita */
nav .nav-auth{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(110deg,#8350e8,#a66cf8);color:#fff!important;border:1px solid #a978f8;border-radius:11px;padding:10px 16px;font-weight:750;white-space:nowrap;text-decoration:none}
.auth-modern{max-width:470px;margin:48px auto;padding:32px;border:1px solid #2b2840;border-radius:22px;background:linear-gradient(145deg,#171423,#0d0d17);box-shadow:0 18px 55px #0004}
.auth-modern .auth-mark{width:48px;height:48px;border-radius:15px;background:#703ad2;display:grid;place-items:center;font-size:28px;margin-bottom:18px}
.auth-modern h1{margin:10px 0}.auth-modern .muted{margin-bottom:25px}.auth-modern form{display:grid;gap:14px}.auth-modern label{display:grid;gap:8px}.auth-modern input{width:100%;box-sizing:border-box}.auth-modern .auth-submit{width:100%;margin-top:6px;min-height:45px}.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:22px;font-size:13px}.auth-links a,.terms-check a{color:#c49aff;text-decoration:underline;text-underline-offset:3px}
.checkout-form{max-width:750px}.terms-consent{padding:18px;border:1px solid #353048;border-radius:15px;background:#171421;margin:20px 0}.terms-check{display:flex!important;align-items:flex-start;gap:12px;line-height:1.5}.terms-check input{width:19px!important;height:19px;flex:0 0 19px;margin-top:2px;accent-color:#965ce9}.terms-preview{margin-top:14px;border-top:1px solid #393246;padding-top:12px}.terms-preview summary{cursor:pointer;color:#c49aff;font-weight:650}.terms-content{font-size:14px;line-height:1.65;color:#c9c3d6}.terms-content h3{color:#f5f2ff;font-size:15px;margin:18px 0 5px}.terms-content p{margin:0 0 9px}.terms-page{max-width:850px;margin:24px auto;padding:28px}
@media(max-width:650px){.auth-modern{margin:24px 10px;padding:23px 18px}.auth-links{flex-direction:column}nav .nav-auth{padding:8px 10px;font-size:12px}.terms-page{padding:18px}}

/* V6: carrito y navegación responsive */
.top-nav{display:flex;flex:1;align-items:center;justify-content:space-between;gap:18px;min-width:0}.nav-main,.nav-account{display:flex;align-items:center;gap:15px}.nav-account{margin-left:auto}.cart-nav{white-space:nowrap}.cart-empty{max-width:650px;margin:24px auto;padding:65px 22px;text-align:center;border:1px solid #35304c;background:linear-gradient(140deg,#19152b,#101422);border-radius:24px}.cart-empty-icon{width:88px;height:88px;margin:0 auto 20px;display:grid;place-items:center;background:#2c2246;border:1px solid #594177;border-radius:23px;font-size:38px}.cart-empty h2{font-size:clamp(24px,4vw,32px);margin:8px 0}.cart-empty p{color:var(--muted);margin:0 0 24px}.cart-list{border:1px solid var(--line);background:#131725;border-radius:17px;overflow:hidden}.cart-item{display:flex;align-items:center;gap:18px;padding:18px;border-bottom:1px solid var(--line)}.cart-item:last-child{border:0}.cart-item-icon{display:grid;place-items:center;background:#302349;border-radius:12px;width:56px;height:56px;flex-shrink:0;font-size:26px}.cart-item-info{flex:1;min-width:0}.cart-item-info strong,.cart-item-info small{display:block;overflow-wrap:anywhere}.cart-item-info small{color:var(--muted)}.cart-item-price{white-space:nowrap}.cart-total{display:flex;justify-content:space-between;align-items:center;padding:20px;margin:15px 0;background:#181629;border:1px solid #36314c;border-radius:14px}.cart-total strong{font-size:24px;color:#c49aff}@media(max-width:700px){header{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}.logo{font-size:20px}.top-nav{width:100%;flex-basis:100%;justify-content:space-between;flex-wrap:nowrap}.nav-main,.nav-account{gap:10px}.top-nav a{font-size:13px}.nav-account{margin-left:auto}.cart-item{flex-wrap:wrap;gap:10px}.cart-item-info{flex-basis:calc(100% - 70px)}.cart-item-price{margin-left:66px}.cart-item form{margin-left:auto}.cart-empty{padding:45px 18px}}

/* Private product conversations */
.private-chat{max-width:900px;margin:28px auto;background:rgba(18,16,29,.82);border:1px solid #30283f;border-radius:20px;overflow:hidden;box-shadow:0 18px 50px #0004}.chat-heading{padding:22px 24px;border-bottom:1px solid #30283f;display:grid;gap:8px;background:linear-gradient(120deg,#211337,#10121e)}.chat-heading>a{color:#c6a5ff;text-decoration:none}.chat-heading h1{margin:5px 0}.chat-heading>small,.chat-composer>small{color:#aaa2b9}.chat-messages{padding:20px;display:flex;flex-direction:column;gap:14px;min-height:180px;max-height:55vh;overflow:auto}.chat-message{max-width:88%;align-self:flex-start;background:#211e2b;border:1px solid #393044;border-radius:15px;padding:13px 15px;overflow-wrap:anywhere}.chat-message.mine{align-self:flex-end;background:#2b2040;border-color:#6442a0}.chat-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;font-size:.82rem}.chat-meta small{color:#aaa2b9}.chat-text{white-space:pre-wrap;line-height:1.55;margin:9px 0 2px}.chat-text a{color:#c9a7ff;overflow-wrap:anywhere}.chat-image{display:block;max-width:min(100%,440px);max-height:380px;object-fit:contain;border-radius:12px;margin-top:10px}.chat-video{display:block;width:min(100%,480px);max-height:360px;border-radius:12px;margin-top:10px;background:#000}.chat-attachment{display:inline-block;margin-top:10px;color:#d3b8ff;overflow-wrap:anywhere}.chat-composer{border-top:1px solid #30283f;padding:20px;display:grid;gap:13px;background:#100f18}.chat-composer textarea{min-height:92px;resize:vertical}.chat-composer input[type=file]{display:block;width:100%;margin-top:9px;font-size:.9rem}.chat-file-label{border:1px dashed #59466f;border-radius:12px;padding:13px}.chat-composer button{justify-self:start}.private-chat .empty{padding:30px 10px;text-align:center;color:#b8b0c4}.line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #30283f;text-decoration:none;color:inherit}.line small{color:#aaa2b9}@media(max-width:600px){.private-chat{margin:12px 0;border-radius:14px}.chat-heading,.chat-composer{padding:15px}.chat-messages{padding:12px;max-height:52vh}.chat-message{max-width:96%;padding:11px}.chat-image,.chat-video{max-width:100%}}


/* Navegación compacta para móviles: menú de tres líneas desplegable */
.mobile-menu-toggle{display:none!important}
.mobile-menu-button{display:none;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;width:44px;height:42px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#131725;flex-shrink:0}
.mobile-menu-button span{display:block;height:2px;width:100%;border-radius:2px;background:var(--text)}
.top-nav{min-width:0}
.nav-main,.nav-account{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
@media(max-width:700px){
  header{position:sticky;top:0;align-items:center;flex-direction:row;flex-wrap:wrap;gap:10px;padding:10px 14px}
  .logo{font-size:20px;margin-right:auto}
  .mobile-menu-button{display:flex;margin:0}
  .top-nav{display:none;order:3;flex:0 0 100%;width:100%;padding-top:8px;border-top:1px solid var(--line)}
  .mobile-menu-toggle:checked~.top-nav{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .nav-main,.nav-account{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%}
  .top-nav a,.top-nav .textbutton{display:block;width:100%;padding:12px 10px;border-radius:8px;font-size:15px;text-align:left}
  .top-nav a:hover{background:#1b2032}
  .top-nav .inline{display:block;width:100%;padding:0}
  .top-nav .textbutton{margin:0}
  main{padding:18px 14px 55px;min-width:0}
  .resource-heading{gap:10px;align-items:flex-start;flex-wrap:wrap}
  .resource-toolbar{grid-template-columns:minmax(0,1fr)!important}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .category-tile{min-width:0;padding:13px!important}
  .hero-actions{flex-wrap:wrap}
  .hero-actions .btn,.hero-actions .hero-link{max-width:100%;text-align:center}
  .product-body{padding:14px}
  .product-body .btn{width:100%;text-align:center;padding:10px 12px}
  .dash-record,.dash-section-heading{gap:10px;flex-wrap:wrap}
  .dash-record form{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}
  .dash-record button{max-width:100%;white-space:normal}
  img,video,iframe{max-width:100%}
}

/* V11 — mensajes dentro del acceso, jerarquía y espaciado */
.auth-modern{max-width:480px;padding:clamp(20px,4vw,36px);overflow:visible}
.auth-modern h1{font-size:clamp(25px,4vw,33px);letter-spacing:-.035em;line-height:1.2}
.auth-modern .muted{line-height:1.6;margin:10px 0 24px}
.auth-modern form{gap:8px}
.auth-modern label{font-weight:650;color:#f0ebff;margin:10px 0 4px;gap:5px}
.auth-modern input{min-height:48px;transition:border-color .15s,box-shadow .15s}
.auth-modern input:focus{outline:0;border-color:#a879ff;box-shadow:0 0 0 3px #9c69ff30}
.auth-modern input[aria-invalid=true]{border-color:#e98b9b}
.field-hint{display:block;font-size:12px;font-weight:400;color:#a6a0ba}
.auth-alert{display:grid;gap:3px;background:#351c2b;border:1px solid #b65c77;border-left:4px solid #f28da4;border-radius:12px;padding:13px 15px;color:#ffe2e8;font-size:13px;line-height:1.5;margin:16px 0}
.auth-alert strong{font-size:14px}.auth-alert span{overflow-wrap:anywhere}
.auth-modern .auth-submit{min-height:48px;font-weight:750;margin-top:16px}
.auth-note{font-size:12px;color:#938da8;line-height:1.5;margin:22px 0 0;padding-top:16px;border-top:1px solid #30283f}
button,.btn{font-weight:700;line-height:1.3;overflow-wrap:anywhere;transition:filter .15s,transform .15s}
button:active,.btn:active{transform:scale(.985)}
button:focus-visible,.btn:focus-visible,a:focus-visible{outline:2px solid #b994ff;outline-offset:3px}
.panel,.dash-card,.auth-modern{box-shadow:0 12px 32px #0002}
.line,.dash-record{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.auth-modern{margin:18px auto;padding:22px 18px}.auth-links{gap:10px}.dash-actions,.actions{flex-wrap:wrap}.dash-record>div,.line>span{min-width:0}.dash-record button,.line button{max-width:100%}input,select,textarea{min-width:0;max-width:100%}}
@media(max-width:390px){.auth-modern{padding:20px 15px}.auth-modern h1{font-size:25px}.nav-account,.nav-main{min-width:0}}
