/* =============================================================
   Cerramientos Joma — Editorial Dark Warm · precisión y carpintería
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #17181A;
  --bg-2: #1E2023;
  --bg-3: #272A2E;
  --bg-4: #31353A;
  --cream: #F3EFE8;
  --cream-2: #D9D3C8;
  --cream-3: #9A948B;
  --accent: #E0312B;
  --accent-2: #C4231E;
  --accent-soft: rgba(224, 49, 43, .14);
  --on-accent: #FFFFFF;
  --gold: #F29B8B;
  --line: rgba(243, 239, 232, .12);
  --line-2: rgba(243, 239, 232, .22);

  --paper: #F1EDE6;
  --paper-2: #E7E1D7;
  --ink: #1C1D1F;
  --ink-2: #3A3C3F;
  --ink-mute: #6C675F;
  --line-ink: rgba(28, 29, 31, .12);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 76px;
}

/* 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--cream); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilities ------------------------------------------------- */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cream); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.muted { color: var(--cream-3); }
.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .muted, .section--light .lead { color: var(--ink-mute); }

/* 4. Typography ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem;
}
.eyebrow .mono { color: var(--cream-3); letter-spacing: .02em; font-weight: 400; }
.eyebrow .mono::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: .7rem; vertical-align: middle; opacity: .6; }
.section--light .eyebrow { color: var(--accent-2); }
.section--light .eyebrow .mono { color: var(--ink-mute); }
.h2 {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 30; font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem); line-height: 1.02; letter-spacing: -0.028em; max-width: 18ch;
}
.h2 em, .hero-title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--accent); }
.section--light .h2 em { color: var(--accent-2); }
.h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; margin-bottom: .6rem; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--cream-2); max-width: 52ch; line-height: 1.65; }
.fineprint { font-size: .8rem; color: var(--cream-3); line-height: 1.5; margin-top: .9rem; }
.section--light .fineprint { color: var(--ink-mute); }

.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--split { display: grid; gap: 1.5rem; align-items: end; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .h2 { max-width: 20ch; }
.section-head--center .lead { margin-top: 1.2rem; }

/* 5. Components ------------------------------------------------ */
.btn {
  --bh: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--bh); padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 40px; padding: 0 1.05rem; font-size: .88rem; }
.btn-lg { --bh: 56px; padding: 0 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(224, 49, 43, .6); }
.btn-primary:hover { transform: translateY(-2px); background: #EA4A44; box-shadow: 0 18px 40px -14px rgba(224, 49, 43, .75); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); }
.section--light .btn-ghost { border-color: var(--line-ink); color: var(--ink); }
.btn-line { border: 1px solid var(--line-2); color: var(--cream); --bh: 42px; font-size: .88rem; }
.btn-line:hover { background: var(--cream); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--paper); margin-top: 1.6rem; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(0,0,0,.5); }
.btn-whatsapp { background: #25D366; color: #06240F; }
.btn-whatsapp svg { fill: currentColor; stroke: none; }
.btn-whatsapp:hover { transform: translateY(-2px); background: #34E077; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .92rem; color: var(--accent); margin-top: auto; padding-top: 1.2rem; }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .74rem; }
.chips li { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--cream-2); }

.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6FCF97; box-shadow: 0 0 0 0 rgba(111, 207, 151, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(111,207,151,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); } }

.grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Media frames with graceful placeholders */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.media.is-empty {
  background:
    linear-gradient(135deg, rgba(224,49,43,.08), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(243,239,232,.05) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(243,239,232,.05) 39px 40px),
    var(--bg-3);
}
.section--light .media.is-empty {
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(28,29,31,.05) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(28,29,31,.05) 39px 40px), var(--paper-2);
}
.media.is-empty img { opacity: 0; }
.media--real {
  display: grid; place-items: center; min-height: 240px; border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(243,239,232,.035) 14px 15px), var(--bg-2);
}
.section--light .media--real { border-color: rgba(28,29,31,.25); background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(28,29,31,.04) 14px 15px), var(--paper-2); }
.real-tag { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 1.2rem; color: var(--cream-3); }
.section--light .real-tag { color: var(--ink-mute); }
.real-tag svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; margin-bottom: .3rem; }
.real-tag strong { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.real-tag span { font-size: .85rem; }

/* Forms */
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .84rem; font-weight: 500; color: var(--cream-2); min-width: 0; }
.field em { font-style: normal; color: var(--cream-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(23, 24, 26, .6); color: var(--cream); font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0312B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
.field select option { background: var(--bg-2); color: var(--cream); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #E57A6B; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--cream-2); cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.form-error { color: #F0A092; font-size: .88rem; }

/* 6. Sections -------------------------------------------------- */

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  transition: opacity .7s var(--ease-out), visibility .7s; animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-mark { width: 96px; height: 90px; overflow: visible; }
.splash-mark .logo-frame, .splash-mark .logo-lines { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.1s var(--ease-out) forwards; }
.splash-mark .logo-lines { animation-delay: .3s; }
.splash-mark .logo-fill { opacity: 0; transform-origin: 28px 33px; transform: scale(.6); animation: logoFill .9s .25s var(--ease-out) forwards; }
@keyframes logoFill { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.splash-word { font-family: var(--sans); font-style: italic; font-weight: 800; font-size: 2.6rem; letter-spacing: -.045em; color: var(--accent); line-height: 1; opacity: 0; animation: fadeUp .8s .45s var(--ease-out) forwards; }
.splash-meta { font-family: var(--mono); font-size: .72rem; color: var(--cream-3); opacity: 0; animation: fadeUp .8s .6s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 90; transition: background-color .45s, box-shadow .45s, transform .5s var(--ease-out); }
.nav-inner { max-width: 1440px; margin: 0 auto; height: var(--nav-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: 2rem; }
.nav.is-solid { background: rgba(23, 24, 26, .82); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) { .nav.is-solid { background: rgba(23, 24, 26, .66); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); } }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.logo-mark { width: 42px; height: 40px; flex: none; overflow: visible; }
.logo-frame { fill: none; stroke: var(--cream-2); stroke-width: 2.4; }
.logo-lines { fill: none; stroke: var(--cream-3); stroke-width: 1.2; }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.brand-text strong { font-family: var(--sans); font-style: italic; font-weight: 800; font-size: 1.7rem; letter-spacing: -.045em; color: var(--accent); padding-right: .08em; }
.brand-text small { font-family: var(--sans); font-style: italic; font-weight: 500; font-size: .78rem; color: var(--cream-2); letter-spacing: -.01em; margin-top: 1px; }
.nav-links { display: none; gap: 1.8rem; margin-inline: auto; font-size: .9rem; color: var(--cream-2); }
.nav-links a { position: relative; padding-block: .4rem; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.nav-phone { display: none; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .88rem; color: var(--cream); }
.nav-phone svg { width: 17px; height: 17px; fill: var(--accent); }
.nav-burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-mobile { position: fixed; inset: var(--nav-h) 0 0; background: var(--bg); padding: 2rem var(--gutter); display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; }
.nav-mobile a { font-family: var(--serif); font-size: 1.9rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 40px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.media--hero { position: absolute; inset: 0; border-radius: 0; }
.media--hero picture, .media--hero img { width: 100%; height: 100%; }
.media--hero img { object-position: 70% 50%; filter: saturate(1.02) contrast(1.04); transform: scale(1.08); animation: heroZoom 2.8s .3s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-tint { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(23,24,26,.94) 0%, rgba(23,24,26,.78) 38%, rgba(23,24,26,.25) 72%, rgba(23,24,26,.35) 100%),
  linear-gradient(0deg, rgba(23,24,26,.96) 0%, rgba(23,24,26,0) 42%); }
@media (max-width: 959px) {
  .hero-tint { background:
    linear-gradient(180deg, rgba(23,24,26,.9) 0%, rgba(23,24,26,.82) 40%, rgba(23,24,26,.62) 62%, rgba(23,24,26,.55) 78%, rgba(23,24,26,.97) 100%); }
  .media--hero img { object-position: 50% 70%; }
  .hero-sub, .hero-note { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
}
.hero-mesh { position: absolute; inset: -20%; opacity: .28; mix-blend-mode: soft-light; filter: blur(70px); pointer-events: none;
  background: conic-gradient(from var(--mesh-angle) at 30% 60%, rgba(224,49,43,.55), transparent 30%, rgba(242,155,139,.35) 55%, transparent 75%, rgba(224,49,43,.55));
  animation: meshSpin 22s linear infinite; }
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: end; padding-bottom: 2.4rem; }
.hero-meta { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; letter-spacing: .03em; color: var(--cream-2); padding: .5rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(23,24,26,.35); margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp .9s 1s var(--ease-out) forwards; }
.hero-title { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 144, "SOFT" 40; font-size: clamp(3rem, 8.6vw, 7.4rem); line-height: .94; letter-spacing: -.035em; max-width: 12ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; animation-delay: 1.05s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.2s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { margin-top: 1.6rem; max-width: 50ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--cream-2); opacity: 0; animation: fadeUp 1s 1.45s var(--ease-out) forwards; }
.hero-sub strong { color: var(--cream); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; opacity: 0; animation: fadeUp 1s 1.6s var(--ease-out) forwards; }
.hero-note { display: flex; gap: .55rem; align-items: center; margin-top: 1.3rem; font-size: .85rem; color: var(--cream-3); opacity: 0; animation: fadeUp 1s 1.75s var(--ease-out) forwards; }
.hero-note svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }

.hero-spec { display: none; width: 100%; max-width: 360px; justify-self: end; padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: rgba(30, 32, 35, .82); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); opacity: 0; animation: fadeUp 1.1s 1.8s var(--ease-out) forwards; }
@supports (backdrop-filter: blur(10px)) { .hero-spec { background: rgba(30, 32, 35, .5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); } }
.spec-head { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-3); margin-bottom: 1.1rem; }
.spec-head .mono { color: var(--accent); }
.thermo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding: 1rem; border-radius: 14px; background: linear-gradient(90deg, rgba(229,122,80,.22), rgba(23,24,26,.2) 50%, rgba(110,170,210,.2)); margin-bottom: 1.1rem; }
.thermo-side { display: flex; flex-direction: column; gap: .15rem; }
.thermo-side .mono { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); }
.thermo-side strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.thermo-out strong { color: #F2786F; }
.thermo-in { text-align: right; }
.thermo-in strong { color: #9CCBEA; }
.thermo-wall { display: flex; gap: 3px; height: 52px; }
.thermo-wall span { width: 6px; border-radius: 2px; background: var(--cream-2); opacity: .75; animation: chamber 3s ease-in-out infinite; }
.thermo-wall span:nth-child(2) { animation-delay: .15s; } .thermo-wall span:nth-child(3) { animation-delay: .3s; } .thermo-wall span:nth-child(4) { animation-delay: .45s; } .thermo-wall span:nth-child(5) { animation-delay: .6s; }
@keyframes chamber { 50% { opacity: .35; } }
.spec-list { display: grid; gap: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.spec-list dt { color: var(--cream-2); }
.spec-list dd { color: var(--cream); }
.spec-foot { font-size: .66rem; color: var(--cream-3); margin-top: .7rem; }

.hero-foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); margin-bottom: clamp(20px, 3vw, 36px); }
.stat { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1rem 1.1rem 0; opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; animation-delay: 1.9s; }
.stat:nth-child(2) { animation-delay: 2s; } .stat:nth-child(3) { animation-delay: 2.1s; } .stat:nth-child(4) { animation-delay: 2.2s; }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; color: var(--cream); }
.stat > span { font-size: .8rem; color: var(--cream-3); line-height: 1.4; max-width: 24ch; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 2rem; z-index: 3; width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: scrollDot 2s infinite; }
@keyframes scrollDot { 60% { transform: translate(-50%, 14px); opacity: 0; } 100% { opacity: 0; } }

/* Pains */
.pain-grid { display: grid; gap: 1.2rem; }
.pain {
  position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2);
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.pain::before, .product::before, .review::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224,49,43,.14), transparent 60%); }
.pain:hover, .review:hover { border-color: rgba(224,49,43,.4); box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.pain:hover::before, .product:hover::before, .review:hover::before { opacity: 1; }
.pain-num { position: absolute; top: 1.6rem; right: 1.8rem; font-size: .8rem; color: var(--cream-3); }
.pain-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2.2rem; }
.pain h3 { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; line-height: 1.12; margin-bottom: .8rem; }
.pain p { color: var(--cream-2); font-size: .96rem; }

