/* Forja Web — sistema visual
   Carbón + marfil. El verde lima se reserva para acciones principales y estados seleccionados. */

:root {
  --carbon: #0f110f;
  --carbon-2: #161916;
  --carbon-3: #1e221e;
  --carbon-4: #2a2f29;
  --ivory: #f2ede3;
  --ivory-2: #d9d3c6;
  --muted: #a9a497;
  --line: rgba(242, 237, 227, .13);
  --line-2: rgba(242, 237, 227, .22);
  --lime: #c8ff2d;
  --lime-2: #b4ec14;
  --lime-ink: #0f110f;
  --danger: #ff8a7a;
  --ok: #c8ff2d;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --head: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--carbon); color: var(--ivory);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible { outline: 3px solid var(--ivory); outline-offset: 3px; border-radius: 6px; }
.btn-primary:focus-visible { outline-color: var(--ivory); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@media (max-width: 560px) { .hide-s { display: none !important; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: .98; }
.display em { font-style: italic; color: var(--ivory-2); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ivory-2); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }

/* Botones */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--b);
  background: transparent; color: var(--ivory); font-weight: 600; font-size: 15px; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--ivory); background: rgba(242, 237, 227, .06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-2); border-color: var(--lime-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; font-weight: 500; }
.link:hover { text-decoration-color: var(--ivory); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ivory-2); }
.tag-demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

/* Aviso de modo demostración (precios ilustrativos) */
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ivory-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; margin: 0; max-width: 60em; }
.demo-note b { color: var(--ivory); }
.demo-note::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: italic 600 12px/1 var(--serif); margin-top: 1px; }
html[data-modo="produccion"] .demo-note, html[data-modo="produccion"] .demo-only { display: none !important; }

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(15, 17, 15, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { height: var(--head); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ivory-2); font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ivory); background: rgba(242, 237, 227, .06); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ivory); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

