@font-face{font-family:'Montserrat';font-style:italic;font-weight:100 900;font-display:swap;src:url('assets/fonts/montserrat-italic-100-900-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:100 900;font-display:swap;src:url('assets/fonts/montserrat-italic-100-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:100 900;font-display:swap;src:url('assets/fonts/montserrat-normal-100-900-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:100 900;font-display:swap;src:url('assets/fonts/montserrat-normal-100-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/ubuntu-normal-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/ubuntu-normal-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/ubuntu-normal-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/ubuntu-normal-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/ubuntu-normal-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/ubuntu-normal-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* =============================================================
   Tu Buen Dato · tubuendato.cl
   Archetype: Glassmorphism Modern, con la paleta y el motivo de marca
   (rayas oblicuas de BFM, azul marino #002b49, Montserrat + Ubuntu).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #002b49;
  --navy-700: #0a3f66;
  --blue: #0075c9;
  --blue-600: #0a63a8;
  --sky: #88b9d3;
  --sky-200: #cfe3ef;
  --sky-100: #e6f1f8;
  --gold: #ffb548;
  --gold-200: #fec465;
  --gold-100: #fde7bd;

  --ink: #0b2238;
  --ink-2: #38526b;
  --ink-3: #54697e;

  --bg: #f2f7fb;
  --bg-2: #e8f1f8;
  --card: #ffffff;
  --line: rgba(0, 43, 73, 0.12);
  --line-strong: rgba(0, 43, 73, 0.22);

  --ok: #157a4a;
  --ok-bg: #e5f4ec;
  --warn: #9a4f06;
  --warn-bg: #fdf0dc;
  --err: #b3261e;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --shadow-1: 0 1px 2px rgba(0, 43, 73, 0.06), 0 8px 24px -8px rgba(0, 43, 73, 0.14);
  --shadow-2: 0 2px 4px rgba(0, 43, 73, 0.06), 0 24px 56px -20px rgba(0, 43, 73, 0.3);
  --glow-gold: 0 10px 28px -8px rgba(255, 181, 72, 0.7);

  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Ubuntu", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: 20px;
  --maxw: 1200px;
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  color-scheme: light;
}
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 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
}
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold-200); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 16px;
  padding: 12px 18px; background: var(--navy); color: #fff;
  z-index: 9999; border-radius: 12px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--sky { background: linear-gradient(180deg, var(--sky-100), var(--bg)); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600);
  margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 26px; height: 8px; background:
    linear-gradient(90deg, var(--gold-200) 0 25%, var(--gold) 25% 50%, var(--sky) 50% 75%, var(--blue) 75% 100%);
  transform: skewX(-24deg); border-radius: 1px;
}
.h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; max-width: 20ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 58ch; margin-top: 16px; }
.lede--wide { max-width: 90ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .h2, .section-head--center .lede { margin-inline: auto; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .lede { max-width: 80ch; text-wrap: balance; }

/* La raya de marca: 4 paralelogramos como en el logo de BFM */
.stripes { display: inline-flex; gap: 3px; vertical-align: middle; }
.stripes i {
  display: block; width: 16px; height: 9px; transform: skewX(-24deg); border-radius: 1px;
}
.stripes i:nth-child(1) { background: var(--gold-200); }
.stripes i:nth-child(2) { background: var(--gold); }
.stripes i:nth-child(3) { background: var(--sky); }
.stripes i:nth-child(4) { background: var(--blue); }

/* Entrada del hero: solo CSS, no depende del JS */
.rise { animation: rise 0.9s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll. El contenido siempre se ve si el JS falla
   (la clase .js la agrega main.js solo cuando el observador ya está listo). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Glass
   ============================================================= */
.glass {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .glass {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em;
  text-align: center; line-height: 1.1;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease-out); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-200), var(--gold));
  color: var(--navy); box-shadow: var(--glow-gold);
}
.btn--gold::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%;
  background: rgba(255, 255, 255, 0.5); transform: skewX(-24deg);
  transition: left 0.7s var(--ease-out); z-index: -1;
}
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 43, 73, 0.6); }
.btn--ghost { background: rgba(255, 255, 255, 0.5); color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 117, 201, 0.7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.88rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn small { font-weight: 500; opacity: 0.75; font-size: 0.8em; }

@media (hover: hover) {
  .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(255, 181, 72, 0.85); }
  .btn--gold:hover::after { left: 120%; }
  .btn--navy:hover { transform: translateY(-2px); background: var(--navy-700); }
  .btn--ghost:hover { transform: translateY(-2px); border-color: var(--navy); background: #fff; }
  .btn--blue:hover { transform: translateY(-2px); background: var(--blue-600); }
  .btn:hover svg.arrow { transform: translateX(3px); }
}

/* Enlaces con subrayado animado */
.ulink { position: relative; font-weight: 500; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) { .ulink:hover::after { transform: scaleX(1); } }
.ulink:focus-visible::after { transform: scaleX(1); }

/* =============================================================
   6. Header / navegación
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-solid {
  background: rgba(242, 247, 251, 0.92);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 43, 73, 0.3);
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .site-header.is-solid {
    background: rgba(242, 247, 251, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
  }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-text { display: none; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; color: var(--navy); line-height: 1.05; }
.brand-text small { display: block; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.02em; color: var(--ink-3); }

.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { color: var(--navy); } .nav-links a:hover::after { transform: scaleX(1); } }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: none; }
.nav-toggle {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
  transition: transform 0.35s var(--ease-out), background-color 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0.3s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.m-link {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--navy);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .m-meta { margin-top: auto; font-size: 0.9rem; color: var(--ink-3); }
.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .brand-text { display: block; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* Barra pegajosa móvil: una sola acción */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; gap: 10px; padding: 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-2); border: 1px solid #fff;
  transform: translateY(140%); transition: transform 0.5s var(--ease-out);
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .sticky-cta { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 50px; }
.sticky-cta .wa { flex: none; width: 50px; padding: 0; background: var(--navy); color: #fff; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(28px, 6vw, 72px)) 0 clamp(88px, 12vw, 150px);
  display: flex; align-items: center; isolation: isolate; overflow: clip;
}
.mesh { position: absolute; inset: -20% -10% -10% -10%; z-index: -2; pointer-events: none; overflow: hidden; }
.mesh::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 45% at 18% 25%, rgba(136, 185, 211, 0.95) 0%, transparent 70%),
    radial-gradient(38% 42% at 82% 30%, rgba(0, 117, 201, 0.5) 0%, transparent 70%),
    radial-gradient(42% 46% at 55% 92%, rgba(254, 196, 101, 0.7) 0%, transparent 70%);
  filter: blur(46px) saturate(130%);
  animation: meshDrift 32s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.14) rotate(8deg); }
}
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; opacity: 0.9; pointer-events: none; }
.hero-skyline svg { width: 100%; height: clamp(110px, 20vw, 240px); }

