/* ════════════════════════════════════════════════════════════════
   CERCADETI · CLINICAL DESIGN SYSTEM
   Inspired by modern healthcare apps (One Medical, Oscar, Forward).
   Calm, trustworthy, data-dense, accessible. Inter throughout.
   Scoped under body.lp-v3 (landing/content) and body.auth-v3 (auth)
   so the existing dashboard / admin styles are untouched.
   ──────────────────────────────────────────────────────────────── */

:root {
  /* ───── Surfaces / page ───── */
  --v3-cream:       #f8fafc;   /* slate-50 — page bg */
  --v3-cream-deep:  #f1f5f9;   /* slate-100 — softer panel */
  --v3-paper:       #ffffff;   /* pure white card */
  --v3-ink:         #0f172a;   /* slate-900 — primary text */
  --v3-ink-2:       #334155;   /* slate-700 — secondary text */
  --v3-muted:       #64748b;   /* slate-500 — muted text */
  --v3-line:        #e2e8f0;   /* slate-200 — soft border */
  --v3-line-2:      #cbd5e1;   /* slate-300 — emphasized border */

  /* ───── Brand: clinical blue ───── */
  --v3-blue:        #2563eb;   /* blue-600 */
  --v3-blue-deep:   #1d4ed8;   /* blue-700 */
  --v3-blue-soft:   #eff6ff;   /* blue-50 */
  --v3-blue-mid:    #dbeafe;   /* blue-100 */

  /* ───── Primary accent = blue (kept as "coral" var for
           drop-in compatibility with existing rules) ───── */
  --v3-coral:       #2563eb;   /* same as brand blue */
  --v3-coral-deep:  #1d4ed8;
  --v3-coral-soft:  #eff6ff;

  /* ───── Health green — sage / emerald ───── */
  --v3-leaf:        #059669;   /* emerald-600 */
  --v3-leaf-deep:   #047857;   /* emerald-700 */
  --v3-leaf-soft:   #ecfdf5;   /* emerald-50 */

  /* ───── Cyan accent (data, ratings) ───── */
  --v3-amber:       #0891b2;   /* cyan-600 — repurposed slot */
  --v3-amber-soft:  #ecfeff;   /* cyan-50 */

  --v3-shadow-sm:   0 1px 2px rgba(15,23,42,0.04);
  --v3-shadow:      0 1px 3px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.04);
  --v3-shadow-lg:   0 12px 32px -8px rgba(15,23,42,0.16);

  --v3-radius:      10px;
  --v3-radius-lg:   14px;
  --v3-radius-xl:   18px;
  --v3-radius-pill: 999px;

  /* Clinical = Inter only. No serif. Variable kept for compat. */
  --v3-font-serif:  'Inter', -apple-system, system-ui, sans-serif;
}

/* ─── Body ─── */
body.lp-v3, body.auth-v3 {
  background: var(--v3-cream);
  color: var(--v3-ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
}
body.lp-v3 em, body.auth-v3 em {
  font-style: normal;
  font-weight: 600;
  color: var(--v3-blue);
}

/* ─── Navbar — transparent over hero, solid white when scrolled ─── */
/* Interior v3 pages (voluntarios, planes, citas, etc.) — solid white */
body.lp-v3 .navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--v3-line);
  box-shadow: none;
  height: 64px;
  padding: 0 32px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.lp-v3 .navbar.scrolled {
  border-bottom-color: var(--v3-line-2);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

/* HOME ONLY — transparent over the dark full-bleed hero */
body.lp-v3.lp-home .navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  height: 72px;
  transition: background .3s ease, border-color .3s ease,
              box-shadow .3s ease, height .3s ease,
              backdrop-filter .3s ease;
}
body.lp-v3.lp-home .navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--v3-line);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 4px 16px -8px rgba(15,23,42,0.1);
  height: 64px;
}

/* Auth pages always solid (no hero image behind nav) */
body.auth-v3 .navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--v3-line);
  height: 64px;
  padding: 0 32px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Logo image */
body.lp-v3 .nav-logo img, body.auth-v3 .nav-logo img {
  height: 32px;
  mix-blend-mode: normal;
  filter: none;
  transition: height .3s ease;
}
body.lp-v3.lp-home .nav-logo img { height: 36px; }
body.lp-v3.lp-home .navbar.scrolled .nav-logo img { height: 32px; }

/* Logo TEXT — dark by default (interior pages + auth) */
body.lp-v3 .nav-logo-text,
body.auth-v3 .nav-logo-text {
  color: var(--v3-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transition: color .3s ease, text-shadow .3s ease;
}
body.lp-v3 .nav-logo-text em, body.lp-v3 .nav-logo-text span,
body.auth-v3 .nav-logo-text em, body.auth-v3 .nav-logo-text span {
  color: var(--v3-blue);
  font-weight: 700;
  transition: color .3s ease;
}
/* HOME only — white text + soft shadow over the hero image */
body.lp-v3.lp-home .nav-logo-text {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
body.lp-v3.lp-home .nav-logo-text em,
body.lp-v3.lp-home .nav-logo-text span {
  color: #93c5fd;
}
body.lp-v3.lp-home .navbar.scrolled .nav-logo-text {
  color: var(--v3-ink);
  text-shadow: none;
}
body.lp-v3.lp-home .navbar.scrolled .nav-logo-text em,
body.lp-v3.lp-home .navbar.scrolled .nav-logo-text span {
  color: var(--v3-blue);
}

/* Nav links — dark by default */
body.lp-v3 .nav-links a, body.auth-v3 .nav-links a {
  color: var(--v3-ink-2);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color .25s ease, background .2s ease, text-shadow .25s ease;
}
body.lp-v3 .nav-links a:hover, body.auth-v3 .nav-links a:hover {
  color: var(--v3-blue-deep);
  background: var(--v3-blue-soft);
}
body.lp-v3 .nav-links a.active, body.auth-v3 .nav-links a.active {
  color: var(--v3-blue-deep);
  background: var(--v3-blue-soft);
  font-weight: 600;
}
body.lp-v3 .nav-links a .icon, body.auth-v3 .nav-links a .icon {
  opacity: 0.7; stroke-width: 1.75;
}
/* HOME only — white over hero */
body.lp-v3.lp-home .nav-links a {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
body.lp-v3.lp-home .nav-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}
body.lp-v3.lp-home .nav-links a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.16);
}
body.lp-v3.lp-home .nav-links a .icon { opacity: 0.85; }
body.lp-v3.lp-home .navbar.scrolled .nav-links a {
  color: var(--v3-ink-2);
  text-shadow: none;
}
body.lp-v3.lp-home .navbar.scrolled .nav-links a:hover,
body.lp-v3.lp-home .navbar.scrolled .nav-links a.active {
  color: var(--v3-blue-deep);
  background: var(--v3-blue-soft);
}
body.lp-v3.lp-home .navbar.scrolled .nav-links a .icon { opacity: 0.7; }