.menu { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; background: var(--carbon); color: var(--ivory); }
.menu::backdrop { background: rgba(0, 0, 0, .6); }
.menu-in { display: flex; flex-direction: column; min-height: 100%; padding: 0 var(--gut) 32px; }
.menu-top { height: var(--head); display: flex; align-items: center; justify-content: space-between; }
.menu-close { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.menu nav { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--line); }
.menu nav a { font-family: var(--serif); font-size: 38px; line-height: 1.1; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu .btn { margin-top: 28px; }
.menu-foot { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .nav, .site-head .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Primera pantalla ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; background: radial-gradient(closest-side, rgba(200, 255, 45, .07), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(52px, 7.4vw, 112px); margin: 22px 0 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-trust li { display: flex; gap: 8px; align-items: center; }
.hero-trust li::before { content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2ede3' stroke-width='1.6'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }

.stage { position: relative; aspect-ratio: 1.12; width: 100%; perspective: 1600px; }
.stage-item { position: absolute; transition: transform .6s var(--ease); will-change: transform; }
.stage-item figcaption { position: absolute; display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 12.5px; font-weight: 600; background: rgba(15, 17, 15, .86); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px 7px 10px; backdrop-filter: blur(6px); }
.stage-item figcaption i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.s-andina { left: 0; top: 4%; width: 74%; z-index: 1; }
.s-andina figcaption { left: 16px; bottom: -16px; }
.s-vertice { right: 0; top: 40%; width: 60%; z-index: 2; }
.s-vertice figcaption { right: 16px; bottom: -16px; }
.s-cafe { left: 46%; top: 12%; width: 23%; z-index: 3; }
.s-cafe figcaption { left: 50%; transform: translateX(-50%); bottom: -18px; }

/* Marco de navegador */
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 237, 227, .1); }
.browser-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #e9e7e2; border-bottom: 1px solid #d6d3cc; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c5bc; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 60%; height: 16px; border-radius: 6px; background: #f7f6f3; font: 500 10px/16px var(--sans); color: #6b685f; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #ece9e3; }

/* Teléfono genérico (sin marca) */
/* Proporciones reales (71,5 × 147 mm, pantalla 19,5:9). Las medidas usan cqw: se calculan
   sobre el ancho del propio teléfono, así el bisel es igual de fino en cualquier tamaño. */
.phone {
  position: relative; container-type: inline-size; border-radius: 14.6% / 7.1%;
  background: linear-gradient(135deg, #b9bdc1 0%, #6c7075 18%, #2b2e31 50%, #6c7075 82%, #a9adb1 100%);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 12px 24px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .55);
}
.phone::before { content: ""; position: absolute; right: -.7cqw; top: 25%; width: .9cqw; height: 11.5%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #4c5054, #8b8f93); }
.phone::after { content: ""; position: absolute; left: -.7cqw; top: 20%; width: .9cqw; height: 7.5%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #8b8f93, #4c5054); box-shadow: 0 19cqw 0 0 #6c7075; }
.phone-screen { position: relative; margin: 1.1cqw; border: 2.5cqw solid #040405; border-radius: 13.3cqw; overflow: hidden; background: #f3eee4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.phone-screen img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 798; object-fit: cover; object-position: top; }
/* Barra de estado (hora, señal, wifi, batería) con el color de la cabecera de cada demo */
.phone-screen {
  padding-top: 11cqw;
  background: var(--sb, #f4ecdf) no-repeat center top / 100% 11cqw url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 46'%3E%3Ctext x='40' y='30' font-family='Inter,Segoe UI,Arial' font-size='16' font-weight='600' fill='%23111'%3E9:41%3C/text%3E%3Cg fill='%23111'%3E%3Crect x='296' y='25' width='3.4' height='5' rx='1'/%3E%3Crect x='301' y='22' width='3.4' height='8' rx='1'/%3E%3Crect x='306' y='19' width='3.4' height='11' rx='1'/%3E%3Crect x='311' y='16' width='3.4' height='14' rx='1'/%3E%3Ccircle cx='329' cy='28' r='1.6'/%3E%3Crect x='344' y='19' width='17' height='8' rx='2'/%3E%3C/g%3E%3Cpath d='M322 21.5a10 10 0 0 1 14 0M325 24.5a6 6 0 0 1 8 0' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Crect x='342' y='17' width='24' height='12' rx='3.5' fill='none' stroke='%23111' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E");
}
.phone-screen.sb-dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 46'%3E%3Ctext x='40' y='30' font-family='Inter,Segoe UI,Arial' font-size='16' font-weight='600' fill='%23fff'%3E9:41%3C/text%3E%3Cg fill='%23fff'%3E%3Crect x='296' y='25' width='3.4' height='5' rx='1'/%3E%3Crect x='301' y='22' width='3.4' height='8' rx='1'/%3E%3Crect x='306' y='19' width='3.4' height='11' rx='1'/%3E%3Crect x='311' y='16' width='3.4' height='14' rx='1'/%3E%3Ccircle cx='329' cy='28' r='1.6'/%3E%3Crect x='344' y='19' width='17' height='8' rx='2'/%3E%3C/g%3E%3Cpath d='M322 21.5a10 10 0 0 1 14 0M325 24.5a6 6 0 0 1 8 0' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Crect x='342' y='17' width='24' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-opacity='.5' stroke-width='1.2'/%3E%3C/svg%3E"); }
.phone-screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, .09) 46%, transparent 54%); }
.phone-screen::after { content: ""; position: absolute; z-index: 3; top: 3.7cqw; left: 50%; width: 3.6cqw; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 60% 40%, #26324a 0 18%, #050506 40%); box-shadow: 0 0 0 .6cqw rgba(0, 0, 0, .35); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 76px); margin-top: 18px; }
.sec-head p { color: var(--ivory-2); margin: 0; max-width: 34em; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Galería de ejemplos */
.projects { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); }
.project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.project:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; padding-bottom: 8%; }
.project-media .browser { width: 88%; transition: transform .5s var(--ease); }
.project-media .phone { position: absolute; width: 27%; right: 0; bottom: 0; transition: transform .5s var(--ease); }
.project:nth-child(even) .project-media .browser { margin-left: auto; }
.project:nth-child(even) .project-media .phone { right: auto; left: 0; }
.project-media:hover .browser { transform: translateY(-4px); }
.project-media:hover .phone { transform: translateY(-10px) rotate(-1deg); }
.project-media a { display: block; text-decoration: none; border-radius: 12px; }
.project-num { font: 500 13px/1 var(--sans); color: var(--muted); letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.project h3 { font-family: var(--serif); font-size: clamp(42px, 4.6vw, 64px); line-height: 1; }
.project .rubro { color: var(--muted); margin: 8px 0 22px; font-size: 15px; }
.project .what { font-size: 18px; color: var(--ivory-2); }
.feat { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 22px 0; font-size: 15px; }
.feat li { padding-left: 22px; position: relative; color: var(--ivory-2); }
.feat li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--ivory-2); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow b { color: var(--ivory); font-weight: 500; }
.flow span[aria-hidden] { opacity: .6; }
.from { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.from strong { font: 400 30px/1 var(--serif); color: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.compare-link { font-size: 14px; color: var(--muted); margin-top: 16px; display: inline-block; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .compare-link { display: none; }
}
@media (max-width: 520px) { .feat { grid-template-columns: 1fr; } }

/* Necesidades */
.needs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.needs-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.need-tab { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 20px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ivory-2); font-size: 18px; font-weight: 500; line-height: 1.3; min-height: 64px; }
.need-tab .n { font: 400 15px/1 var(--serif); color: var(--muted); }
.need-tab .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.need-tab:hover { color: var(--ivory); }
.need-tab[aria-selected="true"] { color: var(--ivory); }
.need-tab[aria-selected="true"] .dot { background: var(--lime); border-color: var(--lime); }
.need-panel { background: var(--carbon-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(22px, 3vw, 44px); }
.need-panel[hidden] { display: none; }
.need-panel h3 { font: 400 clamp(30px, 3vw, 42px)/1.05 var(--serif); margin-bottom: 14px; }
.need-panel .checks { list-style: none; display: grid; gap: 10px; margin: 20px 0 26px; }
.need-panel .checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ivory-2); font-size: 15.5px; }
.need-panel .checks li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2ede3' stroke-width='1.6'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.need-ex { display: flex; flex-direction: column; gap: 14px; }
.need-ex .browser img { aspect-ratio: 16 / 11; }
.need-ex p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .needs { grid-template-columns: 1fr; }
  .needs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; }
  .need-tab { border: 1px solid var(--line); border-radius: 12px; padding: 14px; grid-template-columns: 1fr; font-size: 15px; gap: 6px; min-height: 0; }
  .need-tab .dot { display: none; }
  .need-tab[aria-selected="true"] { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
  .need-panel { grid-template-columns: 1fr; }
}

/* Qué incluye */
.incl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.incl-statement { position: sticky; top: calc(var(--head) + 32px); }
.incl-statement h2 { font-size: clamp(40px, 5vw, 70px); margin: 18px 0 22px; }
.incl-blocks { display: flex; flex-direction: column; }
.incl-block { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 32px; }
.incl-block:last-child { border-bottom: 1px solid var(--line); }
.incl-block h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.incl-block p { color: var(--ivory-2); }
.incl-block p:last-child { margin: 0; }
.incl-list { list-style: none; columns: 2; column-gap: 28px; }
.incl-list li { break-inside: avoid; padding: 0 0 10px 22px; position: relative; color: var(--ivory-2); font-size: 15.5px; }
.incl-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--ivory-2); }
.rec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rec-table th, .rec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rec-table th { font-weight: 500; color: var(--ivory); padding-right: 16px; }
.rec-table td { color: var(--ivory-2); }
.rec-table td.amt { color: var(--ivory); text-align: right; padding-left: 16px; width: 42%; }
@media (max-width: 560px) { .rec-table tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; } .rec-table th, .rec-table td { border: 0; padding: 2px 0; } .rec-table td.amt { text-align: left; width: auto; padding: 4px 0 0; } }
.rec-table small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) {
  .incl { grid-template-columns: 1fr; }
  .incl-statement { position: static; }
  .incl-block { grid-template-columns: 1fr; }
  .incl-list { columns: 1; }
}