.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.45rem, 8.2vw, 5.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  max-width: 13ch; margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic; font-weight: 700; color: var(--blue); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.2em; z-index: -1;
  background: var(--gold-200); transform: skewX(-18deg); border-radius: 2px;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Mini calculadora flotante (el "producto" que flota) */
.hero-mini { padding: 24px; position: relative; }
.hero-float { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mini-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); }
.mini-label { display: block; margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); }
.mini-money { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.4rem); letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.mini-result { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; }
.mini-result span { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.mini-result strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 4.4vw, 1.9rem); letter-spacing: -0.03em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; color: var(--gold-200); }
.mini-result small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.hero-mini .btn { margin-top: 16px; }
.mini-fine { margin-top: 12px; font-size: 0.8rem; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.mini-fine svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ok); }

/* Slider */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--fill, 30%), var(--sky-200) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--sky-200); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 43, 73, 0.35);
}
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 43, 73, 0.35); }

/* Móvil: el cálculo rápido es la acción principal; los botones repetidos sobran */
@media (max-width: 719px) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero-ctas { display: none; }
  .hero-sub { margin-bottom: 4px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .hero-mini { padding: 30px; }
}

/* =============================================================
   8. Barra de credenciales
   ============================================================= */
.creds-wrap { position: relative; z-index: 5; margin-top: calc(-1 * clamp(56px, 8vw, 84px)); }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: 26px; background: rgba(255, 255, 255, 0.95); }
.cred { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px 20px; border-bottom: 1px solid var(--line); }
.cred:nth-child(odd) { border-right: 1px solid var(--line); }
.cred:nth-last-child(-n+2) { border-bottom: 0; }
.cred-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue); transition: transform 0.5s var(--ease-out), background-color 0.3s ease; }
.cred-ic svg { width: 24px; height: 24px; }
.cred-ic--g { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cred b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5.4vw, 1.75rem); letter-spacing: -0.04em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cred b .stars { gap: 2px; }
.cred b .stars svg { width: 15px; height: 15px; }
.cred div > span { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--ink-3); line-height: 1.35; }
.cred a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .cred:hover .cred-ic { transform: translateY(-2px) scale(1.06); background: var(--gold-100); color: var(--navy); } }
@media (min-width: 720px) {
  .creds { grid-template-columns: repeat(4, 1fr); border-radius: 30px; }
  .cred { padding: 24px 20px; border-bottom: 0; }
  .cred:nth-child(odd) { border-right: 0; }
  .cred + .cred { border-left: 1px solid var(--line); }
  .cred b { font-size: clamp(1.25rem, 2.3vw, 1.6rem); white-space: nowrap; }
}
@media (min-width: 1040px) {
  .cred { flex-direction: row; align-items: center; gap: 16px; padding: 24px 22px; }
  .cred-ic { width: 50px; height: 50px; border-radius: 16px; }
  .cred-ic svg { width: 26px; height: 26px; }
  .cred b { font-size: clamp(1.2rem, 1.9vw, 1.65rem); }
}

/* =============================================================
   9. Calculadora + video
   ============================================================= */
.calc-section { padding-top: clamp(72px, 10vw, 128px); }
.calc-layout { display: grid; gap: 28px; align-items: start; }
.calc-aside { display: grid; gap: 18px; }
@media (min-width: 1000px) {
  .calc-layout { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 36px; }
  .calc-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
}

.video-card { padding: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--navy); }
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0, 43, 73, 0) 55%, rgba(0, 43, 73, 0.22));
}
/* La portada ya trae su propio titular: el botón va en un espacio libre de la imagen (abajo, al centro) */
.video-play .pbtn {
  position: absolute; left: 50%; top: 83%; translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy); box-shadow: 0 0 0 7px rgba(255, 181, 72, 0.32), 0 12px 28px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.video-play .pbtn svg { width: 24px; height: 24px; margin-left: 3px; }
@media (hover: hover) { .video-play:hover .pbtn { transform: scale(1.1); box-shadow: 0 0 0 11px rgba(255, 181, 72, 0.32), 0 12px 28px -8px rgba(0, 0, 0, 0.55); } }
.video-tag { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; text-align: left; }
.video-meta { padding: 16px 10px 8px; }
.video-meta :is(h2, h3) { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.93rem; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.checks.no svg { color: var(--err); }

.privacy-chip { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--ok-bg); color: #0d4d2f; font-size: 0.9rem; line-height: 1.5; }
.privacy-chip svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* Tarjeta de la calculadora */
.calc-card { padding: clamp(20px, 3.4vw, 36px); position: relative; min-height: 540px; display: flex; flex-direction: column; }
.calc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; min-height: 40px; }
.calc-back {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); color: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.calc-back svg { width: 18px; height: 18px; }
.calc-back[hidden] { display: none; }
@media (hover: hover) { .calc-back:hover { transform: translateX(-2px); background: #fff; } }
.calc-progress { flex: 1; display: grid; gap: 7px; }
.calc-progress-bar { display: flex; gap: 4px; }
.calc-progress-bar i { flex: 1; height: 8px; background: var(--sky-200); transform: skewX(-24deg); border-radius: 2px; position: relative; overflow: hidden; }
.calc-progress-bar i::before { content: ""; position: absolute; inset: 0; background: var(--c, var(--blue)); transform: translateX(-101%); transition: transform 0.6s var(--ease-out); }
.calc-progress-bar i.on::before { transform: none; }
.calc-progress-bar i:nth-child(4n+1) { --c: var(--gold-200); }
.calc-progress-bar i:nth-child(4n+2) { --c: var(--gold); }
.calc-progress-bar i:nth-child(4n+3) { --c: var(--sky); }
.calc-progress-bar i:nth-child(4n+4) { --c: var(--blue); }
.calc-progress-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }

.calc-body { flex: 1; display: flex; flex-direction: column; animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.calc-q { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; outline: none; }
.calc-help { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; max-width: 46ch; }
.calc-fields { margin-top: 24px; display: grid; gap: 22px; }

.field label, .field .label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.01em; }
.field .hint { margin-top: 8px; font-size: 0.82rem; color: var(--ink-3); }
.field .opt { font-weight: 500; color: var(--ink-3); }

.input {
  width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9); font-size: 1.05rem; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #8a9bad; }
.input:hover { border-color: var(--sky); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.18); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12); }
.input-wrap { position: relative; }
.input-wrap .pre { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-3); pointer-events: none; font-family: var(--font-display); }
.input-wrap .input { padding-left: 38px; }
.input--money { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-height: 62px; }
.input-wrap .input--tel { padding-left: 64px; }
.input-wrap .pre--tel { font-size: 1rem; }
.err-msg { margin-top: 8px; font-size: 0.84rem; color: var(--err); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.err-msg[hidden] { display: none; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preset {
  min-height: 38px; padding: 0 14px; border-radius: 99px; font-size: 0.84rem; font-weight: 600;
  background: var(--sky-100); color: var(--navy-700); border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.3s var(--ease-out), border-color 0.2s ease;
}
.preset:active { transform: scale(0.96); }
@media (hover: hover) { .preset:hover { background: #fff; border-color: var(--sky); } }

.choice-grid { display: grid; gap: 12px; margin-top: 26px; }
.choice {
  position: relative; text-align: left; display: grid; gap: 10px; padding: 20px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.85); border: 1.5px solid var(--line-strong);
  transition: transform 0.4s var(--ease-out), border-color 0.25s ease, box-shadow 0.4s var(--ease-out), background-color 0.25s ease;
}
.choice .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue); }
.choice .ic svg { width: 26px; height: 26px; }
.choice b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--navy); }
.choice span.s { font-size: 0.9rem; color: var(--ink-2); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.14); }
.choice[aria-checked="true"]::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002b49' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (hover: hover) { .choice:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow-1); } }
@media (min-width: 540px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.85); border: 1.5px solid var(--line-strong); color: var(--ink);
  transition: transform 0.3s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) { .chip:hover { border-color: var(--blue); } }

