/* ==========================================================================
   Calculadora Easy Meli — hoja de estilos
   Tema claro bloqueado. Marca: azul royal #0038B8 + amarillo dorado #F8C400.
   ========================================================================== */

:root {
  /* Marca */
  --blue: #0038B8;
  --blue-deep: #00268A;
  --blue-bright: #0a50d0;
  --yellow: #f8c400;
  --yellow-bright: #ffd400;
  --yellow-deep: #e5a600;

  /* Neutros (fríos, alineados al azul) */
  --ink: #0c1526;
  --ink-soft: #33415c;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --bg-wash: #eaf0ff;
  --line: #e3e9f5;
  --line-strong: #cfd8ec;
  --card: #ffffff;

  /* Semáforo reputación */
  --verde: #16a34a;
  --amar: #eab308;
  --roja: #e0483b;

  /* Sombras tintadas en azul */
  --sh-sm: 0 1px 2px rgba(12, 21, 38, .05), 0 2px 8px rgba(0, 56, 184, .05);
  --sh-md: 0 8px 24px rgba(0, 56, 184, .09), 0 2px 6px rgba(12, 21, 38, .05);
  --sh-lg: 0 24px 60px rgba(0, 56, 184, .16), 0 8px 20px rgba(12, 21, 38, .06);

  /* Radios (sistema: estructural 12-20px, chips pill) */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-pill: 999px;

  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Akshar", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.06; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.tag {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  color: var(--blue);
  background: var(--bg-wash);
  border: 1px solid var(--line-strong);
  padding: 6px 13px; border-radius: var(--r-pill);
}

/* ------------------------------ Botones ------------------------------ */
.btn {
  --_bg: var(--blue); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  background: var(--_bg); color: var(--_fg);
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 12px 20px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--blue); }
.btn--primary:hover { background: var(--blue-bright); }
.btn--yellow { --_bg: var(--yellow); --_fg: var(--ink); }
.btn--yellow:hover { background: var(--yellow-bright); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--blue);
  border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__logo { height: 34px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: .96rem; color: var(--ink-soft); }
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--blue); }
.nav__cta { margin-left: 4px; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 8vw, 100px);
}

/* Fondo animado del hero: orbes de color a la deriva. On-brand y 100% responsive:
   se ve igual de bien en computador y celular, sin recortes ni cuadros vacíos. */
.hero__fx {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 82% -12%, var(--bg-wash), transparent 60%),
    radial-gradient(760px 460px at 2% 108%, #fff4cf, transparent 58%),
    var(--bg);
}
/* Video real: solo en pantallas anchas (computador). En celular queda oculto y
   se ve el fondo animado de orbes (donde el video de bordes no funciona). */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
@media (min-width: 768px) {
  .hero__video { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none !important; }
}
.hero__fx::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.24) 32%, rgba(255,255,255,.08) 55%, rgba(255,255,255,.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.4) 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.orb--blue {
  width: 44vw; height: 44vw; max-width: 600px; max-height: 600px; top: -12%; right: -4%; opacity: .5;
  background: radial-gradient(circle at 32% 32%, #4f7bec, var(--blue) 55%, transparent 72%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.orb--yellow {
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; bottom: -16%; left: -6%; opacity: .4;
  background: radial-gradient(circle at 40% 40%, #ffe27a, var(--yellow) 58%, transparent 74%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.orb--sky {
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; top: 30%; left: 44%; opacity: .5;
  background: radial-gradient(circle at 50% 50%, #9fc0ff, #cfe0ff 55%, transparent 72%);
  animation: drift3 22s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-8%,10%) scale(1.12); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(12%,-8%) scale(1.15); } }
@keyframes drift3 { 0% { transform: translate(-6%,0) scale(1); } 100% { transform: translate(8%,-10%) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none !important; } }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.55rem);
  margin: 18px 0 0; max-width: 15ch;
  background: linear-gradient(180deg, var(--ink) 30%, var(--blue) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede {
  margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft);
  max-width: 46ch; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts {
  list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: .96rem;
}
.hero__facts li { position: relative; padding-left: 22px; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--yellow); border: 2px solid var(--blue);
}
.hero__facts strong { color: var(--ink); font-weight: 700; }