/* Comparación: incluido / opcional / aparte */
.compare { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare > div { padding: 28px; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { font: 400 28px/1.1 var(--serif); margin-bottom: 6px; }
.compare .sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.compare ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ivory-2); }
.compare .c-in { background: var(--carbon-2); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Proceso */
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px minmax(0, 4fr) minmax(0, 7fr); gap: 16px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step-n { font: 400 54px/1 var(--serif); color: var(--muted); }
.step h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 10px; }
.step > div:nth-child(2) p { color: var(--ivory-2); margin: 0; }
.step dl { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
.step dt { color: var(--muted); font-weight: 500; }
.step dd { margin: 0; color: var(--ivory-2); }
@media (max-width: 860px) {
  .step { grid-template-columns: 54px minmax(0, 1fr); }
  .step-n { font-size: 38px; }
  .step dl { grid-column: 2; grid-template-columns: 1fr; gap: 2px; }
  .step dd { margin-bottom: 10px; }
}

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.faq h2 { font-size: clamp(40px, 5vw, 68px); margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 18.5px; font-weight: 500; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ivory), var(--ivory)) center/14px 1.5px no-repeat, linear-gradient(var(--ivory), var(--ivory)) center/1.5px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ivory-2); max-width: 46em; }
.faq details > div p:last-child { margin: 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Cierre */
.closing { padding: clamp(80px, 12vw, 170px) 0; text-align: left; }
.closing h2 { font-size: clamp(52px, 8vw, 128px); max-width: 11ch; margin: 18px 0 28px; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.paths { list-style: none; border-top: 1px solid var(--line); }
.paths a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; min-height: 64px; }
.paths a small { display: block; font-size: 14px; color: var(--muted); }
.paths a:hover { background: rgba(242, 237, 227, .04); }
.paths a .arr { transition: transform .2s var(--ease); }
.paths a:hover .arr { transform: translateX(4px); }
@media (max-width: 900px) { .closing-grid { grid-template-columns: 1fr; } }

/* Pie */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.foot-grid nav a { text-decoration: none; color: var(--ivory-2); }
.foot-grid nav a:hover { color: var(--ivory); }
.foot-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.foot-legal p { margin: 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } .foot-grid nav { justify-content: flex-start; } }