/* CTA — solid blue by default */
body.lp-v3 .nav-cta, body.lp-v3 .nav-links a.nav-btn,
body.auth-v3 .nav-cta, body.auth-v3 .nav-links a.nav-btn {
  background: var(--v3-blue) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(37,99,235,0.18);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
body.lp-v3 .nav-cta:hover, body.lp-v3 .nav-links a.nav-btn:hover,
body.auth-v3 .nav-cta:hover, body.auth-v3 .nav-links a.nav-btn:hover {
  background: var(--v3-blue-deep) !important;
}
/* HOME only — glass white pill over hero, solid blue once scrolled */
body.lp-v3.lp-home .nav-cta,
body.lp-v3.lp-home .nav-links a.nav-btn {
  background: #ffffff !important;
  color: var(--v3-ink) !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
body.lp-v3.lp-home .nav-cta:hover,
body.lp-v3.lp-home .nav-links a.nav-btn:hover {
  background: #f1f5f9 !important;
  color: var(--v3-ink) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.26);
}
body.lp-v3.lp-home .navbar.scrolled .nav-cta,
body.lp-v3.lp-home .navbar.scrolled .nav-links a.nav-btn {
  background: var(--v3-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37,99,235,0.18);
}
body.lp-v3.lp-home .navbar.scrolled .nav-cta:hover,
body.lp-v3.lp-home .navbar.scrolled .nav-links a.nav-btn:hover {
  background: var(--v3-blue-deep) !important;
}

/* Hamburger button (mobile only — hidden on desktop) */
body.lp-v3 .nav-hamburger, body.auth-v3 .nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--v3-ink);
  border-radius: 8px;
  align-items: center; justify-content: center;
  transition: color .3s ease, background .2s ease;
}
body.lp-v3 .nav-hamburger .icon { width: 24px; height: 24px; }
body.lp-v3 .nav-hamburger .icon-close, body.auth-v3 .nav-hamburger .icon-close { display: none; }
body.lp-v3 .nav-hamburger.is-open .icon-burger,
body.auth-v3 .nav-hamburger.is-open .icon-burger { display: none; }
body.lp-v3 .nav-hamburger.is-open .icon-close,
body.auth-v3 .nav-hamburger.is-open .icon-close { display: block; }
body.lp-v3 .nav-hamburger:hover, body.auth-v3 .nav-hamburger:hover {
  background: rgba(15,23,42,0.05);
}

/* Mobile menu — drawer always solid white */
@media(max-width: 980px) {
  body.lp-v3 .navbar, body.auth-v3 .navbar { padding: 0 16px; height: 60px; }
  body.lp-v3.lp-home .navbar { height: 64px; }
  body.lp-v3.lp-home .navbar.scrolled { height: 60px; }

  /* Hamburger visible on mobile */
  body.lp-v3 .nav-hamburger, body.auth-v3 .nav-hamburger {
    display: inline-flex;
    margin-left: auto;
    z-index: 2;
  }
  body.lp-v3.lp-home .nav-hamburger {
    color: #ffffff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
  }
  body.lp-v3.lp-home .navbar.scrolled .nav-hamburger {
    color: var(--v3-ink);
    filter: none;
  }
  body.lp-v3.lp-home .nav-hamburger:hover {
    background: rgba(255,255,255,0.12);
  }

  /* Drawer collapsed by default, opens on .open */
  body.lp-v3 .nav-links, body.auth-v3 .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--v3-line);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
  }
  body.lp-v3.lp-home .nav-links { top: 64px; }
  body.lp-v3 .nav-links.open, body.auth-v3 .nav-links.open {
    display: flex;
  }
  body.lp-v3 .nav-links a, body.auth-v3 .nav-links a,
  body.lp-v3.lp-home .nav-links a {
    color: var(--v3-ink);
    text-shadow: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
  }
  body.lp-v3 .nav-links a.nav-btn,
  body.auth-v3 .nav-links a.nav-btn,
  body.lp-v3.lp-home .nav-links a.nav-btn,
  body.lp-v3.lp-home .navbar.scrolled .nav-links a.nav-btn,
  body.lp-v3.lp-home .nav-links.open a.nav-btn {
    margin-top: 8px;
    background: var(--v3-blue) !important;
    color: #fff !important;
    justify-content: center;
    box-shadow: none !important;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
  }

  /* Move live badge on mobile so it doesn't collide with eyebrow */
  body.lp-v3.lp-home .v3-hero .hv-badge {
    top: auto;
    bottom: 64px;
    right: 16px;
    left: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    justify-content: center;
  }
  body.lp-v3.lp-home .v3-hero .hv-badge .txt strong { font-size: 0.82rem; }
  body.lp-v3.lp-home .v3-hero .hv-badge .txt span { font-size: 0.72rem; }
}

@media(max-width: 540px) {
  body.lp-v3.lp-home .v3-hero .hv-badge { display: none; }
}

/* ═══════════════ HERO (FULL-BLEED slideshow + overlay text) ═══════════════ */
body.lp-v3 .v3-hero {
  position: relative;
  padding: 0;
  margin: 0;
  display: block;
  min-height: 100vh;
  width: 100%;
  background: var(--v3-ink); /* dark fallback while images load */
  overflow: hidden;
  isolation: isolate;
}
body.lp-v3 .v3-hero::before { display: none; }

/* Foreground content centered vertically, anchored left */
.v3-hero-content {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 64px 72px;
  max-width: 1240px;
  margin: 0 auto;
  color: #fff;
}
.v3-hero-text {
  position: relative;
  max-width: 720px;
  /* room above for the rotating captions */
}

/* Eyebrow chip — translucent over image */
.v3-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 12px 6px 10px;
  border-radius: var(--v3-radius-pill);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.v3-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  display: inline-block;
  animation: v3pulse 2.4s ease-in-out infinite;
}

/* Big editorial headline — white, oversized */
.v3-hero-text h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.v3-hero-text h1 em {
  font-style: normal;
  font-weight: 700;
  color: #93c5fd; /* blue-300 — pops over photo */
  display: inline;
}
.v3-hero-text h1 em::after { display: none; }

.v3-hero-text p.lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 600px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.v3-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

/* Rotating captions: 5 stacked in a CSS Grid cell.
   Grid auto-sizes to the TALLEST caption so longer texts never
   overflow onto the CTAs/stats below — every caption gets the
   same reserved vertical space, no matter which is active. */
.hc-captions {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.hc-cap {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
.hc-cap.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .7s ease .15s, transform .7s ease .15s;
}

.v3-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.v3-btn-primary {
  background: var(--v3-blue) !important;
  color: #fff !important;
  border-color: var(--v3-blue) !important;
}
.v3-btn-primary:hover {
  background: var(--v3-blue-deep) !important;
  border-color: var(--v3-blue-deep) !important;
  color: #fff !important;
}
.v3-btn-primary:active { transform: translateY(1px); }
.v3-btn-ghost {
  background: var(--v3-paper);
  color: var(--v3-ink);
  border-color: var(--v3-line-2);
}
.v3-btn-ghost:hover {
  border-color: var(--v3-ink-2);
  background: var(--v3-cream);
}
.v3-btn .icon { width: 16px; height: 16px; stroke-width: 1.85; }

.v3-hero-meta {
  display: flex; gap: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 720px;
}
.v3-hero-meta .stat .num {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem; font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.v3-hero-meta .stat .num em {
  font-style: normal;
  color: #93c5fd;
}
.v3-hero-meta .stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-weight: 500;
}

/* Make ghost button readable over dark image */
.v3-hero .v3-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.v3-hero .v3-btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
}
.v3-hero .v3-btn-primary {
  background: #ffffff !important;
  color: var(--v3-ink) !important;
  border-color: #ffffff !important;
}
.v3-hero .v3-btn-primary:hover {
  background: #f1f5f9 !important;
  border-color: #f1f5f9 !important;
  color: var(--v3-ink) !important;
}