/* Tarjeta de vista previa (componente real, no captura falsa) */
.hero__preview { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.pcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 24px; position: relative; z-index: 2;
}
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__label { font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.pcard__badge {
  font-size: .78rem; font-weight: 700; color: var(--blue);
  background: var(--bg-wash); border-radius: var(--r-pill); padding: 4px 11px;
}
.pcard__price {
  font-family: var(--mono); font-weight: 700; font-size: 2.7rem; color: var(--blue);
  letter-spacing: -.02em; margin: 8px 0 18px;
}
.pcard__rows { display: grid; gap: 11px; }
.pcard__rows > div { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-soft); }
.pcard__rows b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.pcard__net {
  margin-top: 6px; padding-top: 13px; border-top: 1px dashed var(--line-strong);
  font-weight: 700;
}
.pcard__net span { color: var(--ink); }
.pcard__net b { color: var(--verde); font-weight: 700; }
.pcard__float {
  position: absolute; z-index: 3; font-size: .8rem; font-weight: 700;
  padding: 8px 13px; border-radius: var(--r-pill); box-shadow: var(--sh-md);
}
.pcard__float--y { background: var(--yellow); color: var(--ink); top: -16px; right: 18px; }
.pcard__float--b { background: var(--blue); color: #fff; bottom: -14px; left: 6px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy h1 { max-width: 20ch; }
  .lede { max-width: 56ch; }
  .hero__preview { max-width: 340px; }
}

/* ------------------------------ Franja "qué contempla" ------------------------------ */
.strip { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 66px) 0; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip__item { padding-right: 8px; }
.strip__num {
  font-family: var(--mono); font-weight: 700; font-size: .85rem;
  color: var(--yellow); letter-spacing: .1em;
}
.strip__item h3 { font-size: 1.18rem; margin: 12px 0 8px; }
.strip__item p { color: #b6c2da; font-size: .95rem; line-height: 1.55; }
@media (max-width: 860px) { .strip__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; } }
@media (max-width: 520px) { .strip__grid { grid-template-columns: 1fr; } }

/* ------------------------------ Secciones ------------------------------ */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--calc { background: var(--bg-soft); }
.section--faq { background: var(--bg-soft); }
.section__head { max-width: 62ch; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section__sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }

/* ------------------------------ Bento ------------------------------ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento__cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-sm);
}
.bento__cell h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bento__cell p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.bento__cell b { color: var(--ink); font-weight: 700; }
.bento__cell--wide { grid-column: span 2; }
.bento--blue { background: linear-gradient(150deg, var(--blue), var(--blue-deep)); border-color: transparent; color: #fff; }
.bento--blue h3, .bento--blue b { color: #fff; }
.bento--blue p { color: #cdd8f4; }
.bento--yellow { background: linear-gradient(150deg, #fff4c9, #ffe58a); border-color: #f3d878; }
.bento--ink { background: var(--ink); border-color: transparent; color: #fff; }
.bento--ink h3, .bento--ink b { color: #fff; }
.bento--ink p { color: #b6c2da; }
.bento__demo {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 13px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12); font-family: var(--mono); font-size: .92rem;
}
.bento__demo b { font-weight: 700; }
.bento__arrow { color: var(--yellow); font-family: var(--font); font-weight: 700; font-size: .82rem; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide { grid-column: auto; }
}

/* ------------------------------ Calculadora ------------------------------ */
.calc {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px;
  align-items: start;
}
.calc__inputs {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-sm);
}
.calc__result { position: sticky; top: 88px; }

