/* ============================================================
   NPV INVERSIONES — 2026 redesign
   Paleta: navy + dorado (logo) con acento púrpura heredado del sitio actual
   ============================================================ */
:root {
  --navy: #0D1A34;
  --navy-2: #122346;
  --navy-3: #1B2F5C;
  --ink: #0A0F1E;
  --gold: #C9A24A;
  --gold-2: #E3C878;
  --gold-3: #F2E2B0;
  --purple: #302F98;
  --cream: #F6F3EC;
  --cream-2: #EFEAE0;
  --white: #FFFFFF;
  --text: #1C2233;
  --muted: #5B6479;
  --line: rgba(13, 26, 52, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(13, 26, 52, .06), 0 1px 2px rgba(13, 26, 52, .04);
  --shadow-md: 0 12px 32px -8px rgba(13, 26, 52, .18);
  --shadow-lg: 0 32px 64px -16px rgba(13, 26, 52, .35);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.boot, html.boot body { overflow: hidden !important; height: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--navy); }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; } }
.section__title { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 4rem); font-variation-settings: 'opsz' 144; }
.section__lead { font-size: 1.1rem; color: var(--muted); margin-top: 20px; max-width: 62ch; }
.serif-italic { font-style: italic; font-weight: 400; color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-2); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,162,74,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,162,74,.6);} 70% { box-shadow: 0 0 0 12px rgba(201,162,74,0);} 100% { box-shadow: 0 0 0 0 rgba(201,162,74,0);} }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%); opacity: 0; transition: opacity .3s; z-index: -1; }
.btn:hover::after { opacity: 1; }
.btn--sm { padding: 12px 20px; font-size: .88rem; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(201,162,74,.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(201,162,74,.75); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border: 1.5px solid currentColor; color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--ghost { color: inherit; border: 1px solid var(--line); }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.link-arrow i { width: 28px; height: 1.5px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.link-arrow i::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.link-arrow:hover i { width: 44px; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--navy); display: grid; place-items: center; color: var(--gold); transition: opacity .7s var(--ease), visibility .7s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { text-align: center; }
.preloader__logo { width: 80px; height: 80px; margin: 0 auto 16px; }
.preloader__logo path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s var(--ease) forwards; }
.preloader__logo .pl-2 { animation-delay: .15s; } .preloader__logo .pl-3 { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__text { font-family: var(--serif); color: #fff; font-size: 1.5rem; letter-spacing: .08em; }
.preloader__text span { color: var(--gold-2); font-weight: 300; }
.preloader__bar { width: 160px; height: 2px; background: rgba(255,255,255,.12); margin: 18px auto 0; overflow: hidden; border-radius: 2px; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold); animation: load 1.3s var(--ease-io) forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- Cursor / progress ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(201,162,74,.14), transparent 60%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s; will-change: transform; }
body.has-cursor .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 120; transition: width .1s linear; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background .4s, box-shadow .4s, backdrop-filter .4s, height .4s; color: #fff; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: block; height: 40px; position: relative; }
.nav__logo { height: 100%; width: auto; transition: opacity .3s; }
.nav__logo--dark { position: absolute; inset: 0; opacity: 0; }
.nav.is-scrolled { background: rgba(246,243,236,.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(13,26,52,.3); color: var(--navy); height: 64px; }
.nav.is-scrolled .nav__logo--light { opacity: 0; } .nav.is-scrolled .nav__logo--dark { opacity: 1; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; padding: 10px 14px; font-weight: 500; font-size: .95rem; opacity: .85; border-radius: 999px; transition: opacity .3s, background .3s; }
.nav__links a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav.is-scrolled .nav__links a:hover { background: rgba(13,26,52,.06); }
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav__badge { font-size: .62rem; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: middle; font-weight: 700; letter-spacing: .04em; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta { border-color: rgba(255,255,255,.25); }
.nav.is-scrolled .nav__cta { border-color: var(--line); }
.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 50%; }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .nav__cta span { display: none; }
  .nav__cta { padding: 10px; }
  .nav__burger { display: flex; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--navy); color: #fff; flex-direction: column; padding: 32px 24px; gap: 8px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 1.5rem; font-family: var(--serif); padding: 14px 8px; }
  .nav.is-scrolled .nav__links { inset-top: 64px; top: 64px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; transform: translateZ(0); animation: drift 18s ease-in-out infinite alternate; }
.aurora--1 { width: 60vw; height: 60vw; left: -15vw; top: -20vw; background: radial-gradient(circle, #3b3fc7, transparent 60%); }
.aurora--2 { width: 50vw; height: 50vw; right: -10vw; top: 10vh; background: radial-gradient(circle, rgba(201,162,74,.7), transparent 60%); animation-delay: -6s; animation-duration: 22s; }
.aurora--3 { width: 45vw; height: 45vw; left: 30vw; bottom: -25vw; background: radial-gradient(circle, #1f5fa8, transparent 60%); animation-delay: -12s; animation-duration: 26s; }
@keyframes drift { from { transform: translate(0,0) scale(1);} to { transform: translate(6vw, 4vh) scale(1.15);} }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero__noise { position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 1024px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { display: none; } }
.hero__title { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 500; line-height: .98; letter-spacing: -.02em; font-variation-settings: 'opsz' 144; }
.hero__title em { display: block; font-style: italic; font-weight: 300; font-size: .62em; color: var(--gold-2); margin-top: .35em; letter-spacing: 0; }
.hero__lead { margin-top: 28px; font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 58ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 48px; display: flex; gap: 32px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); }
.hero__meta strong { display: block; color: #fff; font-weight: 600; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1;} 100% { transform: translateY(16px); opacity: 0;} }

/* split text */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; margin-right: .22em; }
.split .word > span { display: inline-block; transform: translateY(110%) rotate(4deg); opacity: 0; transition: transform 1s var(--ease), opacity .6s; }
.split.is-in .word > span { transform: none; opacity: 1; }

/* hero visual */
.hero__visual { position: relative; height: 560px; perspective: 1200px; margin-left: 24px; }
.orbit { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; transform: translate(-50%, -50%); }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 40s linear infinite; }
.orbit__ring--2 { inset: 50px; border-style: solid; border-color: rgba(201,162,74,.25); animation-direction: reverse; animation-duration: 30s; }
.orbit__ring--3 { inset: 110px; border-color: rgba(255,255,255,.1); animation-duration: 55s; }
.orbit__ring::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.1); animation: float 6s ease-in-out infinite; }
.orbit__core img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%,100% { transform: translate(-50%, -50%) translateY(0);} 50% { transform: translate(-50%, -50%) translateY(-12px);} }
.fcard { position: absolute; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  transition: transform .6s var(--ease); will-change: transform; animation: float 7s ease-in-out infinite; }
.fcard__icon { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(201,162,74,.35), rgba(201,162,74,.1)); color: var(--gold-2); }
.fcard strong { font-size: .92rem; font-weight: 600; }
.fcard small { font-size: .75rem; color: rgba(255,255,255,.6); }
.fcard--1 { left: 4%; top: 24px; animation-delay: -1s; }
.fcard--2 { right: 0; top: 96px; animation-delay: -3s; }
.fcard--3 { left: 6%; top: 52%; animation-delay: -2s; }
.fcard--4 { right: 0; bottom: 118px; animation-delay: -4s; }
.fcard--5 { left: 34%; bottom: 0; animation-delay: -5s; }

/* ---------- Marquee ---------- */
.marquee { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .55; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .split .word > span { transform: none; opacity: 1; } .aurora, .fcard, .orbit__ring, .orbit__core, .marquee__track { animation: none !important; } }

/* ---------- Negocios / Bento ---------- */
.negocios { background: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 18px; }
.bento__item { position: relative; border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .5s var(--ease), transform .5s var(--ease); transform-style: preserve-3d; }
.bento__item:hover { box-shadow: var(--shadow-lg); }
.bento__item--lg { grid-column: 1 / 3; grid-row: 1 / 3; color: #fff; }
.bento__item--tall { grid-column: 3 / 5; grid-row: 1 / 3; }
.bento__item--wide { grid-column: 1 / 5; }
.bento__item--end { grid-column: span 2; }
.bento__item--dark { background: var(--navy); color: #fff; }
.bento__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item:hover .bento__img { transform: scale(1.06); }
.bento__item--lg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,26,52,.1), rgba(13,26,52,.92) 75%); z-index: 1; }
.bento__img--right { left: auto; width: 42%; object-position: center 25%; mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); }
.bento__body { position: relative; z-index: 2; padding: 28px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.bento__item--lg .bento__body { justify-content: flex-end; padding: 36px; }
.bento__item--lg .bento__body p, .bento__item--wide .bento__body p { flex: 0 0 auto; }
.bento__body .btn { align-self: flex-start; margin-top: 6px; }
.bento__item--wide .bento__body { max-width: 56%; justify-content: center; }
.bento__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.bento__body h3 { font-family: var(--serif); font-size: 1.55rem; }
.bento__item--lg h3 { font-size: 2.4rem; }
.bento__body p { color: inherit; opacity: .75; font-size: .95rem; flex: 1; }
.bento__item--dark .link-arrow, .bento__item--lg .link-arrow { color: var(--gold-2); }
.bento__brand { position: absolute; right: 18px; top: 18px; width: 72px; height: 72px; object-fit: contain; border-radius: 14px; background: #fff; padding: 6px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bento__deco--chart { position: absolute; right: 24px; top: 24px; display: flex; align-items: flex-end; gap: 5px; height: 48px; opacity: .55; }
.bento__deco--chart i { width: 10px; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold-2), var(--gold)); transform-origin: bottom; animation: bars 2.4s var(--ease) infinite alternate; }
.bento__deco--chart i:nth-child(2n) { animation-delay: -.6s; } .bento__deco--chart i:nth-child(3n) { animation-delay: -1.2s; }
@keyframes bars { from { transform: scaleY(.6);} to { transform: scaleY(1);} }
.bento__deco--dots { position: absolute; right: -30px; bottom: -30px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--purple) 1.5px, transparent 1.6px) 0 0 / 14px 14px; opacity: .25; mask-image: radial-gradient(circle, #000, transparent 70%); }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--lg { grid-column: 1 / 2; grid-row: 1 / 3; }
  .bento__item--tall { grid-column: 2 / 3; grid-row: 1 / 3; }
  .bento__item--wide { grid-column: 1 / 3; }
  .bento__item--end { grid-column: span 1; }
  .bento__item--wide .bento__body { max-width: 70%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__item { min-height: 240px; }
  .bento__item--lg, .bento__item--tall, .bento__item--wide, .bento__item--end { grid-column: 1 / 2; grid-row: auto; }
  .bento__item--lg, .bento__item--wide { min-height: 380px; }
  .bento__item--wide .bento__body { max-width: 100%; }
  .bento__img--right { width: 100%; opacity: .25; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 100% at 80% 50%, rgba(201,162,74,.18), transparent); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--gold-2); line-height: 1; font-variation-settings: 'opsz' 144; }