/* ═══════════════ HERO SLIDESHOW — full-bleed background ═══════════════ */
.hc-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hc-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform, filter;
}
.hc-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hc-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay — darker at bottom for text legibility */
.hc-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(7,15,30,0.35) 0%,
      rgba(7,15,30,0.55) 45%,
      rgba(7,15,30,0.78) 100%),
    linear-gradient(90deg,
      rgba(7,15,30,0.45) 0%,
      rgba(7,15,30,0.15) 50%,
      rgba(7,15,30,0.0) 100%);
}
/* Dots — bottom center, over image */
.hc-dots {
  position: absolute;
  bottom: 28px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 6;
}
.hc-dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  border-radius: 2px;
  transition: background .25s, width .25s;
}
.hc-dot:hover { background: rgba(255,255,255,0.7); }
.hc-dot.active { background: #fff; width: 44px; }

/* Floating live badge — top right corner over image */
.v3-hero .hv-badge {
  position: absolute;
  top: 96px; right: 48px;
  background: rgba(255,255,255,0.96);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.v3-hero .hv-badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--v3-leaf);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.18);
  animation: v3pulse 2.4s ease-in-out infinite;
}
.v3-hero .hv-badge .txt strong {
  display: block; font-size: 0.82rem; color: var(--v3-ink); font-weight: 600;
}
.v3-hero .hv-badge .txt span {
  font-size: 0.72rem; color: var(--v3-muted);
}

/* ── Transition variants (one per slide, cycled) ── */
/* 1. Fade — pure opacity */
.hc-slide.t-fade { transition: opacity 1s ease; }

/* 2. Zoom Ken Burns — slow zoom while visible */
.hc-slide.t-zoom { transition: opacity 1s ease; }
.hc-slide.t-zoom img {
  transform: scale(1);
  transition: transform 6s ease-out;
}
.hc-slide.t-zoom.active img { transform: scale(1.08); }

/* 3. Slide from right */
.hc-slide.t-slide-right {
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
  transform: translateX(72px);
}
.hc-slide.t-slide-right.active { transform: translateX(0); }

/* 4. Blur reveal */
.hc-slide.t-blur {
  transition: opacity 1s ease, filter 1.3s ease;
  filter: blur(18px);
}
.hc-slide.t-blur.active { filter: blur(0); }

/* 5. Scale in (pop) */
.hc-slide.t-scale {
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
  transform: scale(0.94);
}
.hc-slide.t-scale.active { transform: scale(1); }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hc-slide,
  .hc-slide img,
  .hc-caption { transition: opacity .3s linear !important; transform: none !important; filter: none !important; }
}
/* Pulse animation used by live badge */
@keyframes v3pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(5,150,105,0.18); }
  50%     { box-shadow: 0 0 0 8px rgba(5,150,105,0.04); }
}

/* ═══════════════ Trust strip + carrusel de hospitales ═══════════════ */
body.lp-v3 .v3-trust {
  background: var(--v3-paper);
  border-bottom: 1px solid var(--v3-line);
  padding: 22px 0 24px;
  overflow: hidden;
}
.v3-trust-inner {
  max-width: 1280px; margin: 0 auto 14px;
  padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap; justify-content: center;
}
.v3-trust-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-muted);
  font-weight: 600;
  text-align: center;
}

/* ─── Marquee infinito ─── */
.v3-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade en los bordes para que las tarjetas aparezcan/desaparezcan suave */
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.v3-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  /* Duración alta = scroll suave; ajustar según cantidad de tarjetas */
  animation: v3-marquee-scroll 60s linear infinite;
  will-change: transform;
}
.v3-marquee:hover .v3-marquee-track { animation-play-state: paused; }
@keyframes v3-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Cada tarjeta de hospital */
/* Trust strip estilo Stripe / Linear: tarjetas blancas con bordes sutiles,
   logos en grayscale por defecto, color completo al hacer hover.
   Logos "blancos" (CEDIMAT, HOMS, Clínica Abreu, Hospiten) se invierten
   con filter para verse como silueta oscura sobre fondo blanco. */
.v3-hosp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  height: 80px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.v3-hosp:hover {
  border-color: var(--v3-blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(15,23,42,0.18);
}
.v3-hosp-logo {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter .3s ease, opacity .3s ease;
}

/* Logos a color: por defecto en grayscale sutil; full color al hover */
.v3-hosp-logo.is-color {
  filter: grayscale(1) brightness(0.9) opacity(0.78);
}
.v3-hosp:hover .v3-hosp-logo.is-color {
  filter: grayscale(0) brightness(1) opacity(1);
}

/* Logos blancos (diseñados para fondo oscuro): invertimos para que se
   vean como silueta oscura sobre el fondo blanco de la tarjeta */
.v3-hosp-logo.is-white {
  filter: invert(1) brightness(0.6);
  opacity: 0.78;
}
.v3-hosp:hover .v3-hosp-logo.is-white {
  filter: invert(1) brightness(0.35);
  opacity: 1;
}

@media(max-width: 980px) {
  .v3-marquee-track { gap: 18px; animation-duration: 50s; }
  .v3-hosp { width: 168px; height: 70px; padding: 14px 18px; }
}

/* Respeta prefers-reduced-motion */
@media(prefers-reduced-motion: reduce) {
  .v3-marquee-track { animation: none; }
}

/* ═══════════════ Section scaffold ═══════════════ */
body.lp-v3 .v3-section { padding: 88px 32px; position: relative; }
body.lp-v3 .v3-section.tone-paper { background: var(--v3-paper); border-top: 1px solid var(--v3-line); }
body.lp-v3 .v3-section.tone-cream { background: var(--v3-cream); border-top: 1px solid var(--v3-line); }
body.lp-v3 .v3-section.tone-ink {
  background: var(--v3-ink);
  color: var(--v3-paper);
}
body.lp-v3 .v3-section.tone-ink .v3-h2 { color: var(--v3-paper); }
body.lp-v3 .v3-section.tone-ink .v3-h2 em { color: #93c5fd; /* blue-300 */ }
body.lp-v3 .v3-section.tone-ink .v3-sub-tag {
  color: #93c5fd;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
body.lp-v3 .v3-section.tone-ink .v3-lede { color: rgba(255,255,255,0.74); }

.v3-container { max-width: 1240px; margin: 0 auto; }
.v3-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.v3-head.left { text-align: left; margin-left: 0; }

.v3-sub-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v3-blue-deep);
  background: var(--v3-blue-soft);
  border: 1px solid var(--v3-blue-mid);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--v3-radius-pill);
}
.v3-h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--v3-ink);
  margin-bottom: 14px;
}
.v3-h2 em { font-style: normal; color: var(--v3-blue); font-weight: 700; }
.v3-lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--v3-muted);
}