/* Switch de modo */
.modeswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.modeswitch__btn {
  text-align: left; font-family: inherit; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--bg-soft);
  border-radius: var(--r-md); padding: 12px 14px; transition: all .15s;
  display: flex; flex-direction: column; gap: 1px;
}
.modeswitch__btn b { font-size: .98rem; color: var(--ink); }
.modeswitch__btn span { font-size: .82rem; color: var(--muted); }
.modeswitch__btn.is-active { border-color: var(--blue); background: var(--bg-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.modeswitch__btn.is-active b { color: var(--blue-deep); }

/* Campos */
.field { margin-bottom: 18px; }
.field > label, .field legend {
  display: block; font-weight: 700; font-size: .92rem; color: var(--ink);
  margin-bottom: 8px; padding: 0;
}
.field--hero {
  background: var(--bg-wash); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 16px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.subfield label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }

/* Inputs */
input[type="number"], input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; background: #fff; transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 56, 184, .14); }

.ipt { position: relative; display: flex; align-items: center; }
.ipt__pre, .ipt__post {
  position: absolute; font-weight: 700; color: var(--muted); pointer-events: none; font-size: 1rem;
}
.ipt__pre { left: 13px; }
.ipt--money input { padding-left: 26px; }
.ipt__post { right: 14px; }
.ipt--pct input { padding-right: 30px; }
.ipt--tiny input { padding: 8px 26px 8px 11px; width: 92px; }

.subfield input { padding: 10px 11px; }

/* Segmented reputación */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg {
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  border-radius: var(--r-sm); padding: 11px 8px; transition: all .15s;
  position: relative; padding-left: 30px;
}
.seg::before {
  content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: currentColor; opacity: .5;
}
.seg--verde { --_c: var(--verde); }
.seg--amarilla { --_c: var(--amar); }
.seg--roja { --_c: var(--roja); }
.seg--verde::before { color: var(--verde); }
.seg--amarilla::before { color: var(--amar); }
.seg--roja::before { color: var(--roja); }
.seg.is-active {
  color: var(--ink); border-color: var(--_c);
  box-shadow: inset 0 0 0 1px var(--_c); background: color-mix(in srgb, var(--_c) 8%, #fff);
}
.seg.is-active::before { opacity: 1; }

/* Slider de margen */
.slider { display: flex; align-items: center; gap: 14px; }
.slider input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 40%), var(--line-strong) var(--fill, 40%));
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); box-shadow: var(--sh-sm); cursor: grab;
}
.slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab;
}
.slider__val { display: flex; align-items: center; gap: 2px; font-weight: 800; color: var(--blue-deep); }
.slider__val input { width: 62px; text-align: right; font-weight: 800; color: var(--blue-deep); padding: 8px 6px; }
.slider__val span { font-weight: 800; }

.field--dims legend { margin-bottom: 10px; }
.field--dims { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 16px; }

.hint { font-size: .84rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.hint b { color: var(--ink-soft); }

/* Tooltip trigger */
.q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; font-size: .72rem; font-weight: 800;
  background: var(--bg-wash); color: var(--blue); border: 1px solid var(--line-strong);
  cursor: help; vertical-align: middle; margin-left: 3px;
}

