/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #e1e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #52606d;

  --ink: #142238;
  --ink-soft: #33445c;
  --ink-mute: #64748b;

  --blue-900: #0e2440;
  --blue-800: #123a63;
  --blue-700: #17497e;
  --blue-600: #1f5fa0;
  --blue-500: #2b72b8;
  --blue-100: #e7f0fa;
  --blue-50: #f2f7fc;

  --red-600: #c02a2a;
  --red-700: #a41f1f;
  --red-100: #fbe9e9;

  --whatsapp: #22b354;
  --whatsapp-dark: #1c9147;

  --line: rgba(20, 34, 56, 0.1);
  --shadow-sm: 0 1px 2px rgba(14, 36, 64, 0.06), 0 1px 1px rgba(14, 36, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 36, 64, 0.1);
  --shadow-lg: 0 20px 48px rgba(14, 36, 64, 0.16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-h: 76px;
  --container: 1220px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: var(--blue-600); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--gray-50); }
.section-blue { background: linear-gradient(180deg, var(--blue-900), var(--blue-800)); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red-600); border-radius: 2px; }
.section-blue .eyebrow { color: var(--blue-100); }
.section-blue .eyebrow::before { background: var(--red-600); }

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.55rem); color: var(--ink); }
.section-blue .section-title { color: var(--white); }
.section-sub { margin-top: .9rem; color: var(--ink-mute); font-size: 1.05rem; line-height: 1.65; }
.section-blue .section-sub { color: rgba(255,255,255,.78); }

.pending-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  color: var(--red-700); background: var(--red-100); border: 1px dashed var(--red-600);
  padding: .15rem .5rem; border-radius: 6px; margin-top: .4rem;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blue-800); box-shadow: 0 14px 30px rgba(23,73,126,.28); }

.btn-outline { background: var(--white); color: var(--blue-800); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-50); }

.btn-ghost-light { background: rgba(255,255,255,.1); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 10px 24px rgba(34,179,84,.28); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.02rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease-out);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-logo { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .badge-affiliate {
  font-size: .62rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-100); padding: .2rem .5rem; border-radius: 999px;
  display: none;
}

.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: .93rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red-600); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { padding: .7rem 1.1rem; font-size: .88rem; }
.nav-actions .btn-outline { display: none; }

.nav-toggle {
  display: flex; flex: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 400; background: var(--white);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu .container { padding-block: 2rem; display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-menu a { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.mobile-menu .mobile-cta { display: flex; flex-direction: column; gap: .8rem; margin-top: .5rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-actions .btn-outline { display: inline-flex; }
  .mobile-menu { display: none; }
  .nav-logo .badge-affiliate { display: inline-flex; }
}

/* =============================================================
   6. Photo slots (placeholders — sin fotos descargadas)
   ============================================================= */
.photo-slot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--gray-100));
  border: 1.5px dashed var(--gray-300);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.photo-slot .ph-inner { padding: 1.5rem; color: var(--blue-700); }
.photo-slot svg { width: 40px; height: 40px; margin-inline: auto; opacity: .55; }
.photo-slot .ph-label { margin-top: .6rem; font-size: .78rem; font-weight: 700; color: var(--ink-mute); }
.photo-slot .ph-file { margin-top: .2rem; font-size: .72rem; font-family: ui-monospace, "SF Mono", monospace; color: var(--blue-600); word-break: break-all; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { position: relative; padding-block: clamp(2.4rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); background: var(--blue-50); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 60%;
  background: radial-gradient(60% 100% at 20% 0%, rgba(23,73,126,.12), transparent 70%),
              radial-gradient(50% 90% at 90% 10%, rgba(192,42,42,.08), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }

.hero-copy .trust-mini { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: 1.4rem; }
.trust-mini-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.trust-mini-item svg { width: 17px; height: 17px; color: var(--blue-600); flex: none; }

.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--ink); max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--blue-700); }
.hero-sub { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-mute); max-width: 46ch; line-height: 1.65; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.7rem; }