/* ═══════════════ Steps (numbered process) ═══════════════ */
.v3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v3-step {
  position: relative;
  padding: 28px 26px;
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  transition: border-color .2s, box-shadow .2s;
}
.v3-step:hover { border-color: var(--v3-blue-mid); box-shadow: var(--v3-shadow-sm); }
.v3-step .v3-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--v3-blue-soft);
  color: var(--v3-blue-deep);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.v3-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v3-ink);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.v3-step p { color: var(--v3-ink-2); font-size: 0.94rem; line-height: 1.6; }

/* ═══════════════ Services (photo-led) ═══════════════ */
.v3-svc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.v3-svc {
  position: relative;
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  /* Fallback gradient — visible if Unsplash <img> fails to load */
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s;
}
/* Photo as <img> tag so it can lazy-load, decode async, and degrade
   to the parent's fallback gradient if it fails. */
.v3-svc-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.v3-svc::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,0.05) 35%, rgba(15,23,42,0.88) 100%);
}
.v3-svc:hover { transform: translateY(-2px); box-shadow: var(--v3-shadow); }
.v3-svc:hover .v3-svc-bg { transform: scale(1.03); }

.v3-svc .v3-svc-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,23,42,0.55);
  padding: 5px 11px;
  border-radius: var(--v3-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.v3-svc .v3-svc-kicker .icon { width: 13px; height: 13px; }
.v3-svc h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.02em;
}
.v3-svc p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 92%;
}

.v3-svc.feat-lg { grid-column: span 6; min-height: 420px; }
.v3-svc.feat-md { grid-column: span 6; min-height: 320px; }
.v3-svc.feat-sm { grid-column: span 4; min-height: 280px; }
@media(max-width: 980px) {
  .v3-svc.feat-lg, .v3-svc.feat-md, .v3-svc.feat-sm { grid-column: span 12; }
}

/* ═══════════════ Impact / numbers (dark) ═══════════════ */
.v3-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.v3-impact-cell {
  padding: 28px 22px;
  border-radius: var(--v3-radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.v3-impact-cell .icon {
  width: 22px; height: 22px;
  color: #60a5fa;  /* blue-400 */
  margin-bottom: 16px;
  stroke-width: 1.85;
}
.v3-impact-cell .num {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--v3-paper);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.v3-impact-cell .num em { font-style: normal; color: #60a5fa; }
.v3-impact-cell .lbl { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ═══════════════ Split feature row ═══════════════ */
.v3-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.v3-split + .v3-split { margin-top: 88px; }
.v3-split.reverse .v3-split-photo { order: 2; }
.v3-split-photo {
  position: relative;
  height: 480px;
  border-radius: var(--v3-radius-xl);
  overflow: hidden;
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-shadow);
}
.v3-split-photo img { width: 100%; height: 100%; object-fit: cover; }
.v3-split-photo .v3-photo-quote {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  background: var(--v3-paper);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--v3-ink);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-shadow);
}
.v3-split-text h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.9vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--v3-ink);
  margin-bottom: 18px;
}
.v3-split-text h2 em { font-style: normal; color: var(--v3-blue); }
.v3-split-text p {
  font-size: 1rem; line-height: 1.65;
  color: var(--v3-ink-2);
  margin-bottom: 14px;
}
.v3-feature-list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 12px;
}
.v3-feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem;
  color: var(--v3-ink-2);
}
.v3-feature-list li .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--v3-leaf-soft);
  color: var(--v3-leaf-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v3-feature-list li .ic .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* ═══════════════ Testimonials ═══════════════ */
.v3-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.v3-test {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.v3-test:hover { border-color: var(--v3-blue-mid); box-shadow: var(--v3-shadow-sm); }
.v3-test .v3-stars {
  display: flex; gap: 2px;
  color: var(--v3-amber);
  margin-bottom: 14px;
}
.v3-test .v3-stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.v3-test blockquote {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--v3-ink);
  margin: 0 0 22px;
  flex: 1;
}
.v3-test .v3-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--v3-line);
}
.v3-test .v3-author img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--v3-line);
}
.v3-test .v3-author .who strong {
  display: block;
  font-size: 0.9rem;
  color: var(--v3-ink);
  font-weight: 600;
}
.v3-test .v3-author .who span {
  font-size: 0.78rem;
  color: var(--v3-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.v3-test .v3-author .who span .icon { width: 12px; height: 12px; color: var(--v3-leaf); }

/* ═══════════════ CTA band ═══════════════ */
.v3-cta-band {
  background: var(--v3-ink);
  color: var(--v3-paper);
  border-radius: var(--v3-radius-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #1e293b;
}
.v3-cta-band::before { display: none; }
.v3-cta-band h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--v3-paper);
}
.v3-cta-band h2 em { font-style: normal; color: #93c5fd; }
.v3-cta-band p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  max-width: 500px;
}
.v3-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.v3-cta-actions .v3-btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
}
.v3-cta-actions .v3-btn-primary:hover {
  background: #60a5fa;
  border-color: #60a5fa;
}
.v3-cta-actions .v3-btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.v3-cta-actions .v3-btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.v3-cta-photo {
  position: relative;
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.1);
}
.v3-cta-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════ Footer ═══════════════ */
body.lp-v3 .v3-footer {
  background: var(--v3-paper);
  border-top: 1px solid var(--v3-line);
  padding: 56px 32px 24px;
  color: var(--v3-ink-2);
}
.v3-footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.v3-ft-brand .v3-ft-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.v3-ft-brand .v3-ft-logo img { height: 34px; }
.v3-ft-brand .v3-ft-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--v3-ink);
  letter-spacing: -0.02em;
}
.v3-ft-brand .v3-ft-logo-text em { color: var(--v3-blue); font-style: normal; }
.v3-ft-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--v3-muted);
  max-width: 360px;
  margin-bottom: 18px;
}
.v3-ft-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.86rem;
  color: var(--v3-ink-2);
  margin-right: 16px;
  margin-bottom: 6px;
  text-decoration: none;
}
.v3-ft-contact a:hover { color: var(--v3-blue); }
.v3-ft-contact a .icon { width: 15px; height: 15px; color: var(--v3-blue); stroke-width: 1.85; }
.v3-ft-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v3-ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.v3-ft-col a {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.9rem;
  color: var(--v3-muted);
  padding: 5px 0;
  text-decoration: none;
  transition: color .15s;
}
.v3-ft-col a:hover { color: var(--v3-blue); }
.v3-ft-col a .icon { width: 13px; height: 13px; opacity: 0.65; stroke-width: 1.85; }
.v3-ft-bottom {
  max-width: 1240px; margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--v3-line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.v3-ft-bottom .v3-ft-copy { font-size: 0.8rem; color: var(--v3-muted); }
.v3-ft-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.v3-ft-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.76rem;
  color: var(--v3-muted);
}
.v3-ft-badge .icon { width: 13px; height: 13px; color: var(--v3-leaf); stroke-width: 1.85; }