.radio-list { display: grid; gap: 10px; }
.radio-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 18px; text-align: left;
  border-radius: 16px; background: rgba(255, 255, 255, 0.85); border: 1.5px solid var(--line-strong); font-weight: 600;
  transition: transform 0.35s var(--ease-out), border-color 0.2s ease, box-shadow 0.3s ease;
}
.radio-row small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.82rem; }
.radio-row i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; transition: border-color 0.2s ease; }
.radio-row[aria-checked="true"] { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.14); }
.radio-row[aria-checked="true"] i { border-color: var(--blue); }
.radio-row[aria-checked="true"] i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
@media (hover: hover) { .radio-row:hover { transform: translateX(3px); border-color: var(--sky); } }

.calc-note { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-3); }
.calc-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--ok); }
.calc-actions { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; align-items: center; }
.calc-actions .btn { flex: 1; }
.calc-actions .link-btn { flex: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; padding: 12px 6px; }
.calc-aside-link { margin-top: 18px; font-size: 0.9rem; color: var(--ink-2); }
.calc-aside-link a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Primer resultado (adelanto) */
.teaser-num { margin-top: 22px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.teaser-num::after { content: ""; position: absolute; right: -30px; top: -20px; width: 140px; height: 200px; background: linear-gradient(90deg, rgba(254, 196, 101, 0.9) 0 25%, rgba(255, 181, 72, 0.9) 25% 50%, rgba(136, 185, 211, 0.9) 50% 75%, rgba(0, 117, 201, 0.9) 75%); transform: skewX(-24deg); opacity: 0.22; }
.teaser-num .lbl { font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); position: relative; z-index: 1; }
.teaser-num .big { display: block; position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 8vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.05; margin: 6px 0 4px; color: var(--gold-200); font-variant-numeric: tabular-nums; }
.teaser-num .sub { position: relative; z-index: 1; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.pie-row { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); }
.ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--sky-200) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.ring b { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--navy); }
.pie-row p { font-size: 0.92rem; color: var(--ink-2); }
.pie-row p b { color: var(--navy); }
.locked-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.locked { position: relative; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); border: 1px dashed var(--line-strong); overflow: hidden; }
.locked span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.locked b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); filter: blur(7px); user-select: none; }
.locked svg { position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; color: var(--ink-3); }

/* Consentimientos (Ley 21.719): primero las casillas en lenguaje simple, el detalle legal a un clic */
.consents { margin-top: 6px; display: grid; gap: 2px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); transition: background-color 0.2s ease; }
@media (hover: hover) { .consent:hover { background: rgba(255, 255, 255, 0.95); } }
.consent input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; position: relative; cursor: pointer;
  border: 1.5px solid var(--ink-3); border-radius: 7px; background: #fff; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.consent input[type="checkbox"]::after {
  content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.6, 1);
}
.consent input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.consent input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
@media (hover: hover) { .consent:hover input[type="checkbox"] { border-color: var(--blue); } }
.consent input[type="checkbox"]:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.22); }
.consent-copy strong { color: var(--navy); font-weight: 600; }
.consent-tag { display: block; margin-top: 3px; font-size: 0.76rem; color: var(--ink-3); letter-spacing: 0.01em; }
.consent-tag--req { color: var(--blue-600); font-weight: 700; }
.consent a, .calc-details a, .consent-more a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.consent-more { margin: 2px 0 2px 10px; }
.consent-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 0.82rem; font-weight: 600; color: var(--ink-3); transition: color 0.2s ease; }
.consent-more summary::-webkit-details-marker { display: none; }
.consent-more summary::before { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform 0.25s ease; }
.consent-more[open] summary::before { transform: rotate(45deg); }
@media (hover: hover) { .consent-more summary:hover { color: var(--blue-600); } }
.consent-more p { margin: 6px 0 6px; padding-left: 14px; border-left: 2px solid var(--line-strong); font-size: 0.82rem; line-height: 1.65; color: var(--ink-2); }
.consent-note { font-size: 0.84rem; color: var(--ink-3); margin-top: 2px; }
.trade-note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--gold-100); color: var(--navy); font-size: 0.9rem; line-height: 1.45; }
.trade-note b { font-weight: 700; }
.calc-details { font-size: 0.86rem; color: var(--ink-2); }
.calc-details summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.calc-details summary::-webkit-details-marker { display: none; }
.calc-details summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-100); font-weight: 700; flex: none; }
.calc-details[open] summary::before { content: "–"; }
.calc-details ul { margin-top: 10px; display: grid; gap: 8px; padding-left: 4px; }
.calc-details li { padding-left: 16px; position: relative; }
.calc-details li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Informe */
.tiles { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); }
.tile span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tile b { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3.2vw, 1.4rem); letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--ink-3); }
.tile--wide { grid-column: 1 / -1; }
.tile--good b { color: var(--ok); }
.tile--warn b { color: var(--warn); }

.branch { margin-top: 20px; padding: 20px; border-radius: 22px; border: 1.5px solid var(--blue); background: linear-gradient(180deg, #fff, var(--sky-100)); }
.branch--soft { border-color: var(--gold); background: linear-gradient(180deg, #fff, var(--gold-100)); }
.branch h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.branch p { font-size: 0.95rem; color: var(--ink-2); }
.branch .tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--blue); color: #fff; }
.branch--soft .tag { background: var(--gold); color: var(--navy); }
.branch .price { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 0.9rem; color: var(--ink-3); }
.branch .price b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.03em; }
.branch .btn { margin-top: 16px; }
.plan { margin-top: 14px; display: grid; gap: 10px; counter-reset: plan; }
.plan li { counter-increment: plan; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 0.93rem; color: var(--ink-2); }
.plan li::before { content: counter(plan); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; transform: skewX(-8deg); }
.plan li b { color: var(--navy); }
.report-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.report-actions .btn { flex: 1 1 180px; }
.report-foot { margin-top: 18px; font-size: 0.8rem; color: var(--ink-3); }
.report-foot button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink-2); }
.mini-form { margin-top: 14px; display: grid; gap: 12px; }