.hero-visual { display: grid; gap: 1rem; }
.hero-visual .photo-slot.main { aspect-ratio: 4 / 3; }
.hero-visual .photo-slot.mini { aspect-ratio: 1; }
.hero-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.hero-form-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line);
}
.hero-form-card h2 { font-size: 1.25rem; }
.hero-form-card .form-note { margin-top: .3rem; font-size: .85rem; color: var(--ink-mute); }

.form-grid { display: grid; gap: .85rem; margin-top: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .8rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font: inherit; font-size: .95rem; background: var(--white); transition: border-color .2s var(--ease-out);
}
.field input:focus, .field select:focus { border-color: var(--blue-600); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-legal { font-size: .74rem; color: var(--ink-mute); margin-top: .8rem; line-height: 1.5; }
.form-status { margin-top: .8rem; font-size: .88rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { color: #1a7f3c; }

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr .95fr; }
}

/* =============================================================
   8. Stats
   ============================================================= */
.stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem; text-align: left;
}
.stat-card svg { width: 26px; height: 26px; color: #7fb3e8; }
.stat-value { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-top: .7rem; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-value .pending-tag { color: #ffd7d7; background: rgba(192,42,42,.25); border-color: rgba(255,215,215,.5); font-size: .62rem; vertical-align: middle; margin-left: .3rem; }
.stat-label { margin-top: .3rem; font-size: .86rem; color: rgba(255,255,255,.72); }

@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }

/* =============================================================
   9. Cards genéricas / grid de features
   ============================================================= */
.card {
  background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.card .icon-badge svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; margin-top: 1rem; }
.card p { margin-top: .5rem; color: var(--ink-mute); font-size: .93rem; line-height: 1.6; }

.grid-3 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   12. Reseñas
   ============================================================= */
.reviews-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.rating-summary { display: flex; align-items: center; gap: .7rem; }
.rating-summary .stars { color: #f2a900; display: flex; gap: 2px; }
.rating-summary .stars svg { width: 18px; height: 18px; }
.rating-summary strong { font-size: 1.1rem; }

.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review-stars { color: #f2a900; display: flex; gap: 2px; margin-bottom: .8rem; }
.review-stars svg { width: 16px; height: 16px; }
.review-text { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.review-person { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none;
}
.review-name { font-size: .9rem; font-weight: 700; }
.review-city { font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   13. Aliados / Certificaciones
   ============================================================= */
.partner-strip, .cert-strip { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.partner-chip, .cert-chip {
  display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  padding: 1.3rem 1rem; border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md);
  background: var(--gray-50); color: var(--ink-mute); font-size: .85rem; font-weight: 600; min-height: 84px;
}
.cert-chip svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }
@media (min-width: 720px) { .partner-strip { grid-template-columns: repeat(4, 1fr); } .cert-strip { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   14. Beneficios del servicio
   ============================================================= */
.service-card { padding: 0; overflow: hidden; }
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3, .service-card p { padding-inline: 1.4rem; }
.service-card h3 { margin-top: 1.3rem; }
.service-card p { padding-bottom: 1.4rem; }

.benefits-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.benefits-panel h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.benefits-checklist { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.benefits-checklist li { display: flex; align-items: flex-start; gap: .65rem; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.benefits-checklist svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; color: #1a8f4c; }
@media (min-width: 720px) { .benefits-checklist { grid-template-columns: repeat(2, 1fr); } }

.hero-real-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.hero-real-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* =============================================================
   15. FAQ accordion
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; text-align: left; font-weight: 700; font-size: .98rem; color: var(--ink);
}
.faq-q .chev { width: 20px; height: 20px; flex: none; color: var(--blue-600); transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-soft); }
.faq-a-inner { padding: 0 1.35rem 1.25rem; color: var(--ink-mute); font-size: .93rem; line-height: 1.65; }

/* =============================================================
   16. CTA banda
   ============================================================= */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-700)); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 90% 0%, rgba(192,42,42,.28), transparent 65%); pointer-events: none; }
.cta-band-inner { position: relative; display: flex; flex-direction: column; gap: 1.4rem; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin-top: .6rem; color: rgba(255,255,255,.82); max-width: 52ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-800); }
.cta-band .btn-primary:hover { background: var(--gray-100); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
@media (min-width: 960px) { .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { background: var(--gray-50); border-top: 1px solid var(--line); padding-block: 3rem 1.6rem; }
.footer-top { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-brand img { height: 34px; }
.footer-brand p { margin-top: 1rem; font-size: .88rem; color: var(--ink-mute); max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue-700); }
.footer-legal { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-mute); line-height: 1.7; }
.footer-legal .pending-tag { margin-top: .5rem; }

@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* =============================================================
   19. WhatsApp flotante
   ============================================================= */
.whatsapp-widget {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 600;
  display: flex; align-items: center; gap: .65rem;
}

.whatsapp-float {
  flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(34,179,84,.4);
  transition: transform .3s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-bubble {
  position: relative; max-width: min(78vw, 260px);
  background: #dcf8c6; color: #1a2b1a; font-size: .87rem; line-height: 1.4;
  padding: .7rem .9rem; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,.06);
  opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.whatsapp-bubble.is-visible { opacity: 1; transform: none; }
.whatsapp-bubble p { margin: 0; }
.whatsapp-bubble-tail {
  position: absolute; right: -6px; bottom: 20px; width: 12px; height: 12px;
  background: #dcf8c6; border-right: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06);
  transform: rotate(-45deg);
}

@media (max-width: 539px) {
  .whatsapp-bubble { position: absolute; right: 0; bottom: 70px; }
  .whatsapp-bubble-tail { right: 20px; bottom: -6px; transform: rotate(45deg); }
}

/* =============================================================
   20. Reveal / scroll effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

/* =============================================================
   21. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }


/* =============================================================
   20. Autorización de datos (formulario) y páginas legales
   ============================================================= */
.field-check { display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; font-size: .76rem; color: var(--ink-mute); line-height: 1.5; cursor: pointer; }
.field-check input { flex: none; width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--blue-700); cursor: pointer; }
.field-check a, .legal-page a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }

.legal-body { background: var(--white); }
.legal-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; flex-wrap: wrap; }
.legal-back { font-size: .9rem; font-weight: 600; color: var(--blue-700); }
.legal-page { max-width: 760px; padding-block: clamp(2.2rem, 5vw, 4rem); color: var(--ink-soft); line-height: 1.7; }
.legal-page h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--ink); margin-top: .6rem; line-height: 1.2; }
.legal-page h2 { font-size: 1.15rem; color: var(--ink); margin-top: 2.2rem; margin-bottom: .6rem; }
.legal-page p { margin-top: .8rem; }
.legal-page ul { margin-top: .6rem; padding-left: 1.2rem; list-style: disc; display: grid; gap: .4rem; }
.legal-page ul.legal-data { list-style: none; padding: 1rem 1.2rem; background: var(--gray-50); border: 1px solid var(--line); border-radius: 12px; }
.legal-meta { font-size: .85rem; color: var(--ink-mute); }
.legal-alert { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--red-100); border-left: 4px solid var(--red-600); border-radius: 10px; color: var(--ink); }
.legal-body .footer-legal a { color: var(--ink-soft); text-decoration: underline; }

/* =============================================================
   21. Aviso de cookies
   ============================================================= */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 700;
  max-width: 560px; margin-inline: auto; background: var(--white); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem; display: grid; gap: .8rem; font-size: .86rem; line-height: 1.55;
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner a { color: var(--blue-700); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { padding: .6rem 1.2rem; font-size: .88rem; }
@media (max-width: 480px) { .cookie-actions .btn { flex: 1; } }

/* Reseñas: con 4 tarjetas, 2×2 en pantallas medianas y 4 en fila en pantallas anchas (sin tarjeta huérfana) */
@media (min-width: 1024px) { .grid-3[data-count="4"] { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid-3[data-count="4"] { grid-template-columns: repeat(4, 1fr); } }