/* ═══════════════ Responsive ═══════════════ */
@media(max-width: 980px) {
  body.lp-v3 .v3-hero { min-height: 92vh; }
  body.lp-v3 .v3-hero-content { padding: 96px 24px 64px; }
  .v3-hero .hv-badge { top: 76px; right: 20px; padding: 10px 12px; }
  .v3-hero .hv-badge .txt strong { font-size: 0.78rem; }
  .v3-hero .hv-badge .txt span { font-size: 0.68rem; }
  .v3-hero-meta { gap: 22px; flex-wrap: wrap; }
  .hc-dots { bottom: 16px; }
  body.lp-v3 .v3-section { padding: 64px 20px; }
  body.lp-v3 .v3-trust { padding: 18px 20px; }
  .v3-steps { grid-template-columns: 1fr; }
  .v3-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .v3-split { grid-template-columns: 1fr; gap: 32px; }
  .v3-split.reverse .v3-split-photo { order: 0; }
  .v3-split-photo { height: 320px; }
  .v3-test-grid { grid-template-columns: 1fr; }
  .v3-cta-band {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
  .v3-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  body.lp-v3 .v3-footer { padding: 44px 20px 20px; }
  .v3-hero-meta { gap: 20px; flex-wrap: wrap; }
}
@media(max-width: 640px) {
  .v3-footer-grid { grid-template-columns: 1fr; }
  .v3-impact-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════ AUTH (login / registro) ═══════════════ */
body.auth-v3 { background: var(--v3-cream); min-height: 100vh; }
body.auth-v3 .v3-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 64px;
}
body.auth-v3 .v3-auth-form {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 56px;
  background: var(--v3-cream);
}
body.auth-v3 .v3-auth-form-inner { width: 100%; max-width: 440px; }
body.auth-v3 .v3-auth-form-inner .v3-eyebrow { margin-bottom: 16px; }
body.auth-v3 .v3-auth-form-inner h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--v3-ink);
  margin-bottom: 10px;
}
body.auth-v3 .v3-auth-form-inner h1 em { font-style: normal; color: var(--v3-blue); }
body.auth-v3 .v3-auth-form-inner .v3-auth-sub {
  color: var(--v3-muted);
  font-size: 0.98rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
body.auth-v3 .v3-auth-form-inner .form-group {
  margin-bottom: 16px;
  display: block;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  position: relative;
}
body.auth-v3 .v3-auth-form-inner .form-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v3-ink);
  margin-bottom: 6px;
}
body.auth-v3 .v3-auth-form-inner .form-group label .icon {
  width: 13px; height: 13px;
  color: var(--v3-blue);
  stroke-width: 1.85;
}
body.auth-v3 .v3-auth-form-inner .form-group input,
body.auth-v3 .v3-auth-form-inner .form-group select,
body.auth-v3 .v3-auth-form-inner .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--v3-line-2);
  border-radius: 8px;
  background: var(--v3-paper);
  font-size: 0.94rem;
  color: var(--v3-ink);
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
body.auth-v3 .v3-auth-form-inner .form-group input::placeholder,
body.auth-v3 .v3-auth-form-inner .form-group textarea::placeholder { color: #94a3b8; }
body.auth-v3 .v3-auth-form-inner .form-group input:focus,
body.auth-v3 .v3-auth-form-inner .form-group select:focus,
body.auth-v3 .v3-auth-form-inner .form-group textarea:focus {
  outline: none;
  border-color: var(--v3-blue);
  box-shadow: 0 0 0 3px var(--v3-blue-mid);
}
body.auth-v3 .v3-auth-form-inner .pass-toggle {
  position: absolute;
  right: 10px; top: 32px;
  background: none; border: none;
  color: var(--v3-muted); cursor: pointer; padding: 5px;
}
body.auth-v3 .v3-auth-form-inner .form-submit {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--v3-blue);
  border-radius: 8px;
  background: var(--v3-blue);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
  margin-top: 4px;
}
body.auth-v3 .v3-auth-form-inner .form-submit:hover {
  background: var(--v3-blue-deep);
  border-color: var(--v3-blue-deep);
}
body.auth-v3 .v3-auth-form-inner .alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
}
body.auth-v3 .v3-auth-form-inner .alert .icon { color: #991b1b; }
body.auth-v3 .v3-auth-form-inner .hint-box {
  background: var(--v3-blue-soft);
  border: 1px solid var(--v3-blue-mid);
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--v3-blue-deep);
  display: flex; align-items: flex-start; gap: 9px;
  line-height: 1.5;
}
body.auth-v3 .v3-auth-form-inner .hint-box .icon { color: var(--v3-blue); flex-shrink: 0; margin-top: 2px; }
body.auth-v3 .v3-auth-form-inner .form-footer-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--v3-line);
  font-size: 0.9rem;
  color: var(--v3-muted);
}
body.auth-v3 .v3-auth-form-inner .form-footer-link a {
  color: var(--v3-blue);
  font-weight: 600;
  text-decoration: none;
}
body.auth-v3 .v3-auth-form-inner .form-footer-link a:hover { text-decoration: underline; }

body.auth-v3 .v3-auth-photo {
  position: relative;
  overflow: hidden;
  background: var(--v3-ink);
}
body.auth-v3 .v3-auth-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
body.auth-v3 .v3-auth-photo .v3-auth-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
  color: #fff;
}
body.auth-v3 .v3-auth-photo .v3-auth-overlay blockquote {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 460px;
}
body.auth-v3 .v3-auth-photo .v3-auth-overlay cite {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  display: flex; align-items: center; gap: 10px;
}
body.auth-v3 .v3-auth-photo .v3-auth-overlay cite::before {
  content: '';
  width: 24px; height: 1px;
  background: #60a5fa;
  display: inline-block;
}

/* ─── Registration-specific (wider) ─── */
body.auth-v3.auth-wide .v3-auth { grid-template-columns: 1.45fr 1fr; }
body.auth-v3.auth-wide .v3-auth-form-inner { max-width: 620px; }

body.auth-v3 .v3-auth-form-inner .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width: 540px) {
  body.auth-v3 .v3-auth-form-inner .form-row { grid-template-columns: 1fr; }
}
body.auth-v3 .v3-auth-form-inner .hint {
  font-size: 0.76rem;
  color: var(--v3-muted);
  font-weight: 400;
  margin-left: 4px;
}
body.auth-v3 .v3-auth-form-inner .tipo-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
body.auth-v3 .v3-auth-form-inner .tipo-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px;
  padding: 16px 12px;
  border: 1px solid var(--v3-line-2);
  background: var(--v3-paper);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v3-ink-2);
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: center;
}
body.auth-v3 .v3-auth-form-inner .tipo-btn .icon {
  color: var(--v3-blue);
  width: 22px; height: 22px;
  stroke-width: 1.85;
}
body.auth-v3 .v3-auth-form-inner .tipo-btn:hover {
  border-color: var(--v3-blue);
}
body.auth-v3 .v3-auth-form-inner .tipo-btn.active {
  border-color: var(--v3-blue);
  background: var(--v3-blue-soft);
  color: var(--v3-blue-deep);
  box-shadow: 0 0 0 3px var(--v3-blue-mid);
}