/* Panel de resultado */
.result {
  background: linear-gradient(170deg, var(--blue), var(--blue-deep));
  color: #fff; border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--sh-lg);
}
.result__label { font-weight: 700; color: #bcd0ff; font-size: .95rem; }
.result__big {
  font-family: var(--mono); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.2rem);
  letter-spacing: -.02em; margin: 4px 0 2px; line-height: 1;
  color: #fff; word-break: break-word;
}
.result__meta { color: #bcd0ff; font-size: .9rem; min-height: 1.2em; margin-top: 6px; }

/* Bloque de descuento de promoción + precio final que se cobra */
.result__promo {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.result__promo-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result__promo-ctrl label { font-weight: 700; font-size: .9rem; color: #fff; }
.result__promo .ipt--tiny input { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .34); color: #fff; }
.result__promo .ipt--tiny .ipt__post { color: #cdd8f4; }
.result__final {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .24);
}
.result__final span { color: #eaf0ff; font-size: .92rem; font-weight: 600; }
.result__final b { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--yellow-bright); }
.result__promo-note { margin-top: 10px; color: #bcd0ff; font-size: .82rem; line-height: 1.45; }
.result__break {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid; gap: 10px;
}
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .95rem; }
.rrow span { color: #cdd8f4; }
.rrow b { font-family: var(--mono); font-weight: 500; color: #fff; }
.rrow--strong { margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .28); }
.rrow--strong span { color: #fff; font-weight: 700; }
.rrow--strong b { font-weight: 700; font-size: 1.1rem; }
.rrow--net b { color: var(--yellow-bright); }

.result__alerts { margin-top: 16px; display: grid; gap: 9px; }
.alert {
  font-size: .86rem; line-height: 1.45; border-radius: var(--r-sm); padding: 10px 13px;
  display: flex; gap: 9px; align-items: flex-start;
}
.alert::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.alert--info { background: rgba(255, 255, 255, .12); color: #eaf0ff; }
.alert--info::before { background: var(--yellow); }
.alert--warn { background: rgba(224, 72, 59, .2); color: #ffe1dd; }
.alert--warn::before { background: #ff8a7d; }

/* Promo */
.promo { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.promo__head b { display: block; color: #fff; font-size: .98rem; }
.promo__head span { display: block; color: #bcd0ff; font-size: .84rem; margin-top: 3px; line-height: 1.45; }
.promo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.promo__row label { font-weight: 700; font-size: .9rem; }
.promo .ipt--tiny input { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.promo .ipt--tiny .ipt__post { color: #cdd8f4; }
.promo__out { display: grid; gap: 8px; }
.promo__out > div { display: flex; justify-content: space-between; font-size: .92rem; }
.promo__out span { color: #cdd8f4; }
.promo__out b { font-family: var(--mono); font-weight: 700; }
.promo__out b#promo-lista { text-decoration: line-through; color: #9fb2e0; font-weight: 500; }
.promo__out b#promo-final { color: var(--yellow-bright); }

.calc__disclaimer {
  margin-top: 20px; font-size: .86rem; color: var(--muted); max-width: 74ch; line-height: 1.55;
}

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ------------------------------ FAQ ------------------------------ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 20px; box-shadow: var(--sh-sm); transition: box-shadow .2s;
}
.faq__item[open] { box-shadow: var(--sh-md); }
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-weight: 700; color: var(--blue); font-size: 1.4rem;
  transition: transform .2s; flex: 0 0 auto;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 18px; }
.faq__body p { color: var(--ink-soft); line-height: 1.6; max-width: 68ch; }

/* ------------------------------ CTA cierre ------------------------------ */
.close { padding: clamp(56px, 9vw, 100px) 0; background: var(--bg); }
.close__inner {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border-radius: 28px; padding: clamp(38px, 6vw, 64px); text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.close__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 85% 0%, rgba(248, 196, 0, .3), transparent 60%);
}
.close__inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); position: relative; }
.close__inner p { margin: 14px auto 26px; color: #d5e0fb; max-width: 48ch; font-size: 1.08rem; position: relative; }
.close__inner .btn { position: relative; }

/* ------------------------------ Footer ------------------------------ */
.foot { background: var(--ink); color: #fff; padding: 46px 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px 60px; align-items: start; justify-content: space-between; }
.foot__word { font-weight: 800; font-size: 1.4rem; color: var(--yellow); letter-spacing: -.02em; }
.foot__word span { color: #fff; }
.foot__brand p { color: #b6c2da; margin-top: 6px; font-size: .95rem; }
.foot__legal { color: #8494b4; font-size: .84rem; max-width: 52ch; line-height: 1.55; }

/* ------------------------------ Tooltip flotante ------------------------------ */
.tip {
  position: fixed; z-index: 100; max-width: 260px; background: var(--ink); color: #fff;
  font-size: .84rem; line-height: 1.45; padding: 10px 13px; border-radius: var(--r-sm);
  box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none;
}
.tip.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

/* ------------------------------ Reveal on scroll ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