noscript .noscript-box { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }

/* =============================================================
   10. Método M.I.O.
   ============================================================= */
.mio-head { display: grid; gap: 28px; align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.mio-logo { width: min(100%, 340px); }
.mio-keychain { margin: 0; width: min(100%, 540px); }
.mio-visual { display: grid; }
.mio-visual .mio-logo { grid-area: 1 / 1; width: 64%; height: auto; position: relative; z-index: 1; }
.mio-visual .mio-key { grid-area: 1 / 1; width: 96%; height: auto; align-self: end; justify-self: end; margin-top: 20%; position: relative; z-index: 2; pointer-events: none; }
.mio-keychain figcaption { margin-top: 6px; font-size: .95rem; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.steps { display: grid; gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 26px 24px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.step .n { display: inline-grid; place-items: center; min-width: 50px; height: 36px; padding: 0 14px; border-radius: 8px; transform: skewX(-14deg); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--navy); margin-bottom: 18px; }
.step .n span { display: block; transform: skewX(14deg); }
.step:nth-child(1) .n { background: var(--gold-200); }
.step:nth-child(2) .n { background: var(--gold); }
.step:nth-child(3) .n { background: var(--sky); }
.step:nth-child(4) .n { background: var(--blue); color: #fff; }
.step h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--ink-2); }
@media (hover: hover) { .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); } }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } .mio-head { grid-template-columns: minmax(0, 520px) 1fr; gap: 56px; } }

/* =============================================================
   11. Casos
   ============================================================= */
.cases { display: grid; gap: 18px; }
.case { border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.photo-slot {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    linear-gradient(135deg, rgba(0, 117, 201, 0.14), rgba(255, 181, 72, 0.18)),
    repeating-linear-gradient(-24deg, rgba(0, 43, 73, 0.05) 0 2px, transparent 2px 14px), var(--sky-100);
  color: var(--ink-3); font-size: 0.82rem;
}
.photo-slot svg { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--blue); opacity: 0.8; }
.photo-slot b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--navy-700); letter-spacing: 0.04em; text-transform: uppercase; }
.case-body { padding: 22px 22px 24px; display: grid; gap: 14px; }
.case-body h3 { font-size: 1.1rem; font-weight: 800; }
.case-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.case-figs div { padding: 12px 10px; border-radius: 14px; background: var(--bg); text-align: center; }
.case-figs span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.case-figs b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.case-note { font-size: 0.82rem; color: var(--ink-3); }
@media (min-width: 800px) { .cases { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   12. Reseñas de clientes (slider + fotos + flotante)
   ============================================================= */
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.g-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--ink-3); }
.g-mark svg { width: 18px; height: 18px; }

.reviews-head { display: grid; gap: 22px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.reviews-head .section-head { margin: 0; }
.gbadge {
  display: grid; gap: 4px; justify-self: start; padding: 14px 22px 14px 18px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.gbadge-top { display: flex; align-items: center; gap: 10px; }
.gbadge-top > svg { width: 28px; height: 28px; flex: none; }
.gbadge-top b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.045em; color: var(--navy); line-height: 1; }
.gbadge .stars svg { width: 17px; height: 17px; }
.gbadge-sub { font-size: 0.85rem; color: var(--ink-3); padding-left: 38px; }
@media (hover: hover) { .gbadge:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
@media (min-width: 900px) { .reviews-head { grid-template-columns: minmax(0, 1fr) auto; } }

.rcarousel { position: relative; }
.rtrack {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
  padding: 8px 2px 26px; margin: -8px -2px -26px;
}
.rtrack::-webkit-scrollbar { display: none; }
.rtrack:focus-visible { outline-offset: 6px; }
.rcard {
  flex: 0 0 min(86%, 340px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
@media (hover: hover) { .rcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); } }
@media (min-width: 720px) { .rcard { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 1040px) { .rcard { flex-basis: calc((100% - 32px) / 3); } }
.rcard-stars .stars svg { width: 18px; height: 18px; }
.rcard-g { display: inline-flex; width: 20px; height: 20px; flex: none; }
.rcard-g svg { width: 100%; height: 100%; }
.rcard-text { font-size: 0.97rem; color: var(--ink); line-height: 1.6; }
.rcard-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-links { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; min-height: 38px; }
.rcard-more, .rcard-photolink { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 2px; font-weight: 700; font-size: 0.86rem; color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.rcard-photolink svg { width: 17px; height: 17px; flex: none; }
.rcard-more[hidden] { display: none; }
.rcard-by { display: flex; align-items: center; gap: 12px; }
.rcard-who { flex: 1; min-width: 0; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--c1 { background: var(--blue); }
.avatar--c2 { background: var(--navy-700); }
.avatar--c3 { background: #b4760f; }
.rcard-by b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); line-height: 1.2; }
.rcard-by small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--ink-3); }
.rcard--empty { align-items: flex-start; justify-content: center; }
.rcard--empty b { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.rcard--empty p { color: var(--ink-2); font-size: 0.95rem; }

.rnav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -34px; border-radius: 50%; display: none; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-2); transition: transform 0.35s var(--ease-out), opacity 0.2s ease, background-color 0.2s ease; }
.rnav svg { width: 20px; height: 20px; }
.rnav--prev { left: -22px; }
.rnav--next { right: -22px; }
.rnav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) { .rnav:hover { background: var(--gold); transform: scale(1.06); } }
@media (min-width: 1040px) { .rnav { display: grid; } }
.rdots { display: flex; justify-content: center; gap: 6px; margin-top: 34px; min-height: 24px; align-items: center; }
.rdots button { position: relative; width: 12px; height: 8px; padding: 0; margin: 8px 0; background: var(--sky); transform: skewX(-24deg); border-radius: 2px; transition: width 0.4s var(--ease-out), background-color 0.3s ease; }
.rdots button::after { content: ""; position: absolute; inset: -12px -4px; }
.rdots button.is-active { width: 30px; background: var(--blue); }
.reviews-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; text-align: center; }