body.auth-v3 .v3-auth-form-inner .check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 7px;
  margin-top: 4px;
}
body.auth-v3 .v3-auth-form-inner .check-label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--v3-line-2);
  border-radius: 8px;
  background: var(--v3-paper);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--v3-ink-2);
  transition: border-color .15s, background .15s;
}
body.auth-v3 .v3-auth-form-inner .check-label:hover { border-color: var(--v3-blue); }
body.auth-v3 .v3-auth-form-inner .check-label.checked {
  border-color: var(--v3-blue);
  background: var(--v3-blue-soft);
  color: var(--v3-blue-deep);
}
body.auth-v3 .v3-auth-form-inner .check-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--v3-blue);
  margin: 0;
}
body.auth-v3 .v3-auth-form-inner .check-label .icon { width: 14px; height: 14px; }

body.auth-v3 .v3-auth-form-inner .legal-accept {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--v3-paper);
  border: 1px solid var(--v3-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--v3-ink-2);
  line-height: 1.5;
  transition: border-color .15s, background .15s;
}
body.auth-v3 .v3-auth-form-inner .legal-accept input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--v3-blue); flex-shrink: 0; }
body.auth-v3 .v3-auth-form-inner .legal-accept a { color: var(--v3-blue); font-weight: 600; text-decoration: underline; }
body.auth-v3 .v3-auth-form-inner .legal-accept.checked {
  border-color: var(--v3-blue);
  background: var(--v3-blue-soft);
}

body.auth-v3 .v3-auth-form-inner .success-block {
  text-align: center;
  padding: 22px 0;
}
body.auth-v3 .v3-auth-form-inner .success-block .success-icon {
  width: 56px; height: 56px;
  background: var(--v3-leaf-soft);
  color: var(--v3-leaf-deep);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
body.auth-v3 .v3-auth-form-inner .success-block .success-icon .icon { width: 28px; height: 28px; stroke-width: 2; }
body.auth-v3 .v3-auth-form-inner .success-block h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--v3-ink);
  margin-bottom: 10px;
}
body.auth-v3 .v3-auth-form-inner .success-block p {
  color: var(--v3-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

@media(max-width: 900px) {
  body.auth-v3 .v3-auth,
  body.auth-v3.auth-wide .v3-auth { grid-template-columns: 1fr; }
  body.auth-v3 .v3-auth-photo { display: none; }
  body.auth-v3 .v3-auth-form { padding: 32px 20px; }
}

/* ─── DB warning ─── */
body.lp-v3 .db-warning, body.auth-v3 .db-warning {
  background: #fef3c7;
  border-bottom-color: #f59e0b;
  color: #78350f;
  margin-top: 64px;
}
body.lp-v3 .a11y-fab { bottom: 22px; left: 22px; right: auto; }

/* ════════════════════════════════════════════════════════════════
   CONTENT PAGE SYSTEM (interior pages)
   ──────────────────────────────────────────────────────────────── */

body.lp-v3 .v3-page-hero {
  background: var(--v3-paper);
  padding: 110px 32px 56px;
  border-bottom: 1px solid var(--v3-line);
  position: relative;
}
body.lp-v3 .v3-page-hero::before { display: none; }
.v3-page-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
.v3-page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--v3-ink);
  margin: 0 0 12px;
  max-width: 820px;
}
.v3-page-hero h1 em { font-style: normal; color: var(--v3-blue); font-weight: 700; }
.v3-page-hero .v3-page-lede {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--v3-ink-2);
  max-width: 680px;
  margin: 0;
}
.v3-page-hero .v3-page-actions {
  margin-top: 24px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

body.lp-v3 .v3-page-body {
  padding: 56px 32px 96px;
  background: var(--v3-cream);
}
body.lp-v3 .v3-page-body.tone-cream { background: var(--v3-cream); }
body.lp-v3 .v3-page-body .v3-container { max-width: 1240px; margin: 0 auto; }

/* Card grid */
.v3-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.v3-card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.v3-card-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.v3-card {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  padding: 22px;
  transition: border-color .2s, box-shadow .2s;
}
.v3-card:hover {
  border-color: var(--v3-blue-mid);
  box-shadow: var(--v3-shadow-sm);
}
.v3-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--v3-ink);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.v3-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--v3-muted);
  margin: 0;
}

/* Chip / tag */
.v3-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  background: var(--v3-cream-deep);
  color: var(--v3-ink-2);
  border: 1px solid var(--v3-line);
}
.v3-chip .icon { width: 12px; height: 12px; stroke-width: 1.9; }
.v3-chip.coral { background: var(--v3-blue-soft); color: var(--v3-blue-deep); border-color: var(--v3-blue-mid); }
.v3-chip.leaf  { background: var(--v3-leaf-soft); color: var(--v3-leaf-deep); border-color: #a7f3d0; }
.v3-chip.blue  { background: var(--v3-blue-soft); color: var(--v3-blue-deep); border-color: var(--v3-blue-mid); }
.v3-chip.amber { background: var(--v3-amber-soft); color: #155e75; border-color: #a5f3fc; }
.v3-chip.outline { background: transparent; border-color: var(--v3-line-2); color: var(--v3-ink-2); }

.v3-chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }

/* Empty state */
.v3-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--v3-paper);
  border: 1px dashed var(--v3-line-2);
  border-radius: var(--v3-radius-lg);
  max-width: 520px;
  margin: 0 auto;
}
.v3-empty .v3-empty-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--v3-blue-soft);
  color: var(--v3-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.v3-empty .v3-empty-icon .icon { width: 26px; height: 26px; stroke-width: 1.85; }
.v3-empty h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--v3-ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.v3-empty p {
  color: var(--v3-muted);
  font-size: 0.96rem;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ═══════════════ Volunteer card (clinical info-density) ═══════════════ */
.v3-vol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.v3-vol-card {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.v3-vol-card::before { display: none; }
.v3-vol-card:hover { border-color: var(--v3-blue-mid); box-shadow: var(--v3-shadow-sm); }
.v3-vol-card .v3-vol-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.v3-vol-card .v3-vol-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--v3-blue-soft);
  color: var(--v3-blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid var(--v3-blue-mid);
  overflow: hidden;
}
.v3-vol-card .v3-vol-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v3-vol-card .v3-vol-info { flex: 1; min-width: 0; }
.v3-vol-card .v3-vol-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--v3-ink);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.v3-vol-card .v3-vol-name .verify { color: var(--v3-leaf); display: inline-flex; }
.v3-vol-card .v3-vol-name .verify .icon { width: 13px; height: 13px; }
.v3-vol-card .v3-vol-loc {
  font-size: 0.82rem;
  color: var(--v3-muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.v3-vol-card .v3-vol-loc .icon { width: 12px; height: 12px; color: var(--v3-blue); }
.v3-vol-card .v3-vol-rating {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.84rem;
  color: var(--v3-ink);
  margin-top: 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.v3-vol-card .v3-vol-rating .icon { width: 12px; height: 12px; fill: var(--v3-amber); stroke: var(--v3-amber); }
.v3-vol-card .v3-vol-rating .count { color: var(--v3-muted); font-weight: 400; font-size: 0.76rem; }
.v3-vol-card .v3-vol-status {
  background: var(--v3-leaf-soft);
  color: var(--v3-leaf-deep);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--v3-radius-pill);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  border: 1px solid #a7f3d0;
}
.v3-vol-card .v3-vol-status .icon { width: 11px; height: 11px; }
.v3-vol-card .v3-vol-desc {
  font-size: 0.9rem;
  color: var(--v3-ink-2);
  line-height: 1.55;
  margin: 0 0 12px;
}
.v3-vol-card .v3-vol-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--v3-line);
  display: flex; gap: 7px; flex-wrap: wrap;
}
.v3-vol-card .v3-vol-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
  border: 1px solid var(--v3-line-2);
  background: var(--v3-paper);
  color: var(--v3-ink-2);
  white-space: nowrap;
}
.v3-vol-card .v3-vol-btn:hover { border-color: var(--v3-ink-2); }
.v3-vol-card .v3-vol-btn.primary {
  background: var(--v3-blue) !important;
  border-color: var(--v3-blue) !important;
  color: #fff !important;
}
.v3-vol-card .v3-vol-btn.primary:hover {
  background: var(--v3-blue-deep) !important;
  border-color: var(--v3-blue-deep) !important;
  color: #fff !important;
}
.v3-vol-card .v3-vol-btn .icon { width: 13px; height: 13px; }