.stat > span { display: block; margin-top: 10px; font-size: .9rem; color: rgba(255,255,255,.65); letter-spacing: .04em; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__sticky { position: sticky; top: 100px; }
.about__figure { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about__figure img { width: 100%; height: 100%; object-fit: cover; }
.about__figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; background: linear-gradient(0deg, rgba(13,26,52,.95), transparent); color: #fff; font-family: var(--serif); }
.about__figure figcaption span { display: block; font-size: 1rem; opacity: .8; font-style: italic; }
.about__figure figcaption strong { display: block; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; color: var(--gold-2); }
.about__block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.about__block:first-of-type { padding-top: 0; }
.about__block h2 { margin-bottom: 18px; }
.about__block p { color: var(--muted); font-size: 1.05rem; }
.about__sub { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 20px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion__n { font-family: var(--serif); font-style: italic; color: var(--gold); min-width: 32px; }
.accordion summary i { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background .3s; }
.accordion summary i::before, .accordion summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.accordion summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.accordion details[open] summary i { transform: rotate(180deg); background: var(--navy); color: #fff; }
.accordion details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.accordion__body { padding: 0 0 20px 48px; color: var(--muted); animation: fadeDown .5s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }
.about__cta { display: flex; align-items: center; gap: 28px; padding-top: 36px; flex-wrap: wrap; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__sticky { position: static; } .about__figure { aspect-ratio: 16 / 10; } }

/* ---------- Catálogo ---------- */
.catalog { background: var(--navy); color: #fff; }
.catalog .section__lead, .catalog__headside p { color: rgba(255,255,255,.7); }
.catalog__headside { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.catalog__tabs { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-light); margin-bottom: 40px; }
.tab { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.7); transition: color .3s; display: inline-flex; align-items: center; gap: 8px; }
.tab em { font-style: normal; font-size: .72rem; background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 999px; }
.tab.is-active { color: var(--navy); }
.tab.is-active em { background: rgba(13,26,52,.12); }
.tab__indicator { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); transition: left .5s var(--ease), width .5s var(--ease); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog__grid { grid-template-columns: 1fr; } .catalog__tabs { width: 100%; overflow-x: auto; } }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line-light); text-align: left;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, opacity .4s, background .4s; cursor: pointer; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(201,162,74,.5); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); background: rgba(255,255,255,.07); }
.pcard.is-hidden { display: none; }
.pcard.is-enter { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98);} to { opacity: 1; transform: none;} }
.pcard--featured { grid-column: span 1; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1s var(--ease); }
.pcard--herrajes .pcard__media img { object-fit: contain; padding: 14px; object-position: center; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__tag { position: absolute; left: 14px; top: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--navy); color: var(--gold-2); }
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body h3 { font-family: var(--serif); font-size: 1.35rem; }
.pcard__body p { font-size: .9rem; color: rgba(255,255,255,.65); flex: 1; }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__chips span { font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(201,162,74,.35); color: var(--gold-2); }
.pcard__more { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--gold-2); }
.pcard__more i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(201,162,74,.4); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); }
.pcard:hover .pcard__more i { background: var(--gold); color: var(--navy); transform: rotate(-45deg); }