.rlightbox { border: 0; padding: 0; margin: auto; background: transparent; width: min(94vw, 960px); max-width: 94vw; max-height: 94vh; overflow: visible; }
.rlightbox::backdrop { background: rgba(0, 43, 73, 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rlightbox figure { margin: 0; display: grid; gap: 10px; }
.rlightbox img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 18px; background: #000; }
.rlightbox figcaption { color: #fff; font-size: 0.92rem; text-align: center; }
.rlightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-2); }

/* Opinión flotante: corta, rota sola y se puede cerrar */
.rpop {
  position: fixed; left: 20px; bottom: 20px; z-index: 85; width: min(380px, calc(100vw - 40px));
  padding: 16px 40px 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.97); border: 1px solid #fff; box-shadow: var(--shadow-2);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out), visibility 0.4s;
}
.rpop[hidden] { display: none; }
.rpop.is-away { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; }
.rpop-in { animation: popIn 0.7s var(--ease-out) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.rpop-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; animation: rise 0.5s var(--ease-out) both; }
.rpop-item[hidden] { display: none; }
.rpop .avatar { width: 44px; height: 44px; font-size: 1rem; }
.rpop-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rpop-top .rcard-g { width: 16px; height: 16px; }
.rpop-top .stars svg { width: 14px; height: 14px; }
.rpop p { font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
.rpop-by { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--ink-3); }
.rpop-by b { color: var(--navy); font-weight: 700; }
.rpop-all { display: inline-block; margin: 10px 0 0 56px; font-size: 0.78rem; font-weight: 700; color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.rpop-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); font-size: 1.35rem; line-height: 1; transition: background-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .rpop-close:hover { background: var(--sky-100); color: var(--navy); } }
@media (max-width: 719px) { .rpop { display: none !important; } }

/* =============================================================
   13. Asesoría
   ============================================================= */
.advice { display: grid; gap: 20px; align-items: stretch; }
.offer { position: relative; padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: linear-gradient(160deg, var(--navy), var(--navy-700)); color: #fff; overflow: hidden; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-2); }
.offer::after { content: ""; position: absolute; right: -50px; top: -30px; width: 220px; height: 340px; transform: skewX(-24deg); opacity: 0.14; background: linear-gradient(90deg, #fec465 0 25%, #ffb548 25% 50%, #88b9d3 50% 75%, #0075c9 75%); pointer-events: none; }
.offer { --pad: clamp(26px, 4vw, 40px); }
.offer > * { position: relative; z-index: 1; }
.offer .tag { justify-self: start; padding: 5px 14px; border-radius: 99px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.offer :is(h2, h3) { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; }
.offer p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.offer .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.offer .price b { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.045em; color: var(--gold-200); }
.offer .price span { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.offer ul { display: grid; gap: 10px; margin: 6px 0 8px; }
.offer li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.offer li svg { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.offer .btn { justify-self: start; margin-top: 6px; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.fit { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.fit :is(h3, h4) { font-size: 1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.fit :is(h3, h4) .dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 0.85rem; color: #fff; background: var(--ok); }
.fit.no :is(h3, h4) .dot { background: var(--err); }
.fit.bring :is(h3, h4) .dot { background: var(--blue); }
.fit li { position: relative; padding-left: 20px; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 8px; }
.fit li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 5px; background: var(--c, var(--ok)); transform: skewX(-24deg); border-radius: 1px; }
.fit.no li { --c: var(--err); }
.fit.bring li { --c: var(--blue); }
.promise-link { padding: 20px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.7); border: 1.5px dashed var(--line-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.promise-link p { font-size: 0.95rem; color: var(--ink-2); max-width: 44ch; }
.promise-link p b { color: var(--navy); }
@media (min-width: 960px) { .advice { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
/* Asesoría: tarjeta dividida (la foto de Juan mostrando tus números a un lado, la oferta al otro)
   y debajo tres tarjetas parejas (para quién es, para quién no, y la salida a otro servicio) */
.offer--split { padding: 0; gap: 0; }
.split-foto { position: relative; margin: 0; aspect-ratio: 9 / 10; overflow: hidden; background: #c8ccd1; }
.split-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.split-foto figcaption { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(0, 43, 73, 0.88); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 43, 73, 0.6); }
.split-foto figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25); }
.split-body { display: grid; gap: 14px; align-content: center; padding: var(--pad); }
.split-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.offer .split-ctas .btn { margin-top: 0; }
.split-alt { color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.split-alt:hover { text-decoration-color: var(--gold); }
.offer p.split-nota { font-size: 0.85rem; color: rgba(255, 255, 255, 0.68); }
@media (min-width: 900px) {
  .offer--split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split-foto { aspect-ratio: auto; min-height: 460px; }
  .split-foto figcaption { left: 20px; top: 20px; }
}
.fit-row { display: grid; gap: 16px; margin-top: 18px; }
.fit-row .fit { margin: 0; }
@media (min-width: 760px) { .fit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fit--salida { display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, 0.72); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.fit--salida :is(h3, h4) { margin-bottom: 0; }
.fit.fit--salida :is(h3, h4) .dot { background: var(--gold); color: var(--navy); }
.fit--salida p { font-size: 0.92rem; color: var(--ink-2); }
.fit--salida .btn { margin-top: auto; align-self: flex-start; }

/* =============================================================
   14. Alianzas (muro de logos)
   ============================================================= */
.logowall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
}
.logocell {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 3; padding: 18px; background: #fff;
  transition: background-color 0.4s ease;
}
.logocell img {
  width: auto; height: auto; max-width: 80%; max-height: clamp(36px, 5vw, 60px); object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.logocell::after {
  content: ""; position: absolute; left: 50%; bottom: 12px; width: 0; height: 4px; border-radius: 1px;
  background: linear-gradient(90deg, var(--gold-200) 0 25%, var(--gold) 25% 50%, var(--sky) 50% 75%, var(--blue) 75%);
  transform: translateX(-50%) skewX(-24deg); transition: width 0.5s var(--ease-out);
}
@media (hover: hover) {
  .logocell:hover { background: var(--bg); }
  .logocell:hover img { transform: translateY(-3px) scale(1.07); }
  .logocell:hover::after { width: 46px; }
}
@media (min-width: 720px) {
  .logowall { grid-template-columns: repeat(5, 1fr); }
  .logocell { aspect-ratio: 4 / 3; padding: 22px; }
}

/* =============================================================
   15. BFM
   ============================================================= */
.bfm { display: grid; gap: 28px; align-items: center; }
.bfm-photo { aspect-ratio: 4 / 3; border-radius: 28px; }
.bfm-copy { display: grid; gap: 16px; }
.bfm-logo { width: 150px; }
.bfm-copy p { color: var(--ink-2); max-width: 56ch; }
.bfm-copy .quote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.4rem); letter-spacing: -0.02em; color: var(--navy); }
/* la segunda frase va abajo, con el acento de los titulos (cursiva azul) y el subrayado dorado del hero */
.bfm-copy .quote em {
  font-style: italic; font-weight: 700; color: var(--blue); padding: 0 0.08em;
  background: linear-gradient(transparent 64%, var(--gold-200) 64%, var(--gold-200) 88%, transparent 88%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 900px) { .bfm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* =============================================================
   16. Instagram pre-footer
   ============================================================= */
.insta-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.insta-grid[hidden] { display: none; }
.insta-tile {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 14px;
  background: linear-gradient(145deg, var(--c1, var(--navy)), var(--c2, var(--blue))); color: #fff; isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.insta-tile::before { content: ""; position: absolute; inset: -30% auto -30% 30%; width: 38%; transform: skewX(-24deg); background: rgba(255, 255, 255, 0.1); z-index: -1; }
.insta-tile svg { width: 26px; height: 26px; margin: 0 auto 8px; opacity: 0.9; }
.insta-tile b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; line-height: 1.15; }
.insta-tile span { display: block; margin-top: 4px; font-size: 0.74rem; opacity: 0.8; }
.insta-tile:nth-child(1) { --c1: #002b49; --c2: #0a63a8; }
.insta-tile:nth-child(2) { --c1: #0075c9; --c2: #88b9d3; }
.insta-tile:nth-child(3) { --c1: #ffb548; --c2: #fec465; color: var(--navy); }
.insta-tile:nth-child(4) { --c1: #0a3f66; --c2: #002b49; }
.insta-tile:nth-child(5) { --c1: #88b9d3; --c2: #cfe3ef; color: var(--navy); }
.insta-tile:nth-child(6) { --c1: #0a63a8; --c2: #0075c9; }
@media (hover: hover) { .insta-tile:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-2); } }
@media (min-width: 640px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .insta-grid { grid-template-columns: repeat(6, 1fr); } }
behold-widget { display: block; min-height: 120px; }

/* =============================================================
   17. Footer
   ============================================================= */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: clamp(56px, 8vw, 96px) 0 calc(32px + 80px); position: relative; overflow: clip; }
/* en escritorio no hay barra pegajosa abajo: el pie no necesita ese espacio extra */
@media (min-width: 900px) { .site-footer { padding-bottom: 36px; } }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--gold-200) 0 25%, var(--gold) 25% 50%, var(--sky) 50% 75%, var(--blue) 75%); }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-logos .tbd { width: 84px; height: 84px; }
.footer-logos .bfm { width: 108px; padding: 0; }
.footer-brand p { font-size: 0.92rem; max-width: 42ch; color: rgba(255, 255, 255, 0.78); }
.site-footer h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); transition: color 0.2s ease; }
@media (hover: hover) { .site-footer a:hover { color: var(--gold-200); } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.socials a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.4s var(--ease-out), background-color 0.2s ease; }
.socials a svg { width: 22px; height: 22px; }
@media (hover: hover) { .socials a:hover { transform: translateY(-3px); background: var(--gold); color: var(--navy); } }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 10px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.66); }
/* el aviso legal entra en una sola línea en pantallas anchas */
@media (min-width: 1180px) { .footer-legal > p:first-child { font-size: 0.78rem; letter-spacing: -0.005em; } }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-legal .footer-credit a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; text-decoration: none; }
.footer-credit svg { width: 1.05em; height: 1.05em; flex: none; fill: var(--gold); }
@media (hover: hover) { .footer-legal .footer-credit a:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; } }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 28px; } }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 18px; display: none; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), var(--shadow-2); transition: transform 0.4s var(--ease-out); }
.wa-fab svg { width: 28px; height: 28px; }
@media (hover: hover) { .wa-fab:hover { transform: translateY(-3px) scale(1.04); } }
@media (min-width: 720px) { .wa-fab { display: grid; } }

/* =============================================================
   18. Páginas internas
   ============================================================= */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; margin-bottom: 18px; }