/* ═══════════════ Pricing (clinical, simple) ═══════════════ */
/* ═══════════════ Pricing — look corporativo (Stripe/Linear) ═══════════════ */
.v3-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
}
.v3-plan {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.v3-plan:hover {
  border-color: var(--v3-line-2);
  box-shadow: var(--v3-shadow-sm);
  transform: translateY(-1px);
}
/* Plan destacado: navy oscuro, alto contraste, look enterprise */
.v3-plan.featured {
  background: linear-gradient(180deg, #0a1326 0%, var(--v3-ink) 100%);
  border-color: var(--v3-ink);
  color: #fff;
  box-shadow: 0 16px 40px -16px rgba(15,23,42,0.35);
}
.v3-plan.actual {
  border-color: var(--v3-leaf);
  box-shadow: 0 0 0 1px var(--v3-leaf);
}

/* Tag "Recomendado" pequeño y discreto */
.v3-plan-badge-top {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--v3-blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.v3-plan.featured .v3-plan-badge-top {
  background: #fff;
  color: var(--v3-ink);
}

/* Header del plan: icono pequeño cuadrado + eyebrow */
.v3-plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.v3-plan-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--v3-cream-deep);
  color: var(--v3-ink);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--v3-line);
  flex-shrink: 0;
}
.v3-plan-icon .icon {
  width: 16px; height: 16px;
  stroke-width: 2.2;
}
.v3-plan.featured .v3-plan-icon {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.16);
}
.v3-plan-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-muted);
}
.v3-plan.featured .v3-plan-eyebrow { color: rgba(255,255,255,0.72); }

.v3-plan-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--v3-ink);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.v3-plan.featured .v3-plan-name { color: #fff; }

.v3-plan-desc {
  color: var(--v3-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
  line-height: 1.55;
  min-height: 42px;
}
.v3-plan.featured .v3-plan-desc { color: rgba(255,255,255,0.7); }

/* Precio prominente */
.v3-plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--v3-line);
}
.v3-plan.featured .v3-plan-price { border-bottom-color: rgba(255,255,255,0.12); }
.v3-plan-price .currency {
  font-size: 1rem; color: var(--v3-muted); font-weight: 600;
}
.v3-plan.featured .v3-plan-price .currency { color: rgba(255,255,255,0.6); }
.v3-plan-price .big {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--v3-ink);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.v3-plan.featured .v3-plan-price .big { color: #fff; }
.v3-plan-price .per { color: var(--v3-muted); font-size: 0.88rem; margin-left: 2px; }
.v3-plan.featured .v3-plan-price .per { color: rgba(255,255,255,0.6); }

/* CTA */
.v3-plan-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid var(--v3-ink);
  border-radius: 10px;
  background: var(--v3-ink);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  margin-bottom: 26px;
}
.v3-plan-btn:hover { background: var(--v3-blue-deep); border-color: var(--v3-blue-deep); color: #fff; }
.v3-plan.featured .v3-plan-btn {
  background: #fff;
  color: var(--v3-ink);
  border-color: #fff;
}
.v3-plan.featured .v3-plan-btn:hover {
  background: var(--v3-blue);
  border-color: var(--v3-blue);
  color: #fff;
}
.v3-plan-btn.is-current {
  background: transparent;
  color: var(--v3-leaf-deep);
  border-color: var(--v3-leaf);
  cursor: default;
}
.v3-plan-btn.is-current:hover {
  background: transparent;
  color: var(--v3-leaf-deep);
  border-color: var(--v3-leaf);
}
.v3-plan-btn.is-current .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.v3-plan.featured .v3-plan-btn.is-current {
  color: #86efac;
  border-color: rgba(134,239,172,0.45);
  background: transparent;
}

/* "Incluye" label */
.v3-plan-feat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-muted);
  margin-bottom: 12px;
}
.v3-plan.featured .v3-plan-feat-label { color: rgba(255,255,255,0.5); }

/* Feature list — sin bordes, SVG icons, tipografía limpia */
.v3-plan-features {
  list-style: none; padding: 0; margin: 0;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 10px;
}
.v3-plan-features li {
  font-size: 0.9rem;
  color: var(--v3-ink-2);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.45;
}
.v3-plan.featured .v3-plan-features li { color: rgba(255,255,255,0.85); }
.v3-plan-features li.no { color: var(--v3-muted); }
.v3-plan.featured .v3-plan-features li.no { color: rgba(255,255,255,0.4); }

.v3-plan-features li .mark {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.v3-plan-features li .mark svg {
  width: 14px; height: 14px;
}
.v3-plan-features li.ok .mark { color: var(--v3-leaf); }
.v3-plan-features li.no .mark { color: var(--v3-muted); opacity: 0.5; }
.v3-plan.featured .v3-plan-features li.ok .mark { color: #4ade80; }
.v3-plan.featured .v3-plan-features li.no .mark { color: rgba(255,255,255,0.3); }

.v3-actual-badge {
  display: inline-block;
  background: var(--v3-leaf-soft);
  color: var(--v3-leaf-deep);
  padding: 6px 14px;
  border-radius: var(--v3-radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 16px;
  border: 1px solid #a7f3d0;
}

/* ═══════════════ FAQ / Accordion ═══════════════ */
.v3-faq { max-width: 760px; margin: 56px auto 0; }
.v3-faq h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  color: var(--v3-ink);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.v3-faq h2 em { font-style: normal; color: var(--v3-blue); }
.v3-faq details {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.v3-faq details[open] {
  border-color: var(--v3-blue);
  box-shadow: 0 0 0 3px var(--v3-blue-mid);
}
.v3-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--v3-ink);
  font-size: 0.96rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
}
.v3-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--v3-blue);
  font-weight: 300;
  line-height: 1;
  transition: transform .2s;
}
.v3-faq details[open] summary::after { content: '−'; }
.v3-faq summary::-webkit-details-marker { display: none; }
.v3-faq p {
  color: var(--v3-ink-2);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 10px 0 0;
}