/* ---------- Configurador ---------- */
.configurator { background: var(--cream-2); overflow: hidden; }
.configurator__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .configurator__grid { grid-template-columns: 1fr; } }
.ctrl { margin-top: 26px; }
.ctrl label, .ctrl__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.ctrl output { font-family: var(--serif); font-size: 1.25rem; color: var(--purple); font-variation-settings: 'opsz' 144; }
.ctrl__range { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(13,26,52,.12) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: var(--shadow-md); cursor: grab; transition: transform .3s var(--ease); }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: var(--shadow-md); cursor: grab; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.seg__btn { padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background .3s, color .3s; }
.seg__btn.is-active { background: var(--navy); color: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--navy), var(--shadow-md); transform: scale(1.1); }
.configurator__summary { margin: 28px 0 20px; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; font-size: .88rem; }
.configurator__summary div { display: flex; flex-direction: column; }
.configurator__summary small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.configurator__summary b { font-weight: 600; color: var(--navy); }
.configurator__stage { position: relative; height: 620px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, #0D1A34 0%, #1b2f5c 45%, #6c7ba3 75%, #c9b58a 100%); box-shadow: var(--shadow-lg); }
.stage__sky { position: absolute; inset: 0; background: radial-gradient(60% 40% at 70% 20%, rgba(201,162,74,.35), transparent 70%); }
.stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(180deg, #4a4a44, #2a2a26); }
.stage__labels .lbl { position: absolute; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--shadow-sm); transition: top .5s var(--ease), left .5s var(--ease); }
.lbl--a { left: 20px; top: 50%; } .lbl--b { right: 20px; top: 40px; } .lbl--c { left: 20px; top: 40px; }
.pole-part { transition: all .6s var(--ease); }
@media (max-width: 640px) { .configurator__stage { height: 480px; } }

/* ---------- Flipbook ---------- */
.flip { background: var(--white); }
.flip__viewer { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; }
.flip__book { position: relative; width: min(520px, 100%); aspect-ratio: 609 / 792; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; perspective: 1600px; }
.flip__book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; transform-origin: left center; }
.flip__book #flipImgNext { opacity: 0; }
.flip__book.is-flipping-next #flipImg { animation: flipOut .6s var(--ease-io) forwards; }
.flip__book.is-flipping-next #flipImgNext { opacity: 1; }
@keyframes flipOut { to { transform: rotateY(-90deg); filter: brightness(.7); } }
.flip__book.is-flipping-prev #flipImg { animation: flipIn .6s var(--ease-io); }
@keyframes flipIn { from { transform: rotateY(-90deg); filter: brightness(.7); } to { transform: none; } }
.flip__nav { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; box-shadow: var(--shadow-md); }
.flip__nav:hover { transform: scale(1.08); background: var(--gold); color: var(--navy); }
.flip__nav:disabled { opacity: .3; pointer-events: none; }
.flip__status { position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%); font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.flip__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 56px 4px 12px; scrollbar-width: thin; }
.flip__thumbs button { flex: 0 0 auto; width: 64px; aspect-ratio: 609 / 792; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--ease); }
.flip__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.flip__thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.flip__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
@media (max-width: 640px) { .flip__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; } .flip__nav--prev { left: 0; } .flip__nav--next { right: 0; } .flip__nav:hover { transform: translateY(-50%) scale(1.08); } }

