/* Rediseño exclusivo de la pantalla de catálogo */
.catalog{background:#0d0f13;color:#fff}
.catalog-hero{position:relative;isolation:isolate;min-height:330px;padding:64px clamp(28px,5vw,80px) 54px;overflow:hidden;background:linear-gradient(120deg,#0d1016 0%,#111a29 58%,#102d5e 140%);color:#fff;border:0;align-items:flex-end}
.catalog-hero:before{content:"";position:absolute;width:460px;height:460px;border:1px solid rgba(255,255,255,.07);border-radius:50%;right:19%;top:-260px;box-shadow:0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012);z-index:-1}
.catalog-hero:after{content:"";position:absolute;width:220px;height:5px;background:#f3c900;left:clamp(28px,5vw,80px);bottom:0;z-index:2}
.catalog-hero .eyebrow{color:#aeb8c8;margin-bottom:22px}.catalog-hero .eyebrow:before{background:#f3c900}
.catalog-hero h2{font-size:clamp(54px,6vw,96px);line-height:.83;color:#fff;text-wrap:balance}.catalog-hero h2 em{display:inline-block;color:#dce6f7;font-size:.74em;letter-spacing:-.055em;margin-top:10px}
.catalog-hero>p{width:min(31vw,390px);padding:0 0 4px 22px;border-left:1px solid rgba(255,255,255,.25);color:#c5ccda;font-size:12px;line-height:1.65}
.category-nav{position:sticky;top:0;z-index:12;padding:12px clamp(18px,3vw,46px);gap:8px;background:rgba(11,13,17,.91);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(18px);scrollbar-width:none}.category-nav::-webkit-scrollbar{display:none}
.category-button,.category-button:first-child{position:relative;border:1px solid #2a2f39;border-radius:999px;background:#15181e;color:#8e96a4;padding:14px 18px;overflow:hidden;transition:color .28s ease,border-color .28s ease,background .28s ease,transform .28s ease}
.category-button:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#173d78,#225cad);opacity:0;transition:opacity .28s ease;z-index:-1}.category-button:hover{color:#fff;border-color:#526175;transform:translateY(-2px)}.category-button.is-active{background:#173d78;color:#fff;border-color:#3768aa;box-shadow:0 8px 24px rgba(14,52,106,.35)}.category-button.is-active:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#f3c900;right:11px;top:9px}
.catalog-layout{grid-template-columns:minmax(0,1fr) minmax(330px,370px);gap:0;background:#0d0f13}
.gallery{padding:32px clamp(18px,3vw,46px) 90px;background:radial-gradient(circle at 28% 5%,rgba(39,66,111,.14),transparent 33%),#0d0f13}
.gallery-intro{align-items:center;padding:0 2px 22px;color:#7f8794}.gallery-intro span:first-child{color:#fff}.gallery-intro span:last-child:before{content:"";display:inline-block;width:24px;height:1px;background:#f3c900;margin:0 9px 3px 0}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;perspective:1200px}
.product-card,.product-card:nth-child(3n+1){--rx:0deg;--ry:0deg;--lift:0px;position:relative;display:block;border:1px solid #242933;border-radius:18px;background:#181b21;color:#fff;overflow:hidden;transform:translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));transform-style:preserve-3d;transition:transform .16s ease,border-color .35s ease,box-shadow .35s ease;will-change:transform}
.product-card:before{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.12) 48%,transparent 70%);transform:translateX(-130%);transition:transform .8s ease;pointer-events:none}.product-card:hover:before{transform:translateX(130%)}
.product-card:hover{--lift:-7px;border-color:#46566e;box-shadow:0 26px 55px rgba(0,0,0,.36),0 0 0 1px rgba(243,201,0,.13)}
.product-card .product-number{top:17px;left:17px;display:grid;place-items:center;width:34px;height:24px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(8,10,14,.72);color:#fff;backdrop-filter:blur(8px)}
.product-image{aspect-ratio:1.08/1;position:relative;background:radial-gradient(circle at 55% 42%,#e8e6df 0,#babbb9 74%,#90949a 100%)}
.product-image:after{content:"";position:absolute;inset:auto 10% 5% 10%;height:10%;border-radius:50%;background:rgba(0,0,0,.2);filter:blur(18px);pointer-events:none}
.product-card img,.product-card:nth-child(3n+1) img{position:relative;z-index:1;mix-blend-mode:multiply;filter:saturate(.9) contrast(1.02);transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .4s ease}.product-card:hover img{transform:scale(1.045);filter:saturate(1.05) contrast(1.03)}
.product-card .product-info{position:relative;z-index:4;padding:20px 20px 22px;background:linear-gradient(180deg,#171a20,#121419);color:#fff;border-top:1px solid #292e38}.product-card .product-info small{margin:0 0 8px;color:#788292;font-size:8px}.product-card .product-info strong{font-size:23px;letter-spacing:-.7px}.product-card .select-mark{padding:9px 11px;border:1px solid #353d49;border-radius:999px;color:#e7eaf0;transition:.3s}.product-card:hover .select-mark{background:#f3c900;border-color:#f3c900;color:#111;transform:translateX(2px)}
.product-card.is-selected{outline:0;border-color:#f3c900;box-shadow:0 0 0 1px #f3c900,0 20px 50px rgba(0,0,0,.4)}
.order-panel{top:0;padding:28px 24px 40px;background:#f2f0ea;border-left:1px solid #d5d2ca;box-shadow:-16px 0 50px rgba(0,0,0,.12);scrollbar-width:thin;scrollbar-color:#a5a197 transparent}.panel-kicker{padding-bottom:14px;border-bottom:1px solid #d8d4cb}.live-dot{background:#f3c900;box-shadow:0 0 0 4px rgba(243,201,0,.18)}
.selected-preview{position:relative;aspect-ratio:1.42/1;border-radius:13px;background:radial-gradient(circle,#faf9f5,#dcd9d0);box-shadow:inset 0 0 0 1px #d4d0c6;overflow:hidden}.selected-preview:after{content:"";position:absolute;inset:auto 15% 7% 15%;height:10%;background:rgba(0,0,0,.16);border-radius:50%;filter:blur(13px)}.selected-preview img{position:relative;z-index:1;filter:drop-shadow(0 14px 13px rgba(0,0,0,.18))}
.preview-placeholder{font-size:27px;color:#aaa69d}.selected-meta{padding:16px 2px 20px}.selected-meta strong{font-size:19px}.panel-section{padding:22px 2px}.section-title{margin-bottom:14px}.section-title b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#173d78;color:#fff;font-size:8px}.helper{max-width:300px}.palette{grid-template-columns:repeat(7,1fr);gap:9px}.color-dot{transition:transform .2s ease,box-shadow .2s ease}.color-dot:hover{transform:scale(1.13);box-shadow:0 6px 13px rgba(0,0,0,.2)}.color-dot.is-selected{box-shadow:0 0 0 2px #f3f0e8,0 0 0 4px #173d78}
.panel-section input,.panel-section textarea{border-radius:8px;border-color:#cbc7bd;transition:border-color .2s ease,box-shadow .2s ease}.panel-section input:focus,.panel-section textarea:focus{border-color:#173d78;box-shadow:0 0 0 3px rgba(23,61,120,.12)}
.whatsapp-button{border-radius:9px;background:#11151d;padding:19px 18px;transition:transform .25s ease,background .25s ease,box-shadow .25s ease}.whatsapp-button:hover{background:#173d78;transform:translateY(-2px);box-shadow:0 12px 24px rgba(23,61,120,.25)}.whatsapp-button b{color:#f3c900}
@media(max-width:1180px){.catalog-layout{grid-template-columns:minmax(0,1fr) 330px}.product-grid{grid-template-columns:1fr}.catalog-hero>p{width:300px}}
@media(max-width:1050px){.catalog-layout{grid-template-columns:1fr}.order-panel{box-shadow:none;border-left:0;border-top:1px solid #d5d2ca}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.catalog-hero{min-height:380px;padding:52px 22px 40px;align-items:flex-start}.catalog-hero h2{font-size:54px}.catalog-hero>p{width:100%;padding-left:15px;margin-top:26px}.category-nav{padding:10px 12px}.category-button{padding:12px 15px}.gallery{padding:24px 12px 55px}.product-grid{grid-template-columns:1fr;gap:16px}.product-card{border-radius:14px}.product-image{aspect-ratio:1.12/1}.order-panel{padding:28px 18px}}

/* Flujo compacto: nivel, prenda y configuración posterior a la elección */
.site-header{height:76px}
.designer-nav{display:flex;align-items:center;justify-content:center;gap:22px;color:#fff;font-size:9px;font-weight:900;letter-spacing:.16em}.designer-nav a{color:#898989;text-decoration:none;transition:color .25s ease}.designer-nav a:hover{color:#f3c900}.designer-nav strong{font-size:9px;letter-spacing:.18em}
.onboarding{min-height:calc(100svh - 76px)}
.onboarding-copy{padding:clamp(34px,5vw,72px)}
.onboarding h1{font-size:clamp(58px,6.5vw,112px)}
.onboarding-copy p{margin-top:28px}
.choice-card{padding:26px;min-height:0}
.choice-card strong{font-size:clamp(34px,4vw,64px)}
.choice-card.has-art .choice-art:after{background:linear-gradient(90deg,rgba(5,9,15,.88),rgba(5,9,15,.38))}

.garment-step{min-height:calc(100svh - 76px);padding:clamp(20px,2.4vw,34px) clamp(28px,5vw,80px) 26px}
.back-link{padding-bottom:12px}
.garment-step .eyebrow{margin-bottom:8px}
.garment-step h2{font-size:clamp(44px,4.4vw,68px);line-height:.82;margin-bottom:20px}
.garment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;background:transparent;border:0}
.garment-card{position:relative;aspect-ratio:.72/1;min-height:340px;padding:0;border:1px solid #d1cdc3;border-radius:16px;background:#15171b;box-shadow:0 14px 34px rgba(25,27,31,.08);isolation:isolate;overflow:hidden;transition:transform .42s cubic-bezier(.2,.75,.2,1),border-color .3s ease,box-shadow .42s ease}
.garment-card:before{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.18) 48%,transparent 70%);transform:translateX(-135%);transition:transform .8s ease;pointer-events:none}
.garment-card:after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(8,10,14,.04) 30%,rgba(8,10,14,.92) 100%);transition:background .35s ease;pointer-events:none}
.garment-card:hover{transform:translateY(-8px);border-color:#e5bf00;box-shadow:0 26px 55px rgba(20,22,26,.2),0 0 0 1px rgba(243,201,0,.18)}
.garment-card:hover:before{transform:translateX(135%)}
.garment-card:hover:after{background:linear-gradient(180deg,rgba(8,10,14,0) 22%,rgba(8,10,14,.9) 100%)}
.garment-card .garment-art{position:absolute;inset:0;z-index:0;background:#d7d5cf;overflow:hidden}
.garment-card .garment-art img{width:100%;height:100%;object-fit:cover;object-position:center;filter:grayscale(.22) saturate(.78) brightness(.88);transform:scale(1.01);transition:transform .65s cubic-bezier(.2,.75,.2,1),filter .45s ease}
.garment-card:hover .garment-art img{filter:grayscale(0) saturate(1.03) brightness(1);transform:scale(1.055)}
.garment-card .garment-code{z-index:4;top:18px;left:18px;display:grid;place-items:center;width:38px;height:27px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(10,12,16,.62);color:#fff;backdrop-filter:blur(9px)}
.garment-card .garment-icon{display:none}
.garment-card .garment-overlay{z-index:4;inset:auto 0 0;padding:58px 20px 20px;text-align:left;color:#fff;background:linear-gradient(180deg,transparent,rgba(8,10,14,.82));display:grid;grid-template-columns:1fr auto;align-items:end;gap:5px 12px}
.garment-card .garment-overlay strong{font-size:clamp(25px,2vw,34px);line-height:.95;letter-spacing:-1px}
.garment-card .garment-overlay span{grid-column:1;color:#c9cdd5;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.garment-card .garment-overlay i{grid-column:2;grid-row:1/3;align-self:end;display:grid;place-items:center;width:39px;height:39px;border:1px solid rgba(255,255,255,.42);border-radius:50%;font-size:0;font-style:normal;transition:background .3s ease,color .3s ease,border-color .3s ease,transform .3s ease}
.garment-card .garment-overlay i:after{content:"↗";font-size:16px}
.garment-card:hover .garment-overlay i{background:#f3c900;border-color:#f3c900;color:#111;transform:rotate(8deg)}

.catalog:not(.has-model-selection) .catalog-layout{grid-template-columns:minmax(0,1fr)}
.catalog:not(.has-model-selection) .order-panel{display:none}
.catalog.has-model-selection .order-panel{animation:panelReveal .42s cubic-bezier(.2,.75,.2,1) both}
@keyframes panelReveal{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}

@media(max-width:1150px){
  .garment-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px;margin-inline:auto}
  .garment-card{aspect-ratio:.82/1}
}
@media(max-width:700px){
  .site-header{height:66px}
  .designer-nav a{display:none}.designer-nav{gap:0}.designer-nav strong{font-size:8px}
  .onboarding{min-height:auto}
  .onboarding-copy{padding:48px 22px 38px}
  .onboarding h1{font-size:52px}
  .onboarding-copy p{margin-top:22px}
  .choice-card{min-height:190px;padding:20px}
  .garment-step{padding:30px 16px}
  .garment-step h2{font-size:48px;margin-bottom:24px}
  .garment-grid{grid-template-columns:1fr 1fr}
  .garment-card{aspect-ratio:.75/1;min-height:270px}
  .garment-card .garment-overlay{padding:44px 14px 15px}
  .garment-card .garment-overlay strong{font-size:24px}
  .garment-card .garment-overlay i{width:34px;height:34px}
}

/* Identidad compartida — El Faro Egresados */
.site-header .el-faro-brand{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:max-content;font-family:Arial,Helvetica,sans-serif;line-height:.78;letter-spacing:0;text-transform:uppercase}
.site-header .el-faro-brand b{font-size:23px;font-weight:950;letter-spacing:-1.5px;white-space:nowrap}
.site-header .el-faro-brand span{font-size:7px;line-height:1;letter-spacing:2.3px;color:#c7ff00;font-weight:900;white-space:nowrap}
@media(max-width:700px){.site-header .el-faro-brand b{font-size:19px}.site-header .el-faro-brand span{font-size:6px}.designer-nav strong{display:none}}

/* Catálogo 2027: composición apaisada, panel claro y experiencia móvil tipo app */
@media (min-width:1051px){
  .catalog-hero{min-height:238px;padding:38px clamp(28px,4vw,64px) 34px;align-items:center}
  .catalog-hero:before{width:360px;height:360px;top:-245px}
  .catalog-hero:after{width:170px;height:4px}
  .catalog-hero .eyebrow{margin-bottom:14px}
  .catalog-hero h2{font-size:clamp(48px,4.7vw,76px);line-height:.84}
  .catalog-hero h2 em{margin-top:7px}
  .catalog-hero>p{width:min(29vw,410px);font-size:12px}
  .catalog-layout{grid-template-columns:minmax(0,1fr) minmax(410px,450px)}
  .catalog.has-model-selection .gallery{padding-right:26px}
  .product-grid{grid-template-columns:repeat(2,minmax(250px,1fr));gap:16px}
  .product-image{aspect-ratio:1.55/1;max-height:385px}
  .product-card .product-info{padding:15px 17px 17px}
  .product-card .product-info small{margin-bottom:5px}
  .product-card .product-info strong{font-size:20px}
  .order-panel{padding:24px 28px 36px}
  .selected-preview{aspect-ratio:1.7/1;max-height:230px}
  .selected-meta{padding:13px 2px 17px}
  .panel-section{padding:18px 2px}
  .palette{grid-template-columns:repeat(8,1fr);gap:10px}
  .color-dot{width:38px;height:38px}
}

/* El detalle conserva el impacto visual sin transformarse en una página interminable. */
.model-dialog{width:min(1180px,92vw);height:min(86vh,760px);border-radius:18px;overflow:hidden;box-shadow:0 36px 90px rgba(0,0,0,.55)}
.model-detail{height:100%;scrollbar-width:thin;scrollbar-color:#79766f transparent}
.model-cover{min-height:360px;height:48vh;max-height:430px;padding:46px 4vw 24px}
.model-cover h2{font-size:clamp(50px,7vw,108px)}
.model-cover p{margin-top:20px}
.model-cover>img{width:54%;height:94%;right:3%;bottom:-8%}
.real-life{padding:34px 4vw 38px}
.real-life-head{margin-bottom:20px}
.real-life-grid{gap:14px}
.real-life-grid img{height:46vh;max-height:480px}
.model-actions{padding:11px 4vw}
.choose-model{padding:17px 20px}

@media (max-width:1050px) and (min-width:701px){
  .catalog-hero{min-height:250px;padding:40px 34px 34px}
  .catalog-hero h2{font-size:64px}
  .catalog-layout{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-image{aspect-ratio:1.45/1;max-height:390px}
  .order-panel{position:relative;display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr);gap:0 30px;padding:28px 34px}
  .order-panel>.panel-kicker,.order-panel>.whatsapp-button,.order-panel>.privacy-note{grid-column:1/-1}
  .order-panel>.panel-section{grid-column:2}
  .selected-preview,.selected-meta{grid-column:1;align-self:start}
  .selected-preview{grid-row:2/span 2;aspect-ratio:1.25/1}
  .selected-meta{grid-row:4}
}

@media (max-width:700px){
  body{background:#0d0f13;padding-bottom:env(safe-area-inset-bottom)}
  .catalog-layout,.catalog.has-model-selection .catalog-layout,.gallery,.gallery-intro{width:100%;min-width:0;max-width:100vw}
  .site-header{position:sticky;top:0;z-index:40;height:62px;padding:0 15px;background:rgba(8,10,14,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08)}
  .site-header .ghost-button{min-height:38px;padding:0 12px;border-radius:999px;font-size:7px;letter-spacing:.12em}
  .catalog-hero{min-height:0;padding:28px 18px 26px;display:block}
  .catalog-hero:before{width:230px;height:230px;top:-170px;right:-30px}
  .catalog-hero:after{left:18px;width:92px;height:3px}
  .catalog-hero .eyebrow{margin-bottom:12px;font-size:7px}
  .catalog-hero h2{font-size:42px;line-height:.84;max-width:100%}
  .catalog-hero h2 em{font-size:.7em;margin-top:6px}
  .catalog-hero>p{width:100%;margin:20px 0 0;padding:0;border:0;font-size:11px;line-height:1.55;color:#abb4c2}
  .category-nav{top:62px;padding:9px 12px;gap:7px;display:flex;overflow-x:auto;scroll-snap-type:x proximity;box-shadow:0 10px 28px rgba(0,0,0,.25)}
  .category-button,.category-button:first-child{flex:0 0 auto;scroll-snap-align:start;padding:11px 14px;font-size:8px}
  .gallery{padding:18px 12px 28px}
  .gallery-intro{padding:0 2px 14px;font-size:7px}
  .gallery-intro span:last-child{display:none}
  .product-grid{display:grid;width:100%;min-width:0;max-width:100%;grid-auto-flow:column;grid-auto-columns:82vw;grid-template-columns:none;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:0 2px 14px;scrollbar-width:none;overscroll-behavior-inline:contain}
  .product-grid::-webkit-scrollbar{display:none}
  .product-card,.product-card:nth-child(3n+1){scroll-snap-align:center;border-radius:17px}
  .product-image{aspect-ratio:1.4/1;max-height:300px}
  .product-card .product-info{padding:14px 15px 16px}
  .product-card .product-info strong{font-size:19px}
  .product-card .select-mark{padding:8px 10px}
  .catalog.has-model-selection .catalog-layout{display:flex;flex-direction:column}
  .order-panel{position:relative;top:auto;padding:20px 16px 30px;border:0;border-radius:24px 24px 0 0;box-shadow:0 -18px 45px rgba(0,0,0,.25);overflow:visible}
  .panel-kicker{position:sticky;top:119px;z-index:3;margin:-20px -16px 16px;padding:15px 18px;background:rgba(242,240,234,.96);backdrop-filter:blur(16px);border-radius:24px 24px 0 0}
  .selected-preview{aspect-ratio:1.65/1;max-height:220px;border-radius:16px}
  .selected-meta{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:13px 2px 16px}
  .selected-meta small{grid-column:1/-1}.selected-meta span{align-self:end;text-align:right}
  .panel-section{padding:18px 2px}
  .section-title{margin-bottom:12px}
  .helper{max-width:none;font-size:11px;line-height:1.5}
  .palette{grid-template-columns:repeat(7,1fr);gap:10px}
  .color-dot{width:100%;height:auto;aspect-ratio:1;border-width:2px}
  .panel-section input,.panel-section textarea{min-height:48px;border-radius:12px;font-size:16px}
  .panel-section textarea{min-height:92px}
  .field-row{gap:10px}
  .whatsapp-button{position:sticky;bottom:10px;z-index:4;margin-top:10px;border-radius:14px;box-shadow:0 14px 30px rgba(0,0,0,.25)}
  .privacy-note{padding-bottom:8px}
  .model-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .model-dialog .dialog-close{right:14px;top:14px}
  .model-cover{min-height:0;height:42dvh;padding:74px 18px 18px}
  .model-cover h2{font-size:42px;max-width:65%}
  .model-cover p{display:none}
  .model-cover>img{width:66%;height:78%;right:-5%;bottom:-5%}
  .real-life{padding:22px 14px 26px}
  .real-life-head{margin-bottom:14px}
  .real-life-head p{display:none}
  .real-life-grid{display:grid;grid-auto-flow:column;grid-auto-columns:84vw;grid-template-columns:none;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}
  .real-life-grid figure{scroll-snap-align:center}
  .real-life-grid img{height:48dvh;max-height:520px}
  .model-actions{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .choose-model{border-radius:12px;padding:17px 18px}
}

@media (max-width:390px){
  .site-header .ghost-button{padding:0 9px;font-size:6px}
  .catalog-hero h2{font-size:38px}
  .product-grid{grid-auto-columns:87vw}
  .palette{grid-template-columns:repeat(6,1fr)}
  .field-row{grid-template-columns:1fr}
}

/* Revisión final: catálogo directo, tarjetas cuadradas y pedido múltiple */
.catalog .catalog-hero{display:none}
.catalog .category-nav{position:sticky;top:0;z-index:28;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;padding:12px clamp(20px,3vw,52px);gap:10px;background:rgba(10,12,16,.96);backdrop-filter:blur(16px);border-bottom:1px solid #252a33;overflow:visible}
.catalog .category-button,.catalog .category-button:first-child{width:100%;min-width:0;justify-content:center;text-align:center;white-space:normal;line-height:1.25;min-height:48px;padding:10px 14px;border-radius:10px}
.catalog .gallery{padding-top:24px}
.catalog .product-grid{grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px}
.catalog .product-card{position:relative;aspect-ratio:1/1;min-height:0;border-radius:18px;overflow:hidden;background:#14171d}
.catalog .product-image{position:absolute;inset:0;display:block;aspect-ratio:auto;max-height:none}
.catalog .product-image:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(8,10,14,.94))}
.catalog .product-image img{width:100%;height:100%;object-fit:contain;transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .4s ease}
.catalog .product-card:hover .product-image img{transform:scale(1.035);filter:saturate(1.08) contrast(1.03)}
.catalog .product-card .product-info{position:absolute;z-index:3;left:0;right:0;bottom:0;min-height:90px;padding:18px 20px;background:transparent;border:0}
.catalog .product-number{z-index:4}
.catalog .product-card.is-selected{box-shadow:0 0 0 2px #f4ce00,0 18px 55px rgba(0,0,0,.35)}

.model-dialog{width:min(96vw,1480px);max-width:none;height:auto;max-height:92vh;overflow:hidden;border-radius:20px}
.model-dialog .model-detail{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(560px,1.6fr);grid-template-rows:auto 68px;max-height:92vh;overflow:hidden;background:#0e1014}
.model-dialog .model-cover{grid-column:1;grid-row:1;min-height:0;height:min(70vh,620px);max-height:none;padding:34px;display:flex;flex-direction:column;justify-content:flex-start;background:#f1eee6}
.model-dialog .model-cover h2{font-size:clamp(42px,5vw,76px);margin:12px 0 8px}
.model-dialog .model-cover p{max-width:390px;margin-bottom:16px}
.model-dialog .model-cover img{width:100%;height:calc(100% - 180px);min-height:220px;object-fit:contain;margin-top:auto}
.model-dialog .real-life{grid-column:2;grid-row:1;padding:24px;background:#0e1014;overflow:hidden}
.model-dialog .real-life-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}
.model-dialog .real-life-head p{max-width:430px;margin:0}
.model-dialog .real-life-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;height:calc(100% - 58px)}
.model-dialog .real-life-grid figure{height:100%;min-height:0}
.model-dialog .real-life-grid img{width:100%;height:100%;max-height:none;object-fit:cover}
.model-dialog .model-actions{grid-column:1/-1;grid-row:2;position:static;height:68px;padding:9px 24px;background:#f1eee6}
.model-dialog .choose-model{height:50px;max-width:430px;margin-left:auto}

.order-summary-section{background:#ece8de;border-radius:14px;padding:18px!important;margin-top:4px}
.order-items{display:grid;gap:8px;margin:12px 0}
.empty-order{margin:0;padding:13px;border:1px dashed #c9c3b7;border-radius:10px;color:#716d65;font-size:11px}
.order-item{display:grid;grid-template-columns:58px 1fr 30px;align-items:center;gap:11px;padding:8px;background:#fff;border:1px solid #d8d3c8;border-radius:11px;animation:panelReveal .35s ease both}
.order-item img{width:58px;height:58px;object-fit:contain;background:#ddd9d0;border-radius:8px}
.order-item span{display:grid;gap:3px;min-width:0}.order-item small{font-size:7px;letter-spacing:.13em}.order-item strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-item em{font-style:normal;font-size:9px;color:#6c6962}
.order-item button{width:28px;height:28px;border:0;border-radius:50%;background:#111;color:#fff;cursor:pointer}
.add-garment-button,.choose-another-button{width:100%;min-height:44px;border:0;border-radius:9px;font:800 9px/1 Arial;letter-spacing:.1em;cursor:pointer;transition:transform .2s ease,background .2s ease}
.add-garment-button{background:#173f7d;color:#fff}.choose-another-button{margin-top:7px;background:#fff;color:#111;border:1px solid #cec8bc}
.add-garment-button:hover,.choose-another-button:hover{transform:translateY(-2px)}

@media(max-width:1050px){
  .catalog .category-nav{top:62px}
  .model-dialog .model-detail{grid-template-columns:1fr 1.45fr}
}
@media(max-width:700px){
  .catalog .category-nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:7px;overflow:visible}
  .catalog .category-button,.catalog .category-button:first-child{min-height:44px;padding:8px;font-size:7px;border-radius:9px}
  .catalog .product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:9px;overflow:visible;padding:0}
  .catalog .product-card,.catalog .product-card:nth-child(3n+1){width:100%;aspect-ratio:1/1;border-radius:13px;scroll-snap-align:none}
  .catalog .product-card .product-info{min-height:65px;padding:10px}.catalog .product-card .product-info small{font-size:5px}.catalog .product-card .product-info strong{font-size:14px}.catalog .select-mark{display:none}
  .model-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0;overflow-y:auto}
  .model-dialog .model-detail{display:block;max-height:none;overflow:visible}
  .model-dialog .model-cover{height:auto;min-height:440px;padding:26px 18px}.model-dialog .model-cover img{height:280px;min-height:0}
  .model-dialog .real-life{padding:18px}.model-dialog .real-life-head{display:block}.model-dialog .real-life-head p{margin-top:8px}
  .model-dialog .real-life-grid{display:grid;grid-template-columns:1fr 1fr;height:310px;overflow:hidden;gap:8px}.model-dialog .real-life-grid figure{width:auto}.model-dialog .real-life-grid img{height:310px}
  .model-dialog .model-actions{position:sticky;bottom:0;height:70px;padding:10px 14px}.model-dialog .choose-model{max-width:none}
  .order-item{grid-template-columns:52px 1fr 30px}.order-item img{width:52px;height:52px}
}

/* Escala final: cuatro tarjetas realmente compactas en escritorio. */
@media(min-width:1201px){
  .catalog .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .catalog .gallery{padding:22px clamp(24px,2.4vw,46px) 42px}
  .catalog .product-card .product-info{min-height:72px;padding:13px 15px}
  .catalog .product-card .product-info small{font-size:6px;margin-bottom:3px}
  .catalog .product-card .product-info strong{font-size:16px}
  .catalog .product-card .select-mark{padding:7px 9px;font-size:7px}
}
@media(min-width:701px) and (max-width:1200px){
  .catalog .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .catalog .product-card .product-info{min-height:70px;padding:12px 14px}
  .catalog .product-card .product-info strong{font-size:16px}
}

/* Ficha premium, apaisada y sin desplazamiento interno. */
.model-dialog{border:1px solid rgba(244,206,0,.4);background:#0a0c10;box-shadow:0 45px 120px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.05) inset;animation:premiumDialogIn .45s cubic-bezier(.2,.8,.2,1) both}
.model-dialog::backdrop{background:rgba(2,4,8,.88);backdrop-filter:blur(12px) saturate(.7)}
.model-dialog .model-cover{position:relative;overflow:hidden;background:linear-gradient(145deg,#f7f4ed 0%,#e5e0d5 100%)}
.model-dialog .model-cover:before{content:"";position:absolute;width:250px;height:250px;border:1px solid rgba(19,63,125,.12);border-radius:50%;left:-135px;bottom:-115px;box-shadow:0 0 0 38px rgba(19,63,125,.035),0 0 0 78px rgba(19,63,125,.025)}
.model-dialog .model-cover:after{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(#f4ce00,#173f7d)}
.model-dialog .model-cover>*{position:relative;z-index:1}
.model-dialog .model-cover img{filter:drop-shadow(0 22px 22px rgba(0,0,0,.22));transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.model-dialog .model-cover:hover img{transform:translateY(-5px) scale(1.018)}
.model-dialog .real-life{position:relative;background:radial-gradient(circle at 80% 0%,rgba(23,63,125,.22),transparent 38%),#0c0f14}
.model-dialog .real-life-grid figure{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:#080a0d}
.model-dialog .real-life-grid figure:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.13) 50%,transparent 58%);transform:translateX(-140%);transition:transform .8s ease;pointer-events:none}
.model-dialog .real-life-grid figure:hover:after{transform:translateX(140%)}
.model-dialog .real-life-grid img{transition:transform .65s cubic-bezier(.2,.8,.2,1),filter .45s ease}
.model-dialog .real-life-grid figure:hover img{transform:scale(1.025);filter:saturate(1.08)}
.model-dialog .model-actions{border-top:1px solid #d4cec1;background:linear-gradient(90deg,#f5f2ea,#e9e4d9)}
.model-dialog .choose-model{position:relative;overflow:hidden;box-shadow:0 10px 26px rgba(23,63,125,.24);transition:transform .25s ease,box-shadow .25s ease}
.model-dialog .choose-model:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(23,63,125,.34)}
.model-dialog .dialog-close{border-color:rgba(255,255,255,.35);background:rgba(8,10,14,.78);backdrop-filter:blur(10px);box-shadow:0 0 0 4px rgba(244,206,0,.12)}
@keyframes premiumDialogIn{from{opacity:0;transform:translateY(22px) scale(.975)}to{opacity:1;transform:none}}

@media(max-width:700px){
  .model-dialog{border:0;animation:none}
}