/* ═══════════════ Article / blog cards ═══════════════ */
.v3-article {
  display: flex; flex-direction: column;
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.v3-article:hover { border-color: var(--v3-blue-mid); box-shadow: var(--v3-shadow-sm); }
.v3-article .v3-article-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--v3-cream-deep);
  border-bottom: 1px solid var(--v3-line);
}
.v3-article .v3-article-body { padding: 20px 22px 22px; }
.v3-article .v3-article-meta {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v3-blue-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.v3-article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--v3-ink);
  margin: 0 0 6px;
  letter-spacing: -0.018em;
}
.v3-article p {
  font-size: 0.9rem;
  color: var(--v3-muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════ Support / 2-column layout ═══════════════ */
.v3-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media(max-width: 900px) { .v3-support-grid { grid-template-columns: 1fr; } }
.v3-support-side h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--v3-ink);
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

/* ═══════════════ Form (.v3-form) ═══════════════ */
.v3-form {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  padding: 26px;
}
.v3-form .form-group { margin-bottom: 14px; }
.v3-form label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v3-ink);
  margin-bottom: 6px;
}
.v3-form label .icon { width: 13px; height: 13px; color: var(--v3-blue); stroke-width: 1.85; }
.v3-form input, .v3-form select, .v3-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--v3-line-2);
  border-radius: 8px;
  background: #fff;
  font-size: 0.93rem;
  color: var(--v3-ink);
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.v3-form textarea { min-height: 110px; resize: vertical; }
.v3-form input:focus, .v3-form select:focus, .v3-form textarea:focus {
  outline: none;
  border-color: var(--v3-blue);
  box-shadow: 0 0 0 3px var(--v3-blue-mid);
}
.v3-form .submit {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--v3-blue);
  border-radius: 8px;
  background: var(--v3-blue);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.v3-form .submit:hover { background: var(--v3-blue-deep); border-color: var(--v3-blue-deep); }

/* ═══════════════ Alert ═══════════════ */
.v3-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 16px;
  line-height: 1.5;
  border: 1px solid;
}
.v3-alert.success { background: var(--v3-leaf-soft); color: #14532d; border-color: #a7f3d0; }
.v3-alert.error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.v3-alert.info    { background: var(--v3-blue-soft); color: var(--v3-blue-deep); border-color: var(--v3-blue-mid); }
.v3-alert.warn    { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.v3-alert .icon   { flex-shrink: 0; margin-top: 2px; stroke-width: 1.9; }
.v3-alert.success .icon { color: var(--v3-leaf-deep); }
.v3-alert.error .icon { color: #991b1b; }
.v3-alert.warn .icon { color: #b45309; }

/* ═══════════════ SOS hero (emergencia) ═══════════════ */
body.lp-v3 .v3-sos-hero {
  background: var(--v3-ink);
  color: var(--v3-paper);
  padding: 110px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}
body.lp-v3 .v3-sos-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--v3-paper);
  margin: 0 0 14px;
}
body.lp-v3 .v3-sos-hero h1 em { font-style: normal; color: #fca5a5; /* red-300 for emergency tone */ }
body.lp-v3 .v3-sos-hero .lede {
  color: rgba(255,255,255,0.78);
  font-size: 1.06rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.v3-sos-button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ef4444 0%, #b91c1c 70%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: 6px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 12px rgba(239,68,68,0.15),
    0 0 0 24px rgba(239,68,68,0.05),
    0 22px 60px rgba(239,68,68,0.4);
  position: relative;
  margin: 44px auto 0;
  animation: v3sospulse 2.4s ease-in-out infinite;
  transition: transform .25s;
}
.v3-sos-button:hover { transform: scale(1.03); }
.v3-sos-button .icon { width: 48px; height: 48px; margin-bottom: 4px; }
.v3-sos-button small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 4px;
  letter-spacing: 0;
}
@keyframes v3sospulse {
  0%,100% { box-shadow: 0 0 0 12px rgba(239,68,68,0.15), 0 0 0 24px rgba(239,68,68,0.05), 0 22px 60px rgba(239,68,68,0.4); }
  50%     { box-shadow: 0 0 0 18px rgba(239,68,68,0.08), 0 0 0 36px rgba(239,68,68,0.02), 0 22px 60px rgba(239,68,68,0.4); }
}

/* ═══════════════ 404 ═══════════════ */
body.lp-v3 .v3-404 {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 110px 24px 64px;
  background: var(--v3-paper);
  text-align: center;
}
.v3-404-inner { max-width: 580px; }
.v3-404-code {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 9rem);
  line-height: 0.9;
  color: var(--v3-blue);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.v3-404 h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.025em;
  color: var(--v3-ink);
  margin-bottom: 12px;
}
.v3-404 p {
  color: var(--v3-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.v3-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.v3-404-links {
  padding-top: 22px;
  border-top: 1px solid var(--v3-line);
}
.v3-404-links small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v3-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.v3-404-links a {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 9px 7px;
  font-size: 0.88rem;
  color: var(--v3-ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.v3-404-links a:hover { color: var(--v3-blue); }
.v3-404-links a .icon { width: 13px; height: 13px; color: var(--v3-blue); }

/* ═══════════════ Legal / prose ═══════════════ */
body.lp-v3 .v3-prose { max-width: 720px; margin: 0 auto; }
body.lp-v3 .v3-prose h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--v3-ink);
  margin: 36px 0 12px;
  letter-spacing: -0.022em;
}
body.lp-v3 .v3-prose h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--v3-ink);
  margin: 24px 0 10px;
}
body.lp-v3 .v3-prose p,
body.lp-v3 .v3-prose li {
  color: var(--v3-ink-2);
  font-size: 0.98rem;
  line-height: 1.72;
  margin-bottom: 12px;
}
body.lp-v3 .v3-prose ul, body.lp-v3 .v3-prose ol { padding-left: 22px; }
body.lp-v3 .v3-prose a { color: var(--v3-blue); font-weight: 600; }
body.lp-v3 .v3-prose strong { color: var(--v3-ink); font-weight: 600; }

/* ═══════════════ Map page chrome ═══════════════ */
.v3-split-tools {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media(max-width: 900px) { .v3-split-tools { grid-template-columns: 1fr; } }
.v3-toolbar {
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  padding: 20px;
  position: sticky;
  top: 84px;
}
.v3-toolbar h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--v3-ink);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.v3-toolbar .form-group { margin-bottom: 12px; }
.v3-map-wrap {
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  border: 1px solid var(--v3-line);
  background: var(--v3-cream-deep);
  min-height: 600px;
  position: relative;
}

/* Responsive trims for content pages */
@media(max-width: 980px) {
  body.lp-v3 .v3-page-hero { padding: 96px 20px 40px; }
  body.lp-v3 .v3-page-body { padding: 40px 20px 64px; }
  body.lp-v3 .v3-sos-hero { padding: 96px 20px 56px; }
}