.page-hero h1 em, .h2 em { font-style: italic; font-weight: 700; color: var(--blue); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 44px 0 14px; }
.prose h3 { font-size: 1.1rem; font-weight: 800; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.prose ul li { position: relative; padding-left: 20px; margin: 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 5px; background: var(--gold); transform: skewX(-24deg); }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.prose b, .prose strong { color: var(--navy); }
.table-wrap { overflow-x: auto; margin: 16px 0 26px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--bg); }
.prose tr:last-child td { border-bottom: 0; }
.draft-banner { margin-bottom: 28px; padding: 16px 20px; border-radius: 16px; background: var(--warn-bg); border: 1px solid #f0cf9a; color: var(--warn); font-size: 0.92rem; }
.draft-banner b { color: var(--warn); }
.toc { padding: 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); margin-bottom: 36px; }
.toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.toc a { color: var(--blue-600); font-weight: 500; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 0 20px; transition: box-shadow 0.3s ease; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); font-weight: 700; transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--ink-2); }
.faq-layout { display: grid; gap: 28px; align-items: start; }
.faq-photo { margin: 0; position: relative; overflow: clip; border-radius: var(--r-lg); box-shadow: var(--shadow-2); aspect-ratio: 4 / 5; width: min(100%, 420px); background: var(--navy); }
.faq-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.faq-photo figcaption { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 30px 20px 16px; color: #fff; background: linear-gradient(to top, rgba(0, 43, 73, 0.96) 0%, rgba(0, 43, 73, 0.82) 45%, rgba(0, 43, 73, 0) 100%); }
.faq-photo figcaption b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.faq-photo figcaption span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .faq-photo { aspect-ratio: 4 / 5; width: auto; position: sticky; top: calc(var(--nav-h) + 24px); }
}

.timeline { display: grid; gap: 14px; counter-reset: t; margin-top: 26px; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.timeline li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--blue); letter-spacing: -0.04em; }
.timeline b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.timeline span { font-size: 0.93rem; color: var(--ink-2); }

.mio-big { display: grid; gap: 28px; align-items: center; }
.mio-big img { width: min(100%, 440px); }
/* foto de Juan con el llavero M.I.O. y el logo del método encima */
.mio-foto { position: relative; margin: 0 auto; width: min(100% - 20px, 360px); }
.mio-big .mio-foto-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.mio-big .mio-foto-logo { position: absolute; left: -14px; bottom: 22px; width: 50%; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }
@media (min-width: 900px) {
  .mio-big { grid-template-columns: auto 1fr; gap: 64px; }
  .mio-foto { width: clamp(320px, 32vw, 430px); }
  .mio-big .mio-foto-logo { left: -32px; bottom: 34px; }
}
/* título en dos tiempos: cada idea en su línea; la primera manda (subrayado dorado), la segunda la sigue en azul */
.page-hero h1.h1-pasos { max-width: none; font-size: clamp(1.75rem, 8vw, 3.5rem); line-height: 1.06; }
.h1-pasos > span { display: block; }
.h1-pasos > span + span { color: var(--blue); }
.h1-pasos mark { color: inherit; background: linear-gradient(transparent 64%, rgba(255, 181, 72, 0.6) 64% 90%, transparent 90%); padding: 0 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 480px) { .h1-pasos > span { white-space: nowrap; } }
@media (min-width: 900px) { .page-hero h1.h1-pasos { font-size: clamp(2.4rem, 4.1vw, 3.5rem); } }