/* Aparición suave (solo con JS y sin preferencia de movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .hero .rv { transition-duration: .8s; }
  @view-transition { navigation: auto; }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 760px; margin: 12px auto 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stage { aspect-ratio: 1.05; }
  .s-andina { width: 84%; }
  .s-vertice { width: 70%; top: 46%; }
  .s-cafe { width: 30%; left: 52%; top: 8%; }
  .stage-item figcaption { font-size: 11px; padding: 6px 10px 6px 8px; }
  .s-andina figcaption { left: 8px; }
  .s-vertice figcaption { right: 8px; }
}

/* =====================================================================
   COTIZADOR
   ===================================================================== */
.q-page { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }
.q-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.q-head h1 { font-size: clamp(40px, 5vw, 68px); margin-top: 14px; }
.q-progress { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 32px; counter-reset: p; }
.q-progress li { font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 2px solid var(--carbon-4); }
.q-progress li span { display: block; font-weight: 600; }
.q-progress li.done { border-top-color: var(--ivory-2); color: var(--ivory-2); }
.q-progress li.now { border-top-color: var(--lime); color: var(--ivory); }
.q-progress button { all: unset; cursor: pointer; display: block; }
.q-progress button:focus-visible { outline: 3px solid var(--ivory); outline-offset: 4px; border-radius: 4px; }
.q-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.q-main { min-width: 0; }
.q-step { display: none; }
.q-step.on { display: block; animation: qIn .35s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-step.on { animation: none; } }
.q-step h2 { font: 400 clamp(32px, 3.4vw, 46px)/1.05 var(--serif); margin-bottom: 10px; }
.q-step > p.muted { margin-bottom: 26px; }
.q-step:focus { outline: none; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend { font-weight: 600; font-size: 16px; margin-bottom: 14px; padding: 0; }
legend small, .label small { font-weight: 400; color: var(--muted); }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-box { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--carbon-2); transition: border-color .2s, background .2s; font-size: 15.5px; line-height: 1.4; }
.opt-box::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--muted); transition: all .15s; }
.opt input[type="checkbox"] + .opt-box::before { border-radius: 5px; }
.opt:hover .opt-box { border-color: var(--ivory-2); }
.opt input:checked + .opt-box { border-color: var(--lime); background: rgba(200, 255, 45, .06); }
.opt input:checked + .opt-box::before { border-color: var(--lime); background: var(--lime) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f110f' stroke-width='2.4'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.opt input:focus-visible + .opt-box { outline: 3px solid var(--ivory); outline-offset: 2px; }
.opt input:disabled + .opt-box { opacity: .55; cursor: not-allowed; }
.opt-box small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ref .opt-box { flex-direction: column; padding: 12px; gap: 12px; }
.ref .opt-box::before { position: absolute; top: 22px; left: 22px; z-index: 2; background: rgba(15,17,15,.7); }
.ref img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; background: var(--carbon-3); }
.ref .ref-none { width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font: 400 22px/1.2 var(--serif); text-align: center; padding: 12px; }
.ref b { font-size: 16px; }
.ref .badge { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 999px; vertical-align: 2px; }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }

.note { font-size: 14.5px; color: var(--ivory-2); background: var(--carbon-2); border-left: 2px solid var(--ivory-2); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 24px; }
.note.warn { border-left-color: var(--lime); }
.avisos { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; }
.avisos li { font-size: 14px; background: rgba(200, 255, 45, .07); border: 1px solid rgba(200, 255, 45, .3); border-radius: 10px; padding: 10px 14px; }

.fgroup h3 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.incl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.incl-chips li { font-size: 14px; padding: 8px 12px 8px 30px; border: 1px solid var(--line); border-radius: 999px; color: var(--ivory-2); position: relative; }
.incl-chips li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2ede3' stroke-width='1.8'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.fn-list { display: grid; gap: 10px; margin-bottom: 30px; }
.fn .opt-box { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; }
.fn .price { font-weight: 600; white-space: nowrap; font-size: 15px; }
.fn .why { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.fn .dep { display: block; color: var(--ivory-2); font-size: 13px; margin-top: 6px; }
.fn.na .opt-box { border-style: dashed; }
.fn.na .opt-box::before { opacity: .4; }
.counter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--carbon-2); margin-bottom: 10px; }
.counter .why { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: rgba(242, 237, 227, .08); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }

.q-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.q-nav .btn[hidden] { display: none; }