/* Showcase */
.showcase { position: relative; padding-top: clamp(84px, 11vw, 150px); padding-bottom: clamp(60px, 8vw, 110px); background: var(--bg); }
.showcase-intro { margin-bottom: clamp(36px, 5vw, 64px); }
.showcase-intro .lead { margin-top: 1.1rem; }
.showcase-viewport { overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding-bottom: 1.2rem; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; -webkit-overflow-scrolling: touch; }
.showcase-track { display: flex; gap: 1.2rem; padding-inline: var(--gutter); width: max-content; }
.product {
  position: relative; scroll-snap-align: center; flex: none; width: min(84vw, 460px); display: flex; flex-direction: column; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .6s var(--ease-out);
}
.product:hover { border-color: rgba(224,49,43,.35); }
.media--product { border-radius: 0; aspect-ratio: 4 / 4.2; }
.media--product img { object-position: center 58%; }
.product:hover .media--product img { transform: scale(1.06); filter: saturate(1.12); }
.product-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.6rem 1.8rem; flex: 1; }
.product-idx { font-size: .74rem; color: var(--accent); }
.product h3 { font-family: var(--serif); font-weight: 450; font-size: 1.75rem; line-height: 1.05; }
.product p { color: var(--cream-2); font-size: .95rem; }
.product .btn-row { margin-top: auto; padding-top: .6rem; }
.product > .product-body > .btn { align-self: flex-start; margin-top: auto; }
.product--cta { justify-content: center; padding: 2.2rem; gap: 1rem; background: linear-gradient(160deg, rgba(224,49,43,.22), var(--bg-2) 60%); border-color: rgba(224,49,43,.35); }
.product--cta h3 { font-size: 2.2rem; }
.product--cta .btn { align-self: flex-start; }
.showcase-progress { height: 2px; margin-top: 1.4rem; }
.showcase-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; transform: scaleX(.08); }
.showcase.is-pinned .showcase-viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }

/* Versus */
.versus-grid { display: grid; gap: 1.6rem; margin-bottom: clamp(48px, 6vw, 80px); }
.compare { background: #FBF9F5; border: 1px solid var(--line-ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -45px rgba(28,29,31,.35); }
.compare-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); margin-bottom: 1.8rem; }
.compare-tabs button { padding: .7rem .4rem; border-radius: 11px; font-size: .82rem; font-weight: 600; color: var(--ink-mute); transition: background .35s, color .35s, box-shadow .35s; line-height: 1.2; }
.compare-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.compare-tabs button[data-mat="pvc"][aria-selected="true"] { background: var(--accent-2); }
.bars { display: grid; gap: 1.2rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; font-weight: 500; margin-bottom: .5rem; }
.bar-label .mono { font-size: .8rem; color: var(--ink-mute); text-align: right; }
.bar { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--ink-2), var(--ink)); transition: width 1.1s var(--ease-out), background .5s; }
.compare[data-current="pvc"] .bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.compare:not(.is-in) .bar i { width: 0; }

.profile { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); min-height: 360px; }
.media--profile { position: absolute; inset: 0; border-radius: 0; background: #E1D9D0; }
.media--profile img { object-fit: contain; }
.profile { background: #E1D9D0; }
.cotas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cotas path { fill: none; stroke: var(--accent-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 1.8s var(--ease-out); }
.cotas.is-drawn path { stroke-dashoffset: 0; }
.callout { position: absolute; left: var(--x); top: var(--y); font-size: .7rem; padding: .38rem .65rem; border-radius: 999px; background: rgba(28,29,31,.88); color: var(--paper); white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.callout::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: 1px; }
.profile.is-visible .callout { opacity: 1; transform: none; }
.profile.is-visible .callout:nth-of-type(2) { transition-delay: .15s; } .profile.is-visible .callout:nth-of-type(3) { transition-delay: .3s; } .profile.is-visible .callout:nth-of-type(4) { transition-delay: .45s; }
.profile figcaption { position: absolute; left: 1.2rem; top: 1rem; font-size: .7rem; color: var(--ink-mute); }

.adv-list { display: grid; gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); border-radius: var(--radius-lg); overflow: hidden; }
.adv { background: var(--paper); padding: 1.8rem 1.6rem; transition: background .4s; }
.adv:hover { background: #FBF9F5; }
.adv svg { width: 36px; height: 36px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.3rem; }
.adv h3 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; line-height: 1.15; margin-bottom: .55rem; }
.adv p { font-size: .9rem; color: var(--ink-mute); }

/* Factory */
.factory { background: var(--bg); padding-bottom: clamp(84px, 11vw, 150px); }
.factory-band { position: relative; margin-bottom: clamp(48px, 6vw, 80px); }
.media--wide { border-radius: 0; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
.media--wide img { transform: scale(1.12); }
.factory-badge { position: absolute; left: var(--gutter); bottom: clamp(16px, 3vw, 40px); display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: rgba(23,24,26,.82); border: 1px solid var(--line-2); }
@supports (backdrop-filter: blur(10px)) { .factory-badge { background: rgba(23,24,26,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.factory-badge strong { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; color: var(--accent); line-height: 1; }
.factory-badge > span { font-size: .8rem; color: var(--cream-2); }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.pillar-num { font-size: .76rem; color: var(--accent); }
.pillar h3 { font-family: var(--serif); font-weight: 450; font-size: 1.55rem; margin: .7rem 0 .55rem; }
.pillar p { color: var(--cream-2); font-size: .95rem; max-width: 42ch; }
.detail-row { display: grid; gap: 1.2rem; margin-top: clamp(40px, 5vw, 64px); }
.media--detail { aspect-ratio: 4 / 3; }

/* Process */
.process-grid { display: grid; gap: 3rem; }
.process-aside .lead { margin-top: 1.1rem; }
.media--process { aspect-ratio: 4 / 3; margin-top: 2rem; }
.steps { position: relative; display: grid; gap: 0; padding-left: 0; }
.steps-line { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 1px; background: var(--line-ink); }
.steps-line i { position: absolute; inset: 0; background: var(--accent-2); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.4rem 0; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-ink); font-size: .9rem; color: var(--ink); transition: background .5s, color .5s, border-color .5s; }
.step.is-visible .step-num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: .7rem 0 .45rem; }
.step p { color: var(--ink-mute); font-size: .96rem; max-width: 52ch; }

/* Configurator */
.cfg { background: radial-gradient(60% 50% at 50% 0%, rgba(224,49,43,.12), transparent 70%), var(--bg); }
.cfg-app { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 60px 120px -60px rgba(0,0,0,.9); overflow: hidden; }
.cfg-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--bg-3); }
.cfg-steps li { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem .4rem; font-size: .84rem; font-weight: 500; color: var(--cream-3); cursor: pointer; transition: color .3s; text-align: center; }
.cfg-steps li .mono { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .75rem; flex: none; transition: background .3s, color .3s, border-color .3s; }
.cfg-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.cfg-steps li.is-active { color: var(--cream); }
.cfg-steps li.is-active::after { transform: scaleX(1); }
.cfg-steps li.is-active .mono, .cfg-steps li.is-done .mono { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cfg-steps li.is-locked { opacity: .45; cursor: not-allowed; }
.cfg-stage { padding: clamp(1.2rem, 3.5vw, 2.8rem); }
.cfg-panel { display: none; }
.cfg-panel.is-active { display: block; animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cfg-legal { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1rem; font-size: .76rem; color: var(--cream-2); background: rgba(224,49,43,.1); border-top: 1px solid rgba(224,49,43,.3); text-align: center; }
.cfg-legal svg, .disclaimer svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; flex: none; }

.cfg-photo { display: grid; gap: 2rem; }
.dropzone { position: relative; display: grid; place-items: center; min-height: 220px; margin-top: 1.4rem; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--bg); cursor: pointer; overflow: hidden; transition: border-color .3s, background .3s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(224,49,43,.06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; padding: 1.5rem; pointer-events: none; }
.dz-empty svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; margin-bottom: .4rem; }
.dz-empty .mono { font-size: .72rem; color: var(--cream-3); }
.dz-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dropzone.has-file .dz-empty { opacity: 0; }
.dropzone.is-scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(224,49,43,.45), transparent); animation: scan 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }

.ai-result { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-3); padding: 1.5rem; min-height: 280px; }
.ai-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; padding: .3rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(224,49,43,.35); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.ai-idle p { color: var(--cream-2); font-size: .95rem; }
.ai-demo { display: grid; gap: .5rem; margin-top: 1.3rem; font-size: .76rem; color: var(--cream-3); }
.ai-demo li { padding: .7rem .9rem; border-radius: 10px; border: 1px dashed var(--line); }
.ai-loading { display: flex; flex-direction: column; gap: .8rem; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-4), rgba(243,239,232,.14), var(--bg-4)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ai-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0; }
.ai-fact { padding: .7rem .8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.ai-fact small { display: block; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-3); }
.ai-fact b { font-weight: 600; font-size: .95rem; }
.ai-fact .st-malo { color: #F0A092; } .ai-fact .st-regular { color: #F2C66D; } .ai-fact .st-bueno { color: #8FD9AE; }
.ai-problems { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ai-problems li { font-size: .78rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(240,160,146,.12); color: #F3B6AB; border: 1px solid rgba(240,160,146,.25); }
.ai-reco { padding: 1rem 1.1rem; border-radius: 12px; background: linear-gradient(135deg, rgba(224,49,43,.18), rgba(224,49,43,.05)); border: 1px solid rgba(224,49,43,.35); }
.ai-reco strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: .3rem; }
.ai-reco p { font-size: .9rem; color: var(--cream-2); }
.ai-summary { color: var(--cream-2); font-size: .95rem; }

.cfg-form { display: grid; gap: 2rem; }
.cfg-fields { display: grid; gap: 1.5rem; min-width: 0; }
.field-group { border: 0; padding: 0; min-width: 0; }
.field-group legend { font-size: .84rem; font-weight: 500; color: var(--cream-2); margin-bottom: .6rem; }
.opt-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .25s, background .25s, box-shadow .25s; }
.opt b { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.opt small { font-size: .74rem; color: var(--cream-3); }
.opt input:checked + span { border-color: var(--accent); background: rgba(224,49,43,.1); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:hover span { border-color: var(--cream-3); }
.swatches { display: flex; flex-wrap: wrap; gap: .9rem; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer; font-size: .76rem; color: var(--cream-2); }
.swatch input { position: absolute; opacity: 0; }
.swatch span { width: 48px; height: 48px; border-radius: 12px; background: var(--c); border: 2px solid var(--line-2); box-shadow: inset 0 0 0 3px var(--bg-2); transition: border-color .25s, transform .35s var(--ease-out); }
.swatch input:checked + span { border-color: var(--accent); transform: scale(1.06); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row--2 { grid-template-columns: 1fr 1fr; align-items: end; }
.field-row .check { min-height: 50px; align-items: center; }

.cfg-preview { display: flex; flex-direction: column; min-width: 0; }
.preview-card { border-radius: var(--radius); border: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(243,239,232,.035) 23px 24px),
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(243,239,232,.035) 23px 24px), var(--bg); overflow: hidden; }
.preview-head { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; font-size: .74rem; color: var(--cream-3); border-bottom: 1px solid var(--line); }
.preview-head span:first-child { color: var(--cream); }
.preview-svg { width: 100%; height: auto; aspect-ratio: 320 / 280; padding: .6rem; }
.preview-svg .dim { stroke: var(--accent); stroke-width: 1; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s var(--ease-out) forwards; }
.preview-svg .dim-text { fill: var(--accent); font-family: var(--mono); font-size: 11px; }
.preview-price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem; border-top: 1px solid var(--line); }
.preview-price .mono { font-size: .72rem; color: var(--cream-3); }
.preview-price strong { font-family: var(--serif); font-weight: 450; font-size: 1.45rem; color: var(--cream); }

.project { display: grid; gap: 2rem; }
.project-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.project-list { display: grid; gap: .7rem; margin-bottom: 1rem; }
.project-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); animation: panelIn .5s var(--ease-out); }
.project-item svg { width: 64px; height: 56px; }
.pi-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.pi-sub { font-size: .8rem; color: var(--cream-3); line-height: 1.4; }
.pi-price { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-top: .2rem; }
.pi-actions { display: flex; gap: .3rem; }
.pi-actions button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--cream-2); transition: border-color .25s, color .25s, background .25s; }
.pi-actions button:hover { border-color: var(--accent); color: var(--accent); }
.pi-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-empty { padding: 1.2rem; border-radius: 14px; border: 1px dashed var(--line-2); margin-bottom: 1rem; }
.project-context { display: grid; gap: 1rem; align-content: start; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }

.gate { display: grid; gap: 2rem; }
.gate-form { display: grid; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.gate-summary { display: grid; gap: .45rem; margin-top: 1.2rem; font-size: .8rem; color: var(--cream-2); }
.gate-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }

.disclaimer { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(224,49,43,.12); border: 1px solid rgba(224,49,43,.45); margin-bottom: 1.4rem; }
.disclaimer svg { width: 22px; height: 22px; margin-top: 2px; }
.disclaimer p { font-size: .92rem; color: var(--cream); }
.result-top { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.result-total, .result-saving { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.result-total { background: linear-gradient(150deg, rgba(224,49,43,.2), var(--bg) 70%); border-color: rgba(224,49,43,.4); }
.result-total .mono, .result-saving .mono { font-size: .72rem; color: var(--cream-3); text-transform: uppercase; letter-spacing: .06em; }
.result-total strong, .result-saving strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; }
.result-saving strong { color: #9CCBEA; }
.result-total small, .result-saving small { color: var(--cream-2); font-size: .84rem; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.result-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
.result-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-3); padding: .8rem 1rem; background: var(--bg-3); }
.result-table td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.result-table td:last-child, .result-table th:last-child { text-align: right; white-space: nowrap; }
.result-table td small { display: block; color: var(--cream-3); font-size: .76rem; }
.result-table tfoot td { font-weight: 600; background: var(--bg-3); }
.result-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Community */
.community-grid { display: grid; gap: 2.5rem; align-items: center; }
.media--community { aspect-ratio: 4 / 3; }
.community-copy .lead { margin-top: 1.1rem; }
.ticks { display: grid; gap: .7rem; margin-top: 1.6rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

/* Before/after */
.ba { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; margin: 0; border-radius: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before.is-empty { background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(243,239,232,.04) 14px 15px), #2B2622; }
.ba-label { position: absolute; top: 1rem; z-index: 3; font-size: .72rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(23,24,26,.78); border: 1px solid var(--line-2); pointer-events: none; }
.ba-label--before { left: 1rem; } .ba-label--after { right: 1rem; }
.ba-label--after::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: 1px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--cream); z-index: 3; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.ba-handle svg { width: 22px; height: 22px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.ba-demo { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; font-size: .66rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(23,24,26,.7); color: var(--cream-2); pointer-events: none; }
.real-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.real-grid .media--real { min-height: 180px; aspect-ratio: 4 / 3; }

/* Reviews */
.reviews { background: var(--bg-2); }
.demo-note { margin-top: 1rem; font-size: .74rem; color: var(--cream-3); padding: .35rem .8rem; border-radius: 999px; border: 1px dashed var(--line-2); }
.review-grid { display: grid; gap: 1.2rem; }
.review { position: relative; display: flex; flex-direction: column; gap: 1.6rem; margin: 0; padding: 2rem; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); transition: border-color .4s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.demo-badge { align-self: flex-start; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 999px; border: 1px dashed rgba(224,49,43,.55); color: var(--accent); }
.review blockquote { font-family: var(--serif); font-weight: 350; font-size: 1.3rem; line-height: 1.4; font-variation-settings: "opsz" 40, "SOFT" 60; }
.review figcaption { display: flex; gap: .9rem; align-items: center; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); font-family: var(--mono); font-size: .8rem; color: var(--accent); flex: none; }
.review figcaption strong { display: block; font-size: .95rem; }
.review figcaption small { color: var(--cream-3); font-size: .8rem; }

/* FAQ */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-aside .lead { margin-top: 1.1rem; }
.faq-list { border-top: 1px solid var(--line-ink); }
.qa { border-bottom: 1px solid var(--line-ink); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.4rem 0; cursor: pointer; font-family: var(--serif); font-weight: 450; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-ink); flex: none; transition: background .35s, transform .5s var(--ease-out); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease-out), background .35s; }
.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-icon { background: var(--ink); transform: rotate(180deg); }
.qa[open] .qa-icon::before, .qa[open] .qa-icon::after { background: var(--paper); }
.qa[open] .qa-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-body { padding: 0 3rem 1.5rem 0; color: var(--ink-mute); }
.qa-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.qa[open] .qa-body { animation: panelIn .5s var(--ease-out); }