/* link-in-bio */
.linkpage { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 0; position: relative; isolation: isolate; overflow: clip; }
.linkcard { width: min(100% - 32px, 480px); padding: 32px 24px 28px; text-align: center; display: grid; gap: 14px; }
.linkcard .linkfoto { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold), 0 14px 30px -12px rgba(0, 43, 73, 0.45); }
.linkcard h1 { font-size: 1.5rem; font-weight: 800; }
.linkcard p.sub { color: var(--ink-2); font-size: 0.95rem; margin-top: -6px; }
.linkbtn { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 14px 18px 14px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line-strong); min-height: 68px; transition: transform 0.4s var(--ease-out), border-color 0.2s ease, box-shadow 0.4s var(--ease-out); }
.linkbtn .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue); }
.linkbtn .ic svg { width: 22px; height: 22px; }
.linkbtn b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; }
.linkbtn small { display: block; font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.linkbtn > svg { width: 18px; height: 18px; color: var(--ink-3); }
.linkbtn--hot { background: linear-gradient(135deg, var(--gold-200), var(--gold)); border-color: transparent; box-shadow: var(--glow-gold); }
.linkbtn--hot .ic { background: rgba(255, 255, 255, 0.6); color: var(--navy); }
.linkbtn--hot small { color: var(--navy-700); }
@media (hover: hover) { .linkbtn:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-1); } .linkbtn--hot:hover { border-color: transparent; box-shadow: 0 16px 34px -8px rgba(255, 181, 72, 0.85); } }
.linkcard .socials { justify-content: center; gap: 6px; }
/* celulares de 360-400 px: los 6 íconos de redes en una sola fila, sin achicarlos */
@media (max-width: 400px) { .linkcard { padding-inline: 16px; } }
.linkcard .socials a { background: #fff; border: 1px solid var(--line); color: var(--navy); }
/* el logo cierra la tarjeta, entero y entre dos líneas (no encima de la foto) */
.linkbrand { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.linkbrand::before, .linkbrand::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkbrand a { display: block; border-radius: 50%; box-shadow: 0 10px 22px -12px rgba(0, 43, 73, 0.45); transition: transform 0.4s var(--ease-out); }
.linkbrand img { width: 72px; height: 72px; }
@media (hover: hover) { .linkbrand a:hover { transform: scale(1.06); } }
.linkcard .legal { font-size: 0.78rem; color: var(--ink-3); }
.linkcard .legal a { text-decoration: underline; text-underline-offset: 3px; }

.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 0 60px; position: relative; isolation: isolate; overflow: clip; }
.notfound h1 { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; letter-spacing: -0.07em; color: var(--blue); line-height: 1; }

/* =============================================================
   18b. Piezas de conversión: etiquetas de reseña, garantía, último llamado, glosario
   ============================================================= */
abbr[title] { text-decoration: underline dotted var(--blue); text-underline-offset: 3px; cursor: help; }

.rcard-stars { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.rcard-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 99px; background: var(--sky-100); color: var(--navy-700); font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.01em; }

.offer-claim { position: relative; margin: 2px 0 4px; padding: 13px 16px 13px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 0.92rem; line-height: 1.45; }
.offer-claim[hidden] { display: none; }
.offer-claim::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--gold); transform: skewX(-12deg); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; padding: 0; list-style: none; }
.chips-row li { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--navy-700); }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 22px; align-items: center;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-700)); box-shadow: var(--shadow-2);
}
.cta-band::after { content: ""; position: absolute; right: -40px; top: -30px; bottom: -30px; width: 240px; transform: skewX(-24deg); opacity: 0.16; z-index: -1; background: linear-gradient(90deg, #fec465 0 25%, #ffb548 25% 50%, #88b9d3 50% 75%, #0075c9 75%); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; max-width: 20ch; }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 44ch; }
@media (min-width: 800px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }

/* =============================================================
   19. Responsive final
   ============================================================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .calc-top { margin-bottom: 28px; }
}
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* =============================================================
   20. Reduced motion: solo se apagan los efectos intrusivos
   (los micro-movimientos y el revelado siguen activos a propósito)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-float { animation: none; }
  .marquee { animation-duration: 140s; }
}

/* =============================================================
   21. Impresión del informe de la calculadora
   ============================================================= */
@media print {
  .site-header, .mobile-menu, .sticky-cta, .wa-fab, .site-footer, .skip-link, .mesh, .hero-skyline { display: none !important; }
  body.printing-report main > :not(.calc-section):not(.calc-page),
  body.printing-report .calc-aside, body.printing-report .section-head, body.printing-report .calc-top,
  body.printing-report .report-actions, body.printing-report .report-foot { display: none !important; }
  body { background: #fff; }
  .glass, .calc-card { box-shadow: none !important; border: 1px solid #ccc !important; background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .calc-body { animation: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   22. Reservas (/reservar)
   ============================================================= */
.booking { display: grid; gap: 22px; align-items: start; }
.booking-pick { display: grid; gap: 12px; }
.bpick { text-align: left; display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-strong); cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.bpick:focus-visible { outline: 3px solid rgba(0, 117, 201, 0.45); outline-offset: 2px; }
.bpick[aria-selected="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.12), var(--shadow-1); }
@media (hover: hover) { .bpick:hover { transform: translateY(-2px); border-color: var(--blue); } }
.bpick-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bpick b { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--navy); line-height: 1.2; }
.bprice { flex: none; padding: 3px 11px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-weight: 700; font-size: 0.86rem; }
.bprice--free { background: var(--ok-bg); color: var(--ok); }
.bpick-sub { font-size: 0.85rem; color: var(--ink-3); }
.bpick-d { font-size: 0.92rem; color: var(--ink-2); }
.bpanel { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bpanel[hidden] { display: none; }
.bpanel h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 12px; }
.bpanel h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bchips li { padding: 5px 12px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-weight: 700; font-size: 0.88rem; }
.blede { color: var(--ink-2); margin-bottom: 18px; max-width: 62ch; }
.bcols { display: grid; gap: 20px; margin-bottom: 4px; }
.bcta { margin-top: 24px; }
.bcta[hidden] { display: none; }
.bnote { margin-top: 14px; font-size: 0.86rem; color: var(--ink-3); max-width: 62ch; }
.bnote a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bframe { margin-top: 20px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.bframe[hidden] { display: none; }
.bframe iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (min-width: 720px) { .bcols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 960px) {
  .booking { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; }
  .bframe iframe { height: 720px; }
}

/* ---------- 22b. Reserva en línea (reservas.js) ---------- */
.bk-esperando .bcta { visibility: hidden; }
.bsafe { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-3); padding: 6px 4px 0; }
.bsafe svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.bsafe b { color: var(--navy); }
.bmore { margin: -4px 0 6px; }
.bmore > summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 0.92rem; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.bmore > summary::-webkit-details-marker { display: none; }
.bmore > summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.bmore[open] > summary::after { content: "–"; }
.bmore[open] > summary { margin-bottom: 14px; }
.bk[hidden] { display: none; }
.bk { margin-top: 18px; display: grid; gap: 22px; }
.bk-step { display: grid; gap: 12px; }
.bk-step[hidden] { display: none; }
.bpanel .bk-h, .bk-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); text-transform: none; margin: 0; }
.bk-h span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 0.9rem; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bk-day { flex: none; width: 66px; display: grid; justify-items: center; gap: 1px; padding: 10px 4px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; scroll-snap-align: start; font-family: var(--font-body); color: var(--ink-2); transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.3s var(--ease-out); }
.bk-day small { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bk-day b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.bk-day:disabled { opacity: 0.38; cursor: default; background: var(--bg); }
.bk-day[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.bk-day[aria-pressed="true"] b { color: var(--gold); }
@media (hover: hover) { .bk-day:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--blue); transform: translateY(-2px); } }
.bk-sub { font-size: 0.86rem; color: var(--ink-3); margin: 0; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-time { padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--navy); font-variant-numeric: tabular-nums; transition: border-color 0.2s ease, background-color 0.2s ease; }
.bk-time[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); box-shadow: var(--glow-gold); }
@media (hover: hover) { .bk-time:not([aria-pressed="true"]):hover { border-color: var(--blue); } }
.bk-day:focus-visible, .bk-time:focus-visible { outline: 3px solid rgba(0, 117, 201, 0.45); outline-offset: 2px; }
.bk-vacio { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); margin: 0; }
.bk-vacio svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.bk-cargando { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.92rem; padding: 10px 0; }
.bk-cargando i { width: 8px; height: 8px; border-radius: 3px; background: var(--sky); transform: skewX(-14deg); animation: bkpulso 1s infinite ease-in-out; }
.bk-cargando i:nth-child(2) { animation-delay: 0.15s; }
.bk-cargando i:nth-child(3) { animation-delay: 0.3s; }
.bk-cargando span { margin-left: 6px; }
@keyframes bkpulso { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-cargando i { animation: none; } }
.bk-resumen { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sky-100); }
.bk-resumen svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.bk-resumen div { display: grid; flex: 1; min-width: 0; }
.bk-resumen b { font-family: var(--font-display); color: var(--navy); font-weight: 800; }
.bk-resumen span { font-size: 0.9rem; color: var(--ink-2); }
.bk-resumen em { font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--navy); white-space: nowrap; }
.bk-form { display: grid; gap: 16px; }
.bk-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .bk-grid { grid-template-columns: 1fr 1fr; } .bk-span { grid-column: 1 / -1; } }
.bk-form .field label { margin-bottom: 8px; }
.bk-text { min-height: 72px; resize: vertical; }
.bk-modo { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.bk-modo legend { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 8px; padding: 0; }
@media (min-width: 620px) { .bk-modo { grid-template-columns: 1fr 1fr; } .bk-modo legend { grid-column: 1 / -1; } }
.bk-modo label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); cursor: pointer; background: #fff; }
.bk-modo label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 117, 201, 0.12); }
.bk-modo input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.bk-modo b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 0.95rem; }
.bk-modo small { display: block; color: var(--ink-3); font-size: 0.82rem; }
.bk-form .consents { margin-top: 0; }
.bk-form .consent-copy a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bk-err a { color: var(--err); font-weight: 700; text-decoration: underline; }
.bk-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-3); margin: 0; }
.bk-fine svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }
.bk-fine a { color: var(--blue); font-weight: 700; }
.bk-estado[hidden] { display: none; }
.bk-estado { margin-bottom: 8px; }
.bk-card { position: relative; max-width: 720px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.bk-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); margin: 0; text-wrap: balance; }
.bk-card p { margin: 0; color: var(--ink-2); }
.bk-card p a { color: var(--blue); font-weight: 700; word-break: break-all; }
.bk-card--ok { border-top: 6px solid var(--ok); }
.bk-card--warn { border-top: 6px solid var(--gold); }
.bk-sello { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); }
.bk-sello svg { width: 28px; height: 28px; }
.bk-sello--warn { background: var(--warn-bg); color: var(--warn); }
.bk-det { list-style: none; margin: 4px 0; padding: 14px 16px; border-radius: 16px; background: var(--sky-100); display: grid; gap: 10px; }
.bk-det li { display: flex; gap: 10px; align-items: flex-start; }
.bk-det svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.bk-det span { display: grid; color: var(--ink-2); font-size: 0.94rem; }
.bk-det b { font-family: var(--font-display); color: var(--navy); font-weight: 800; }
.bk-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bk-acciones .btn svg { width: 18px; height: 18px; }