/* Resumen lateral */
.q-aside { position: sticky; top: calc(var(--head) + 20px); background: var(--carbon-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.q-aside h2 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.q-ref { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.q-ref img { width: 84px; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 6px; }
.q-ref .ph { width: 84px; aspect-ratio: 16/10; border-radius: 6px; border: 1px dashed var(--line-2); }
.q-ref small { display: block; color: var(--muted); font-size: 12.5px; }
.q-total { font: 400 46px/1 var(--serif); margin: 6px 0 4px; }
.q-total-label { font-size: 13px; color: var(--muted); }
.q-lines { list-style: none; display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.q-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--ivory-2); }
.q-lines li span:last-child { white-space: nowrap; color: var(--ivory); }
.q-aside .muted { font-size: 13.5px; }

/* Barra inferior del resumen en móvil (no tapa contenido: el main reserva espacio) */
.q-bar { display: none; }
@media (max-width: 960px) {
  .q-layout { grid-template-columns: 1fr; }
  .q-aside { display: none; }
  .q-bar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(22, 25, 22, .96); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); }
  .q-bar .t { font: 400 26px/1 var(--serif); }
  .q-bar small { display: block; font-size: 12px; color: var(--muted); }
  .q-page.has-bar { padding-bottom: 120px; }
  .q-progress li span { display: none; }
  .q-progress li { font-size: 12px; }
}

/* Resumen paso 4 */
.sum { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 28px; }
.sum-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sum-row h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.sum-row ul { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ivory-2); }
.sum-row .edit { font-size: 14px; background: none; border: 0; color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 6px 0; min-height: 36px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sum-total strong { font: 400 44px/1 var(--serif); color: var(--ivory); }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; }
.sum-lines li span:last-child { white-space: nowrap; color: var(--ivory); }
@media (max-width: 700px) { .sum-row { grid-template-columns: minmax(0, 1fr) auto; } .sum-row > div { grid-column: 1 / -1; grid-row: 2; } }

/* Formulario de contacto */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--carbon-2); color: var(--ivory); font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ivory); box-shadow: 0 0 0 3px rgba(242, 237, 227, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: block; color: var(--danger); font-size: 14px; margin-top: 6px; }
.field .err:empty { display: none; }
.field .hint { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--ivory); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ivory-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); }
.err-summary { border: 1px solid var(--danger); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; color: var(--ivory); }
.err-summary h3 { font: 600 15px/1.3 var(--sans); margin-bottom: 6px; }
.err-summary ul { padding-left: 18px; font-size: 14.5px; }
.err-summary a { color: var(--ivory); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.status { border-radius: var(--r); padding: 18px 20px; margin-top: 20px; border: 1px solid var(--line-2); background: var(--carbon-2); }
.status[hidden] { display: none; }
.status h3 { font: 400 28px/1.1 var(--serif); margin-bottom: 8px; }
.status p { color: var(--ivory-2); margin-bottom: 12px; }
.status.ok { border-color: var(--lime); }
.status.err { border-color: var(--danger); }
.status.pending { border-style: dashed; }
.status pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--carbon); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 260px; overflow: auto; color: var(--ivory-2); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   VISOR DE DEMOS (ver.html)
   ===================================================================== */