/* Contact */
.contact { background: radial-gradient(50% 60% at 100% 100%, rgba(224,49,43,.12), transparent 70%), var(--bg); }
.contact-grid { display: grid; gap: 3rem; }
.contact-copy .lead { margin-top: 1.1rem; }
.contact-big { display: grid; gap: .9rem; margin-top: 2.2rem; }
.big-link { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .35s, transform .5s var(--ease-out), background .35s; }
.big-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.big-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); flex: none; }
.big-icon svg { width: 26px; height: 26px; fill: var(--on-accent); }
.big-link small { display: block; font-size: .72rem; color: var(--cream-3); text-transform: uppercase; letter-spacing: .08em; }
.big-link strong { font-family: var(--serif); font-weight: 450; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.01em; }
.big-link--wa .big-icon { background: #25D366; }
.big-link--wa .big-icon svg { fill: #06240F; }
.big-link--wa:hover { border-color: #25D366; }
.contact-meta { display: grid; gap: .1rem; margin-top: 2rem; }
.contact-meta div { display: flex; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.contact-meta dt { width: 82px; flex: none; font-size: .72rem; color: var(--cream-3); text-transform: uppercase; padding-top: .15rem; }
.contact-form { position: relative; display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line-2); align-self: start; }
.form-success { position: absolute; inset: 0; border-radius: inherit; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 2rem; animation: panelIn .6s var(--ease-out); }
.form-success svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .7s var(--ease-out) forwards; }
.form-success h4 { font-family: var(--serif); font-weight: 450; font-size: 1.8rem; }
.form-success p { color: var(--cream-2); max-width: 36ch; }

/* Footer */
.footer { background: #111214; padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.4rem; }
.footer-grid .muted { margin-top: 1rem; max-width: 38ch; font-size: .9rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; font-size: .92rem; color: var(--cream-2); align-content: start; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: .6rem; font-family: var(--mono); font-size: .95rem; align-content: start; }
.footer-legal { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--cream-3); }

/* Mobile bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(17,18,20,.94); border-top: 1px solid var(--line); transition: transform .5s var(--ease-out); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border-radius: 12px; font-size: .88rem; font-weight: 600; background: var(--bg-3); }
.mobile-bar svg { width: 17px; height: 17px; fill: currentColor; }
.mobile-bar .is-wa { background: #25D366; color: #06240F; }
.mobile-bar .is-cta { background: var(--accent); color: var(--on-accent); }
.mobile-bar.is-hidden { transform: translateY(110%); }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

/* Chat */
.chat-fab { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; gap: .6rem; padding: 6px; border-radius: 999px; background: var(--cream); color: var(--bg); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); transition: transform .5s var(--ease-out), box-shadow .5s; }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.chat-fab-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab-label { display: none; font-weight: 600; font-size: .9rem; padding-right: .9rem; }
.chat-fab[aria-expanded="true"] { transform: scale(0); pointer-events: none; }
.chat {
  position: fixed; z-index: 95; inset: auto 0 0 0; height: min(86vh, 640px); display: flex; flex-direction: column; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 22px 22px 0 0; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); overflow: hidden; animation: chatIn .5s var(--ease-out);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; border: 1px solid var(--line-2); }