/* mapa de la oficina (al elegir reunión presencial y en la confirmación) */
.bk-mapa-wrap[hidden] { display: none; }
.bk-mapa { display: grid; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--sky-100); }
.bk-mapa-top { display: flex; gap: 10px; align-items: flex-start; }
.bk-mapa-top svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }
.bk-mapa-top span { display: grid; font-size: 0.92rem; color: var(--ink-2); }
.bk-mapa-top b { font-family: var(--font-display); color: var(--navy); }
.bk-mapa iframe { display: block; width: 100%; height: 240px; border: 0; border-radius: 14px; background: #e5eef5; }
@media (min-width: 720px) { .bk-mapa iframe { height: 280px; } }
.bk-mapa-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-mapa-btns .btn { flex: 1 1 180px; background: #fff; }

/* encabezado con foto (página de asesorías) */
.hero-split { display: grid; gap: 40px; align-items: center; }
.hero-foto { position: relative; margin: 0 auto; width: min(100% - 40px, 340px); }
.hero-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; line-height: 1.25; color: var(--navy); max-width: 228px; text-wrap: balance; }
.hero-chip svg { width: 17px; height: 17px; color: var(--blue); flex: none; }
/* la mano y el llavero ocupan la mitad de arriba de la foto: las frases van sobre la polera */
.hero-chip--a { left: -18px; top: 51%; }
.hero-chip--b { right: -18px; top: 67%; }
.hero-chip--c { left: -10px; bottom: 3%; }
@media (max-width: 420px) { .hero-chip { padding: 8px 12px; font-size: 0.8rem; max-width: 210px; } }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
  .hero-foto { width: clamp(300px, 28vw, 390px); }
  .hero-chip--a { left: -44px; }
  .hero-chip--b { right: -36px; }
  .hero-chip--c { left: -28px; bottom: 6%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: chip-flota 6s ease-in-out infinite; }
  .hero-chip--b { animation-delay: -2s; }
  .hero-chip--c { animation-delay: -4s; }
  @keyframes chip-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}

/* firma de confianza en la portada: quién atiende y su nota en Google */
.hero-firma { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink-2); }
.hero-firma img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.hero-firma > span { display: grid; line-height: 1.3; }
.hero-firma b { font-family: var(--font-display); font-size: 0.92rem; color: var(--navy); }
.hero-firma small { font-size: 0.8rem; color: var(--ink-3); }
.hero-estrellas { color: var(--gold); letter-spacing: 1px; }
@media (hover: hover) { .hero-firma:hover { border-color: var(--gold); } }
/* en celulares chicos el botón de la mini calculadora no se parte en dos líneas */
@media (max-width: 420px) { .hero-mini .btn small { display: none; } }