.viewer { height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: #0b0c0b; }
.v-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px var(--gut); border-bottom: 1px solid var(--line); background: var(--carbon); }
.v-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; }
.v-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-devices { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.v-devices button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--ivory-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.v-devices button[aria-pressed="true"] { background: var(--ivory); color: var(--carbon); }
.v-tabs { display: flex; gap: 4px; }
.v-tabs a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.v-tabs a[aria-current="page"] { color: var(--ivory); background: var(--carbon-3); }
.v-stage { display: grid; place-items: start center; overflow: hidden; padding: 18px; }
.v-frame { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: width .35s var(--ease); }
.v-stage[data-w="820"] .v-frame { width: 820px; }
.v-stage[data-w="390"] .v-frame { width: 390px; max-height: 844px; border-radius: 28px; box-shadow: 0 0 0 10px #1c1f1c, 0 0 0 11px var(--line-2); margin-top: 6px; }
.v-frame { max-width: 100%; }
@media (min-width: 1101px) { #v-name { display: none; } }
@media (max-width: 1100px) { .v-tabs, #v-full { display: none; } }
@media (max-width: 960px) { .v-title .tag { display: none; } .v-devices button { padding: 0 10px; } }
@media (max-width: 760px) { .v-devices { display: none; } }

/* =====================================================================
   MOVIMIENTO (capa opcional: GSAP + WebGL). Sin JS o con movimiento
   reducido, todo el contenido se ve igual y sin animaciones.
   ===================================================================== */
.fondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.fondo.on { opacity: 1; }
.hero > .wrap, .closing > .wrap { position: relative; z-index: 1; }
.closing { position: relative; overflow: hidden; }

/* Palabras que se revelan */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > span { display: inline-block; will-change: transform; }

/* Cinta en movimiento */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--carbon); position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 clamp(26px, 3.2vw, 44px)/1 var(--serif); color: var(--ivory-2); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted); }
.marquee-track span:nth-child(3n+2) { font-style: italic; color: var(--ivory); }
@media (prefers-reduced-motion: no-preference) { .no-gsap .marquee-track { animation: mq 40s linear infinite; } }
@keyframes mq { to { transform: translateX(-50%); } }

/* Teléfono 3D: escena puntual con alternativa ligera */
.showcase { overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.showcase h2 { font-size: clamp(40px, 5.4vw, 76px); margin: 18px 0 22px; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 18px; }
.sc-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ivory-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s var(--ease); }
.sc-tab i { width: 9px; height: 9px; border-radius: 50%; }
.sc-tab:hover { color: var(--ivory); border-color: var(--ivory-2); }
.sc-tab[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.sc-desc { color: var(--ivory-2); min-height: 3.2em; }
.sc-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.sc-hint svg { width: 22px; height: 22px; }
.sc-stage { position: relative; width: 100%; }
/* Escena con la mano: foto real + demo insertada con perspectiva */
.mano-inner { position: relative; aspect-ratio: 1 / 1.08; max-height: 780px; width: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: #1a1d18; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); will-change: transform; transform-style: preserve-3d; }
.mano-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mano-inner::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(120% 90% at 55% 45%, transparent 55%, rgba(10, 12, 10, .55) 100%); }
.mano-screen {
  position: absolute; left: 0; top: 0; z-index: 2; width: 390px; height: 844px; transform-origin: 0 0; opacity: 0; transition: opacity .5s var(--ease);
  border-radius: 46px; overflow: hidden; backface-visibility: hidden;
  background: var(--sb, #f4ecdf) no-repeat center top / 100% 46px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 46'%3E%3Ctext x='40' y='30' font-family='Inter,Segoe UI,Arial' font-size='16' font-weight='600' fill='%23111'%3E9:41%3C/text%3E%3Cg fill='%23111'%3E%3Crect x='296' y='25' width='3.4' height='5' rx='1'/%3E%3Crect x='301' y='22' width='3.4' height='8' rx='1'/%3E%3Crect x='306' y='19' width='3.4' height='11' rx='1'/%3E%3Crect x='311' y='16' width='3.4' height='14' rx='1'/%3E%3Ccircle cx='329' cy='28' r='1.6'/%3E%3Crect x='344' y='19' width='17' height='8' rx='2'/%3E%3C/g%3E%3Cpath d='M322 21.5a10 10 0 0 1 14 0M325 24.5a6 6 0 0 1 8 0' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Crect x='342' y='17' width='24' height='12' rx='3.5' fill='none' stroke='%23111' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E");
}
.mano-screen.sb-dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 46'%3E%3Ctext x='40' y='30' font-family='Inter,Segoe UI,Arial' font-size='16' font-weight='600' fill='%23fff'%3E9:41%3C/text%3E%3Cg fill='%23fff'%3E%3Crect x='296' y='25' width='3.4' height='5' rx='1'/%3E%3Crect x='301' y='22' width='3.4' height='8' rx='1'/%3E%3Crect x='306' y='19' width='3.4' height='11' rx='1'/%3E%3Crect x='311' y='16' width='3.4' height='14' rx='1'/%3E%3Ccircle cx='329' cy='28' r='1.6'/%3E%3Crect x='344' y='19' width='17' height='8' rx='2'/%3E%3C/g%3E%3Cpath d='M322 21.5a10 10 0 0 1 14 0M325 24.5a6 6 0 0 1 8 0' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Crect x='342' y='17' width='24' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-opacity='.5' stroke-width='1.2'/%3E%3C/svg%3E"); }
.mano-screen.ready { opacity: 1; }
.mano-shot { position: absolute; left: 0; top: 46px; width: 100%; height: 798px; object-fit: cover; object-position: top; opacity: 0; transition: opacity .55s var(--ease); filter: saturate(.96) contrast(.97); }
.mano-shot.is-on { opacity: 1; }
/* cámara frontal, reflejo de la luz de la ventana y sombra suave de los bordes */
.mano-screen::before { content: ""; position: absolute; z-index: 3; top: 15px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: radial-gradient(circle at 60% 40%, #2a3550 0 20%, #040405 45%); }
.mano-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, 0) 60%), linear-gradient(200deg, rgba(255, 246, 225, .14), rgba(0, 0, 0, 0) 45%, rgba(20, 16, 10, .16));
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .35), inset 0 0 18px rgba(0, 0, 0, .18); }
.mano-live { position: absolute; left: 0; top: 46px; width: 390px; height: 798px; border: 0; z-index: 1; background: #fff; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.mano-screen.live .mano-live { opacity: 1; }
.mano-tap { position: absolute; z-index: 4; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 60%, rgba(255, 255, 255, 0) 72%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 2px 10px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); }
.mano-step { position: absolute; left: 16px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(15, 17, 15, .72); border: 1px solid rgba(242, 237, 227, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.mano-step.on { opacity: 1; transform: none; }
.mano-step i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 255, 45, .6); animation: vivo 1.6s infinite; }
.mano-step small { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mano-step b { display: block; font-size: 15px; font-weight: 600; color: var(--ivory); }
@keyframes vivo { 70% { box-shadow: 0 0 0 9px rgba(200, 255, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 45, 0); } }
.mano-credit { position: absolute; right: 14px; top: 10px; z-index: 4; margin: 0; font-size: 11px; color: rgba(242, 237, 227, .7); }
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .sc-stage { max-width: 560px; margin: 0 auto; order: -1; }
  .mano-inner { aspect-ratio: 4 / 4.6; }
}
/* Cursor con etiqueta (solo con mouse) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 200; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--lime); transition: opacity .2s; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(242, 237, 227, .45); display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .2s; }
.cursor-ring b { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lime-ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
html.c-link .cursor-ring { width: 54px; height: 54px; border-color: var(--ivory); }
html.c-label .cursor-ring { width: 88px; height: 88px; background: var(--lime); border-color: var(--lime); }
html.c-label .cursor-ring b { opacity: 1; }
html.c-label .cursor-dot, html.c-out .cursor-dot, html.c-out .cursor-ring { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Línea de progreso del proceso */
.steps { position: relative; }
.steps-line { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--lime); transform-origin: top; transform: scaleY(0); border-radius: 2px; pointer-events: none; }
@media (max-width: 860px) { .steps-line { left: -10px; } }

@media (prefers-reduced-motion: reduce) {
  .fondo, .cursor-dot, .cursor-ring, .steps-line { display: none !important; }
}
/* Con GSAP activo, las transiciones CSS no compiten con las animaciones */
main { overflow-x: clip; }
.gsap .rv { opacity: 1; transform: none; transition: none; }
.gsap .stage-item { transition: none; }

/* Entrada del cotizador */
@media (prefers-reduced-motion: no-preference) {
  .q-head > *, .q-page .demo-note, .q-progress, .q-layout { animation: qIn .7s cubic-bezier(.2, .7, .2, 1) both; }
  .q-head > :nth-child(2) { animation-delay: .08s; } .q-page .demo-note { animation-delay: .14s; } .q-progress { animation-delay: .2s; } .q-layout { animation-delay: .26s; }
}