/* ---------- Aliados ---------- */
.allies { background: var(--cream); }
.allies__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ally { position: relative; aspect-ratio: 1.3; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 20px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.ally img { max-height: 70%; max-width: 85%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.ally:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,74,.5); }
.ally:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.ally span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; font-size: .68rem; text-align: center; background: var(--navy); color: #fff; transform: translateY(100%); transition: transform .4s var(--ease); }
.ally:hover span { transform: none; }
@media (max-width: 1024px) { .allies__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .allies__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonios ---------- */
.testi { background: var(--purple); color: #fff; padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.testi::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -30vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.3), transparent 60%); }
.testi__wrap { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.testi__quote-mark { font-family: var(--serif); font-size: 9rem; line-height: .6; color: var(--gold-2); opacity: .7; margin-bottom: 24px; }
.testi__slider { position: relative; min-height: 240px; }
.testi__item { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.testi__item.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.testi__item p { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.5; font-style: italic; }
.testi__item footer { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: left; }
.testi__item footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testi__item footer strong { display: block; } .testi__item footer span { font-size: .85rem; opacity: .7; }
.testi__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testi__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); transition: width .4s var(--ease), background .3s; }
.testi__dots button.is-active { width: 32px; border-radius: 6px; background: var(--gold); }

/* ---------- Why ---------- */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; }
.checks i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); position: relative; margin-top: 2px; }
.checks i::after { content: ''; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.checks strong { display: block; } .checks span { color: var(--muted); font-size: .95rem; }
.why__visual { position: relative; height: 520px; }
.why__img { position: absolute; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.why__img--1 { left: 0; top: 0; width: 65%; height: 70%; }
.why__img--2 { right: 0; bottom: 0; width: 55%; height: 60%; border: 8px solid #fff; }
.why__badge { position: absolute; left: 10%; bottom: 8%; padding: 18px 22px; border-radius: var(--r-md); background: var(--navy); color: #fff; box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite; }
.why__badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); }
.why__badge span { font-size: .8rem; opacity: .7; }
@media (max-width: 640px) { .why__visual { height: 380px; } }

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .section__lead { color: rgba(255,255,255,.7); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--gold-2); flex: 0 0 auto; }
.contact__list small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.contact__list a, .contact__list div > span { display: block; font-weight: 500; }
.contact__list a:hover { color: var(--gold-2); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--line-light); backdrop-filter: blur(10px); }
@media (max-width: 560px) { .contact__form { grid-template-columns: 1fr; padding: 22px; } }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; padding: 22px 16px 10px; border-radius: 12px; border: 1px solid var(--line-light); background: rgba(255,255,255,.05); color: #fff; font: inherit; transition: border-color .3s, background .3s; }
.field select { appearance: none; padding: 22px 16px 10px; }
.field select option { color: var(--navy); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.field label { position: absolute; left: 16px; top: 17px; font-size: .95rem; color: rgba(255,255,255,.55); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .label--static { top: 7px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ff7b7b; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__hint { font-size: .85rem; color: var(--gold-2); min-height: 1.4em; }
.contact__hint.is-error { color: #ff9b9b; }
.contact__legal { font-size: .75rem; color: rgba(255,255,255,.45); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .92rem; max-width: 40ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer__col h4 { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.footer__col a { transition: color .3s, transform .3s var(--ease); display: inline-block; }
.footer__col a:hover { color: var(--gold-2); transform: translateX(4px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Floating ---------- */
.fab-wa { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; z-index: 90; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8;} to { transform: scale(1.7); opacity: 0;} }
.to-top { position: fixed; right: 24px; bottom: 96px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; z-index: 90; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease); box-shadow: var(--shadow-md); }
.to-top.is-visible { opacity: 1; transform: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .4s, visibility .4s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,15,30,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; color: var(--text); border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr; transform: translateY(24px) scale(.98); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); }
.modal.is-open .modal__panel { transform: none; }
@media (max-width: 860px) { .modal__panel { grid-template-columns: 1fr; } }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: var(--gold); color: var(--navy); }
.modal__media { background: var(--cream-2); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; align-self: start; }
@media (max-width: 860px) { .modal__media { position: static; } }
.modal__media > img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-md); background: #fff; transition: opacity .3s; }
.modal__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.modal__thumbs button { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .6; transition: opacity .3s, border-color .3s; }
.modal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs button.is-active, .modal__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.modal__content { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.modal__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.modal__content h3 { font-family: var(--serif); font-size: 2rem; }
.modal__content > p { color: var(--muted); }
.variants { display: grid; gap: 6px; margin-top: 4px; }
.variants div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: .85rem; padding: 8px 10px; border-radius: 8px; background: var(--cream); }
.variants b { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 500; }
.specs { margin: 8px 0 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.specs dt { color: var(--muted); font-weight: 500; } .specs dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .specs div { grid-template-columns: 1fr; gap: 4px; } }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal__actions .btn--outline { color: var(--navy); }
body.modal-open { overflow: hidden; }