.chat-avatar .logo-mark { width: 26px; height: 24px; }
.chat-head strong { display: block; font-size: .96rem; }
.chat-head small { display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--cream-3); }
.chat-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.chat-close svg { width: 16px; height: 16px; stroke: var(--cream); stroke-width: 2; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.55; animation: panelIn .4s var(--ease-out); }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { display: grid; gap: .25rem; }
.msg li { position: relative; padding-left: 1rem; }
.msg li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.msg--bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg--bot a { color: var(--accent); text-decoration: underline; }
.msg-cta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.msg-cta a { font-size: .78rem; font-weight: 600; padding: .4rem .7rem; border-radius: 999px; border: 1px solid rgba(224,49,43,.5); color: var(--accent); text-decoration: none !important; }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 60%, 100% { transform: none; opacity: .4; } }
.chat-suggest { display: flex; gap: .45rem; overflow-x: auto; padding: 0 1.1rem .8rem; scrollbar-width: none; }
.chat-suggest button { flex: none; font-size: .78rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--cream-2); transition: border-color .25s, color .25s; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--cream); }
.chat-form { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 1rem; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; fill: none; stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-form button:disabled { opacity: .5; }
.chat-foot { padding: 0 1rem calc(.8rem + env(safe-area-inset-bottom)); font-size: .66rem; color: var(--cream-3); text-align: center; }
.chat-foot a { color: var(--accent); }

/* 7. Effects --------------------------------------------------- */
.has-reveal .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
[data-tilt] { will-change: transform; }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .hero-foot { grid-template-columns: repeat(2, 1fr); }
  .opt-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .ai-facts { grid-template-columns: repeat(2, 1fr); }
  .chat { inset: auto 16px 16px auto; width: 390px; height: min(78vh, 620px); border-radius: 22px; }
}
@media (min-width: 720px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head--split { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .opt-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .real-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .detail-row { grid-template-columns: 1fr 1fr; }
  .adv-list { grid-template-columns: repeat(2, 1fr); }
  .result-top { grid-template-columns: 1.3fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-legal { flex-direction: row; justify-content: space-between; gap: 2rem; }
  .field-row { grid-template-columns: repeat(4, 1fr); }
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .product { width: min(62vw, 480px); }
  .chat-fab-label { display: inline; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-burger, .nav-mobile { display: none !important; }
  .nav-phone { display: inline-flex; }
  .nav-actions { margin-left: 0; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-spec { display: block; }
  .hero-foot { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 1.4rem 1.6rem 1.4rem 0; }
  .stat + .stat { padding-left: 1.6rem; border-left: 1px solid var(--line); }
  .hero-scroll { display: block; }
  .versus-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .adv-list { grid-template-columns: repeat(5, 1fr); }
  .pillars { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; }
  .pillar { border-bottom: 0; }
  .detail-row { grid-template-columns: 1.4fr 1fr; }
  .process-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
  .process-aside { position: sticky; top: calc(var(--nav-h) + 30px); }
  .cfg-photo { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
  .cfg-form { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
  .cfg-preview { position: sticky; top: calc(var(--nav-h) + 20px); }
  .project { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
  .gate { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .community-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--nav-h) + 30px); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .product { width: 440px; }
  .media--product { aspect-ratio: auto; height: min(42vh, 390px); }
  .showcase { padding-bottom: 56px; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .chat-fab { bottom: 24px; right: 24px; }
  .chat { right: 24px; bottom: 24px; }
}
@media (min-width: 1280px) {
  .product { width: 470px; }
  .hero-title { font-size: clamp(5rem, 7.4vw, 7.6rem); }
}
@media (max-width: 539px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--2 { grid-template-columns: 1fr; }
  .cfg-steps li { flex-direction: column; gap: .3rem; font-size: .7rem; padding: .8rem .2rem; }
  .compare-tabs button { font-size: .72rem; }
  .project-item { grid-template-columns: 48px 1fr; }
  .project-item svg { width: 48px; height: 42px; }
  .pi-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .ba { aspect-ratio: 4 / 5; }
  .callout { font-size: .62rem; }
  .hero-actions .btn { width: 100%; }
}

/* 9. Reduced motion (solo lo intrusivo) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh, .pulse-dot, .thermo-wall span, .hero-scroll span { animation: none; }
  .media--hero img { animation: none; transform: none; }
}
