/* ═══════════════════════════════════════════════════════════════
   LATIDOS — Sistema de diseño "Clinical Modern"
   Look médico moderno: blanco dominante, rojo clínico como acento,
   slate-900 para texto, sombras sutiles, tipografía Inter geométrica.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* ── Paleta principal ─────────────────────────────────────── */
  --red:        #DC2626;
  --red-dark:   #B91C1C;
  --red-light:  #FEE2E2;
  --red-50:     #FEF2F2;

  --white:      #FFFFFF;
  --slate:      #0F172A;       /* slate-900 (texto principal) */
  --slate-light:#334155;       /* slate-700 */
  --text:       #1E293B;       /* slate-800 */
  --text-muted: #64748B;       /* slate-500 */
  --bg:         #F8FAFC;       /* slate-50 (fondo global) */
  --surface:    #FFFFFF;

  /* Reemplazos del antiguo "beige": ahora gris neutro clínico
     (mantenemos los nombres para no romper inline styles existentes) */
  --beige:      #F1F5F9;       /* slate-100 — fondos suaves */
  --beige-dark: #E2E8F0;       /* slate-200 */
  --border:     #E2E8F0;       /* slate-200 */
  --border-strong: #CBD5E1;    /* slate-300 */

  /* ── Acentos médicos ──────────────────────────────────────── */
  --success:    #10B981;       /* emerald-500 */
  --success-bg: #ECFDF5;       /* emerald-50 */
  --info:       #0EA5E9;       /* sky-500 */
  --info-bg:    #F0F9FF;       /* sky-50 */
  --warning:    #F59E0B;       /* amber-500 */
  --warning-bg: #FFFBEB;       /* amber-50 */

  /* ── Sombras (clínicas, casi imperceptibles) ──────────────── */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .05);
  --shadow-red: 0 4px 14px rgba(220, 38, 38, .25);

  /* ── Geometría ────────────────────────────────────────────── */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ── Tipografía ───────────────────────────────────────────── */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* ── Motion ───────────────────────────────────────────────── */
  --transition: .18s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .35s cubic-bezier(.4, 0, .2, 1);

  /* ── Layout ───────────────────────────────────────────────── */
  --nav-height: 68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Tipografía ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--slate);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); }

a  { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

::selection { background: var(--red-light); color: var(--red-dark); }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Navbar premium ──────────────────────────────────────────── */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
  border-bottom-color: transparent;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

/* ── Brand con mark sólido ── */
.navbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--slate);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.navbar-brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(220, 38, 38, .35);
}
.navbar-brand .brand-mark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, transparent 55%);
  pointer-events: none;
}
.navbar-brand .brand-mark svg {
  width: 19px; height: 19px;
  color: white;
  position: relative; z-index: 1;
  animation: brand-heartbeat 1.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes brand-heartbeat {
  0%, 28%, 70%, 100% { transform: scale(1); }
  14%, 42% { transform: scale(1.18); }
}
.navbar-brand .brand-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.navbar-brand .brand-text .brand-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
  top: 4px;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  50%      { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}

/* ── Nav central ── */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.navbar-nav > a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.navbar-nav > a:hover {
  background: var(--bg);
  color: var(--slate);
}
.navbar-nav > a.active {
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 600;
}
.navbar-nav > a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}
.navbar-nav > a:hover svg { color: var(--red); }
.navbar-nav > a.active svg { color: var(--red); }

/* Compatibility con código legacy */
.navbar-links { display: flex; align-items: center; gap: 6px; }
.navbar-links a {
  padding: 8px 13px; border-radius: 9px;
  font-size: .885rem; font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.navbar-links a:hover { background: var(--bg); color: var(--slate); }
.navbar-links a.active { background: var(--red-light); color: var(--red-dark); font-weight: 600; }

/* ── Right actions ── */
.navbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.navbar-actions > .navbar-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
}
.navbar-actions > .navbar-auth > a {
  text-decoration: none;
}

/* Icon-only button */
.nav-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.nav-icon-btn:hover {
  background: var(--red-light);
  border-color: rgba(220, 38, 38, .2);
  color: var(--red);
  transform: translateY(-1px);
}
.nav-icon-btn svg, .nav-icon-btn i { width: 17px; height: 17px; flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate);
  transition: all var(--transition);
}
.menu-toggle:hover { background: var(--bg); }
.menu-toggle svg { width: 18px; height: 18px; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  padding: 16px 20px 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Estado cerrado: completamente fuera de hit testing y rendering */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1),
              opacity .2s ease,
              visibility 0s linear .25s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1),
              opacity .2s ease,
              visibility 0s linear 0s;
}
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--bg); color: var(--slate); }
.mobile-menu a svg { width: 16px; height: 16px; color: var(--text-muted); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--red);
  color: var(--white);
  justify-content: center;
  font-weight: 600;
}
.mobile-menu .mobile-cta:hover { background: var(--red-dark); color: var(--white); }

/* Auth links */
.navbar-auth { display: inline-flex; align-items: center; gap: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .navbar-nav { display: none; }
  .navbar-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .navbar-actions .navbar-auth { display: none; }
  .navbar-brand .brand-text .brand-sub { display: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, .35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--slate);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--slate-light);
  color: var(--slate);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { background: var(--beige); color: var(--slate); }

.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 4px 14px rgba(37, 211, 102, .25); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); transform: translateY(-1px); }

.btn-sm { padding: 7px 14px; font-size: .825rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Icon utility ──────────────────────────────────────────── */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { display: block; }
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 18px; height: 18px; }
.icon-lg svg { width: 24px; height: 24px; }
.icon-xl svg { width: 32px; height: 32px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.card-beige { background: var(--beige); border-color: var(--beige-dark); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: .825rem; font-weight: 600; color: var(--slate);
  letter-spacing: -0.005em;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .925rem;
  transition: all var(--transition);
  outline: none;
}
.form-control::placeholder { color: #94A3B8; }
.form-control:hover { border-color: #94A3B8; }
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 96px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .735rem; font-weight: 600;
  letter-spacing: 0;
}
.badge-red    { background: var(--red-light);    color: var(--red-dark); }
.badge-beige  { background: var(--beige);        color: var(--slate); }
.badge-green  { background: var(--success-bg);   color: #047857; }
.badge-orange { background: var(--warning-bg);   color: #B45309; }
.badge-gray   { background: #F1F5F9;             color: #475569; }
.badge-info   { background: var(--info-bg);      color: #0369A1; }

.urgency-alto  { background: var(--red-light);  color: var(--red-dark); }
.urgency-medio { background: var(--warning-bg); color: #B45309; }
.urgency-bajo  { background: var(--success-bg); color: #047857; }

.blood-badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
  letter-spacing: -0.02em;
}

/* ── Blood badge HERO (para tarjetas de solicitud) ─────────── */
.blood-badge-hero {
  position: relative;
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #fff;
  border-radius: 18px 18px 18px 6px;
  font-family: var(--font-sans);
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow:
    0 10px 24px -6px rgba(220, 38, 38, .55),
    0 2px 6px rgba(220, 38, 38, .35),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.12);
  transform: rotate(-3deg);
  transition: transform .25s ease;
}
.blood-badge-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.15), transparent 55%);
  pointer-events: none;
}
.blood-badge-hero::after {
  content: "";
  position: absolute;
  right: -6px; bottom: -6px;
  width: 22px; height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/></svg>") center/contain no-repeat;
  background: #DC2626;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.blood-badge-hero > span {
  position: relative; z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.request-card:hover .blood-badge-hero {
  transform: rotate(0deg) scale(1.04);
}

/* Urgencia ALTA -> pulso latido en el badge */
.request-card[data-urgency="alto"] .blood-badge-hero {
  animation: bloodPulse 1.8s ease-in-out infinite;
}
@keyframes bloodPulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(220, 38, 38, .55), 0 2px 6px rgba(220, 38, 38, .35), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.12); }
  50%      { box-shadow: 0 10px 32px -4px rgba(220, 38, 38, .85), 0 0 0 6px rgba(220, 38, 38, .18), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.12); }
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #047857; border-color: #A7F3D0; }
.alert-error   { background: var(--red-50);     color: var(--red-dark); border-color: #FECACA; }
.alert-info    { background: var(--info-bg);    color: #0369A1; border-color: #BAE6FD; }
.alert svg     { flex-shrink: 0; margin-top: 1px; }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(140deg, var(--slate) 0%, #1E293B 60%, #312E33 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px; position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(220, 38, 38, .25) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, .08) 0%, transparent 50%);
}
.auth-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.auth-visual-content { position: relative; z-index: 1; text-align: center; max-width: 380px; }
.auth-visual h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 14px; font-weight: 700; }
.auth-visual p  { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.65; }
.auth-visual .brand-big {
  font-family: var(--font-sans);
  font-size: 2.5rem; color: var(--white); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 800; letter-spacing: -0.035em;
}
.auth-visual .brand-big .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; background: var(--white);
}
.auth-form-box { width: 100%; max-width: 420px; }
.auth-form-box h2 { margin-bottom: 6px; font-size: 1.75rem; }
.auth-form-box .subtitle { margin-bottom: 28px; font-size: .925rem; }

@media (max-width: 880px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.4) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, .08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 {
  color: var(--slate);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--red) 0%, #EF4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero badge (pill superior) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red-light);
  color: var(--red-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(220, 38, 38, .15);
}
.hero-badge .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse-dot 1.8s ease-in-out infinite; }

/* ── Stats strip ───────────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; text-align: center;
  max-width: 900px; margin: 0 auto;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--red);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-item p {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-header { margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.section-header h2 { margin-bottom: 4px; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; }
.sidebar {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-xs); border: 1px solid var(--border);
  height: fit-content; position: sticky; top: calc(var(--nav-height) + 16px);
}
.sidebar-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  color: var(--white); font-size: 1.25rem; font-weight: 700;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.sidebar-name { font-weight: 700; color: var(--slate); font-size: .95rem; letter-spacing: -0.01em; }
.sidebar-role { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.sidebar-nav { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text); font-size: .88rem; font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover { background: var(--beige); color: var(--slate); }
.sidebar-nav a.active { background: var(--red-light); color: var(--red-dark); font-weight: 600; }
.sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 14px 0; }
.availability-toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-strong); border-radius: var(--radius-pill);
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: var(--white); border-radius: 50%; transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--red); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

@media (max-width: 880px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-avatar { display: none; }
}

/* ── Request Cards ─────────────────────────────────────────── */
.requests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.request-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); transition: all var(--transition);
  display: flex; flex-direction: column; gap: 13px;
}
.request-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.request-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-card-title { font-weight: 700; color: var(--slate); font-size: 1rem; letter-spacing: -0.01em; }
.request-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.request-card-info { display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); }
.info-row svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.request-card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* ── Donor Cards ───────────────────────────────────────────── */
.donors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.donor-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.donor-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--border-strong); }
.donor-info { flex: 1; }
.donor-name { font-weight: 700; color: var(--slate); font-size: .925rem; letter-spacing: -0.01em; }
.donor-city { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.donor-actions { display: flex; flex-direction: column; gap: 6px; }

/* ── Filters ───────────────────────────────────────────────── */
.filters-bar {
  background: var(--white); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 22px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.filter-select {
  padding: 8px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--white); color: var(--text);
  font-family: var(--font-sans); font-size: .85rem;
  cursor: pointer; outline: none; transition: all var(--transition);
  font-weight: 500;
}
.filter-select:hover { border-color: #94A3B8; }
.filter-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }

.filter-with-icon { position: relative; display: flex; align-items: center; }
.filter-with-icon .filter-icon {
  position: absolute; left: 12px; pointer-events: none;
  color: var(--text-muted); display: flex; align-items: center;
}
.filter-with-icon .filter-icon svg { width: 14px; height: 14px; }
.filter-with-icon .filter-select,
.filter-with-icon input { padding-left: 34px; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .empty-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--beige); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.empty-state .empty-icon svg { width: 26px; height: 26px; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 6px; font-size: 1.075rem; }
.empty-state p { font-size: .9rem; }

/* ── Profile ───────────────────────────────────────────────── */
.profile-header {
  background: linear-gradient(135deg, var(--slate) 0%, #1E293B 100%);
  border-radius: var(--radius); padding: 30px;
  display: flex; align-items: center; gap: 22px; margin-bottom: 24px;
  color: var(--white);
  position: relative; overflow: hidden;
}
.profile-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(220, 38, 38, .18) 0%, transparent 55%);
  pointer-events: none;
}
.profile-header > * { position: relative; z-index: 1; }
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 1.8rem; color: var(--white);
  font-weight: 700;
}
.profile-info h2 { color: var(--white); margin-bottom: 4px; }
.profile-info p  { color: rgba(255, 255, 255, .7); }

/* ── Misc ──────────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.45rem; color: var(--slate);
  font-weight: 800; letter-spacing: -0.025em;
}

/* ═════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  margin-top: auto;
}
.footer-top { padding: 56px 0 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.45rem; color: var(--white); text-decoration: none;
  margin-bottom: 14px;
  font-weight: 800; letter-spacing: -0.025em;
}
.footer-heart-icon {
  width: 22px; height: 22px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain; mask-size: contain;
}
.footer-description { color: rgba(255, 255, 255, .55); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, .08);
}
.social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.social-link svg { width: 15px; height: 15px; }

.footer-heading {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
  font-weight: 700;
}
.footer-heading::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 24px; height: 2px; background: var(--red); border-radius: 2px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-list li a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem;
}
.footer-list li a:hover { color: var(--white); transform: translateX(3px); }
.footer-list li a::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--red); opacity: 0; transition: opacity var(--transition);
}
.footer-list li a:hover::before { opacity: 1; }

.footer-bottom { padding: 18px 0; background: rgba(0, 0, 0, .2); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.copyright { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.copyright strong { color: var(--white); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .08);
  font-weight: 500;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; max-width: 500px; margin: 0 auto; }
  .footer-description { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
}
@media (max-width: 640px) {
  .footer-top { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { grid-column: 1; }
  .footer-heading::after { left: 50%; transform: translateX(-50%); }
  .footer-list li a:hover { transform: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-badges { justify-content: center; }
}

.footer-list a:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO PREMIUM — Two-column con ilustración SVG
   ═══════════════════════════════════════════════════════════════ */
.hero-v2 {
  background: var(--white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-v2::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0,0,0,.5) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0,0,0,.5) 0%, transparent 75%);
  pointer-events: none;
}
.hero-v2::after {
  content: ''; position: absolute;
  top: 10%; right: -15%; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(220, 38, 38, .14) 0%, rgba(220, 38, 38, .05) 35%, transparent 70%);
  pointer-events: none;
  animation: float-slow 18s ease-in-out infinite;
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-v2-text { position: relative; }
.hero-v2-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 18px 0 22px;
  color: var(--slate);
}
.hero-v2-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--red) 0%, #F43F5E 50%, #DC2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-v2-text > p.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-v2-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-v2-cta .btn-lg { padding: 15px 28px; }

/* Inline stats bajo el hero */
.hero-v2-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-v2-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.hero-v2-stat .num .plus {
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-sans);
}
.hero-v2-stat .label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: -0.005em;
}

/* ── Hero visual side (ilustración SVG + float card) ── */
.hero-v2-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mesh blob decorativo */
.hero-v2-visual::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  background:
    radial-gradient(circle at 30% 30%, rgba(220, 38, 38, .18) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(244, 63, 94, .14) 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(251, 113, 133, .12) 0%, transparent 50%);
  filter: blur(20px);
  animation: mesh-rotate 20s linear infinite;
  border-radius: 50%;
}

@keyframes mesh-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

/* Corazón anatómico SVG container */
.heart-illustration {
  position: relative;
  width: 360px; height: 360px;
  z-index: 1;
  animation: heart-beat 1.4s ease-in-out infinite;
}
@keyframes heart-beat {
  0%, 28%, 70%, 100% { transform: scale(1); }
  14%, 42% { transform: scale(1.06); }
}
.heart-illustration svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(220, 38, 38, .35)); }

/* ECG flowing line */
.ecg-flow {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 80px;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ecg-flow svg { width: 200%; height: 100%; animation: ecg-scroll 4s linear infinite; }
@keyframes ecg-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ecg-flow .ecg-line-flow { stroke: var(--red); stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 6px rgba(220, 38, 38, .6)); }

/* Float card flotante sobre el visual */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  animation: float-card-anim 4s ease-in-out infinite;
}
.float-card.fc-1 { top: 8%; left: -4%; animation-delay: 0s; }
.float-card.fc-2 { bottom: 12%; right: -2%; animation-delay: 1.5s; }
@keyframes float-card-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card-icon.green { background: var(--success-bg); color: var(--success); }
.float-card-icon svg { width: 20px; height: 20px; }
.float-card-title { font-size: .8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.float-card-value { font-size: .95rem; color: var(--slate); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.float-card-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  margin-left: auto;
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
}

@media (max-width: 980px) {
  .hero-v2-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-v2-text > p.lead { margin-left: auto; margin-right: auto; }
  .hero-v2-cta { justify-content: center; }
  .hero-v2-stats { justify-content: center; }
  .hero-v2-visual { height: 360px; }
  .heart-illustration { width: 280px; height: 280px; }
  .float-card.fc-1 { top: 0; left: 0; }
  .float-card.fc-2 { bottom: 0; right: 0; }
}
@media (max-width: 560px) {
  .hero-v2 { padding: 40px 0 56px; }
  .hero-v2-text h1 { font-size: 2.4rem; }
  .float-card { min-width: 180px; padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   TRUST STRIP — Confianza institucional
   ═══════════════════════════════════════════════════════════════ */
.trust-strip {
  padding: 44px 0 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.trust-strip-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

/* ── Marquee infinito ── */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0,
    black 96px,
    black calc(100% - 96px),
    transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0,
    black 96px,
    black calc(100% - 96px),
    transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  padding: 8px 36px;
  animation: marquee-scroll 70s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ── Trust logo item ── */
.trust-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--slate-light);
  opacity: .55;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.trust-logo:hover,
.trust-logo:focus-visible {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.trust-logo img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Logos originalmente blancos: convertir a negro sólido para visibilidad
   sobre fondo claro y mantener coherencia con grayscale del resto */
.trust-logo-dark img {
  filter: brightness(0) saturate(100%);
}
.trust-logo-dark:hover img,
.trust-logo-dark:focus-visible img {
  filter: brightness(0) saturate(100%) opacity(0.85);
}

/* Wordmark fallback (CEDIMAT) */
.trust-logo-wordmark {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  text-align: center;
  filter: none;
  opacity: .55;
}
.trust-logo-wordmark:hover,
.trust-logo-wordmark:focus-visible { opacity: 1; transform: translateY(-2px); filter: none; }
.trust-logo-wordmark .wm-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  line-height: 1;
}
.trust-logo-wordmark .wm-sub {
  font-size: .58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .marquee {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(to right,
      transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
  }
  .marquee-track { gap: 48px; animation-duration: 50s; }
  .trust-logo { height: 44px; }
  .trust-logo img { max-width: 140px; }
  .trust-logo-wordmark .wm-text { font-size: 1.3rem; }
  .trust-logo-wordmark .wm-sub { font-size: .54rem; }
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS — Big numbers minimalistas
   Layout 4-col simétrico, números protagónicos, decoración sutil
   ═══════════════════════════════════════════════════════════════ */
.stats-v2 {
  padding: 88px 0 96px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.stats-v2::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(220, 38, 38, .035) 0%, transparent 60%);
  pointer-events: none;
}
.stats-v2 > .container { position: relative; z-index: 1; }

/* Grid simétrico */
.stats-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Card base ── */
.stat-card {
  --accent: #DC2626;
  --accent-soft: #FEE2E2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

/* Decorative ghost number — background watermark */
.stat-card-ghost {
  position: absolute;
  right: -20px;
  bottom: -45px;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: 0.06;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition), transform .5s cubic-bezier(.4,0,.2,1);
  font-variant-numeric: tabular-nums;
}
.stat-card:hover .stat-card-ghost {
  opacity: 0.11;
  transform: translateY(-4px);
}

/* Decorative corner blob */
.stat-card::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: .6;
  pointer-events: none;
  transition: opacity var(--transition), transform .5s cubic-bezier(.4,0,.2,1);
}
.stat-card:hover::before {
  opacity: 1;
  transform: scale(1.15);
}

/* Accent line at top */
.stat-card::after {
  content: ''; position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .12), 0 8px 16px -8px rgba(15, 23, 42, .06);
  border-color: var(--accent-soft);
}
.stat-card:hover::after { transform: scaleX(1); }

/* Color variants — set --accent and --accent-soft */
.stat-card.red   { --accent: #DC2626; --accent-soft: #FEE2E2; }
.stat-card.amber { --accent: #F59E0B; --accent-soft: #FEF3C7; }
.stat-card.green { --accent: #10B981; --accent-soft: #D1FAE5; }
.stat-card.info  { --accent: #0EA5E9; --accent-soft: #E0F2FE; }

/* ── Header: icon + trend pill ── */
.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 19px; height: 19px; }

/* Trend pill — discreto */
.stat-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.stat-card-trend svg { width: 11px; height: 11px; }
.stat-card-trend .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); }
  50%      { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}

/* ── Big number ── */
.stat-card-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.25rem);
  color: var(--slate);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
  z-index: 2;
}
.stat-card-num .unit {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-left: 2px;
}

/* ── Label + sublabel ── */
.stat-card-label {
  font-size: .92rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}
.stat-card-sub {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: auto;
  padding-top: 16px;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 980px) {
  .stats-v2-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 220px; }
}
@media (max-width: 560px) {
  .stats-v2-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { min-height: 180px; padding: 24px 22px 20px; }
  .stat-card-num { font-size: 2.75rem; }
  .stat-card-ghost { font-size: 9rem; bottom: -35px; }
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE STEPS
   ═══════════════════════════════════════════════════════════════ */
.timeline-section { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.timeline-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  text-align: left;
  transition: all var(--transition);
  z-index: 2;
}
.timeline-container > .timeline-step + .timeline-step { margin-left: -1px; }
.timeline-container > .timeline-step:not(:first-child) { border-left: none; }
.timeline-container > .timeline-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.timeline-container > .timeline-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.timeline-step:hover {
  background: var(--white);
  z-index: 3;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
  border-radius: var(--radius);
}
.timeline-step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--red-light);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  transition: color var(--transition);
}
.timeline-step:hover .timeline-step-num { color: var(--red); }
.timeline-step-icon {
  position: absolute;
  top: 24px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--beige);
  color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.timeline-step:hover .timeline-step-icon { background: var(--red); color: var(--white); }
.timeline-step-icon svg { width: 18px; height: 18px; }
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--slate); letter-spacing: -0.015em; }
.timeline-step p { font-size: .88rem; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 880px) {
  .timeline-container { grid-template-columns: 1fr 1fr; }
  .timeline-container > .timeline-step { margin-left: 0; border-left: 1px solid var(--border) !important; border-radius: var(--radius) !important; }
  .timeline-container { gap: 12px; }
}
@media (max-width: 480px) {
  .timeline-container { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MEDICAL SCENE — Ilustración SVG de transfusión
   ═══════════════════════════════════════════════════════════════ */
.medical-scene {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.medical-scene::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, .06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, .04) 0%, transparent 40%);
  pointer-events: none;
}
.medical-scene > .container { position: relative; z-index: 1; }

.scene-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.scene-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 48px -16px rgba(15, 23, 42, .12);
}

.scene-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Annotations flotantes */
.scene-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  font-size: .76rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: -0.01em;
  white-space: nowrap;
  z-index: 2;
  animation: label-float 4s ease-in-out infinite;
}
.scene-label .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: live-pulse 1.6s ease-in-out infinite;
}
.scene-label .dot.green  { background: var(--success); }
.scene-label .dot.info   { background: var(--info); }
.scene-label svg { width: 13px; height: 13px; color: var(--red); }

.scene-label-1 { top: 14%; right: 8%; animation-delay: 0s; }
.scene-label-2 { top: 8%;  left: 35%; animation-delay: 1.3s; }
.scene-label-3 { bottom: 22%; right: 18%; animation-delay: 2.6s; }
.scene-label-4 { bottom: 14%; left: 8%; animation-delay: 0.6s; }

@keyframes label-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* SVG element animations */
.scene-svg .ecg-monitor-line {
  stroke-dasharray: 180;
  animation: ecg-monitor-anim 2s linear infinite;
}
@keyframes ecg-monitor-anim {
  from { stroke-dashoffset: 180; }
  to   { stroke-dashoffset: -180; }
}
.scene-svg .blood-drop-float { animation: drop-float 3.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.scene-svg .blood-drop-float-2 { animation: drop-float 3.5s ease-in-out infinite 1.2s; transform-origin: center; transform-box: fill-box; }
.scene-svg .blood-drop-float-3 { animation: drop-float 3.5s ease-in-out infinite 2.4s; transform-origin: center; transform-box: fill-box; }
@keyframes drop-float {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(-12px); opacity: .85; }
}
.scene-svg .heart-beat { transform-origin: center; transform-box: fill-box; animation: scene-heartbeat 1.4s ease-in-out infinite; }
@keyframes scene-heartbeat {
  0%, 28%, 70%, 100% { transform: scale(1); }
  14%, 42% { transform: scale(1.1); }
}

@media (max-width: 768px) {
  .scene-wrap { padding: 18px; }
  .scene-label { font-size: .68rem; padding: 5px 9px; }
  .scene-label-1 { top: 6%;  right: 4%; }
  .scene-label-2 { top: 4%;  left: 4%; }
  .scene-label-3 { display: none; }
  .scene-label-4 { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPATIBILITY — 8 cards grid con drops SVG
   ═══════════════════════════════════════════════════════════════ */
.compat-section {
  padding: 88px 0 96px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.compat-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 500px 280px at 50% 100%, rgba(220, 38, 38, .04) 0%, transparent 65%);
  pointer-events: none;
}
.compat-section > .container { position: relative; z-index: 1; }

.compat-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Grid 4x2 */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Card por tipo de sangre ── */
.compat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.compat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -10px rgba(15, 23, 42, .12), 0 4px 12px -6px rgba(15, 23, 42, .06);
  border-color: rgba(220, 38, 38, .25);
}

/* Variantes universales */
.compat-card.universal-donor {
  background: linear-gradient(160deg, #FEF2F2 0%, #FFF 55%);
  border-color: rgba(220, 38, 38, .25);
}
.compat-card.universal-donor::after {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(220, 38, 38, .15) 0%, transparent 65%);
  pointer-events: none;
}
.compat-card.universal-receiver {
  background: linear-gradient(160deg, #ECFDF5 0%, #FFF 55%);
  border-color: rgba(16, 185, 129, .3);
}
.compat-card.universal-receiver::after {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, .14) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Top: drop SVG con tipo de sangre ── */
.compat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  position: relative;
  z-index: 1;
}

.blood-drop {
  position: relative;
  width: 56px;
  height: 62px;
  flex-shrink: 0;
}
.blood-drop svg.drop-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(220, 38, 38, .35));
}
.blood-drop .blood-type-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.universal-receiver .blood-drop svg.drop-shape {
  filter: drop-shadow(0 6px 14px rgba(16, 185, 129, .35));
}

/* Universal badge */
.universal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--red-light);
  color: var(--red-dark);
  border: 1px solid rgba(220, 38, 38, .18);
  white-space: nowrap;
}
.universal-badge svg { width: 10px; height: 10px; }
.universal-receiver .universal-badge {
  background: var(--success-bg);
  color: #047857;
  border-color: rgba(16, 185, 129, .25);
}

/* ── Rows: dona a / recibe de ── */
.compat-row-block {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.compat-row-block:last-child { margin-bottom: 0; }

.compat-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.compat-row-label svg {
  width: 12px;
  height: 12px;
  color: var(--red);
}
.compat-row-label.receive svg { color: var(--info); }

.compat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.compat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--slate);
  font-size: .74rem;
  font-weight: 700;
  border: 1px solid var(--border);
  letter-spacing: -0.015em;
  transition: all var(--transition);
}
.compat-card:hover .compat-chip {
  border-color: var(--border-strong);
}
.compat-chip.all {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-color: var(--red);
  padding: 3px 12px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
}
.universal-receiver .compat-chip.all {
  background: linear-gradient(135deg, var(--success), #047857);
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(16, 185, 129, .25);
}

@media (max-width: 980px) {
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .compat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES — Grid 3x2 con cards coloridas
   ═══════════════════════════════════════════════════════════════ */
.features-v2 {
  padding: 96px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.features-v2::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(220, 38, 38, .03) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 100% 100%, rgba(14, 165, 233, .025) 0%, transparent 55%);
  pointer-events: none;
}
.features-v2 > .container { position: relative; z-index: 1; }

.features-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card-v2 {
  --accent: #DC2626;
  --accent-light: #EF4444;
  --accent-soft: #FEE2E2;
  --accent-glow: rgba(220, 38, 38, .22);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              border-color .25s ease;
  min-height: 232px;
  display: flex;
  flex-direction: column;
}

/* Corner blob decorativo */
.feature-card-v2::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity .3s, transform .55s cubic-bezier(.4,0,.2,1);
}
.feature-card-v2:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

/* Accent line bottom */
.feature-card-v2::after {
  content: ''; position: absolute;
  bottom: 0; left: 28px; right: 28px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.feature-card-v2:hover::after { transform: scaleX(1); }

.feature-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px var(--accent-glow),
              0 8px 16px -8px rgba(15, 23, 42, .08);
  border-color: var(--accent);
}

/* Color variants */
.feature-card-v2.fc-red    { --accent: #DC2626; --accent-light: #EF4444; --accent-soft: #FEE2E2; --accent-glow: rgba(220, 38, 38, .22); }
.feature-card-v2.fc-blue   { --accent: #2563EB; --accent-light: #3B82F6; --accent-soft: #DBEAFE; --accent-glow: rgba(37, 99, 235, .22); }
.feature-card-v2.fc-green  { --accent: #059669; --accent-light: #10B981; --accent-soft: #D1FAE5; --accent-glow: rgba(5, 150, 105, .22); }
.feature-card-v2.fc-purple { --accent: #7C3AED; --accent-light: #8B5CF6; --accent-soft: #EDE9FE; --accent-glow: rgba(124, 58, 237, .22); }
.feature-card-v2.fc-amber  { --accent: #D97706; --accent-light: #F59E0B; --accent-soft: #FEF3C7; --accent-glow: rgba(217, 119, 6, .22); }
.feature-card-v2.fc-cyan   { --accent: #0891B2; --accent-light: #06B6D4; --accent-soft: #CFFAFE; --accent-glow: rgba(8, 145, 178, .22); }

/* Icon container con gradient sólido */
.feature-card-v2 .feature-icon-v2 {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.feature-card-v2 .feature-icon-v2::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35) 0%, transparent 55%);
  pointer-events: none;
}
.feature-card-v2:hover .feature-icon-v2 {
  transform: scale(1.08) rotate(-4deg);
}
.feature-card-v2 .feature-icon-v2 svg {
  width: 26px; height: 26px;
  position: relative;
  z-index: 1;
}

/* Tag/badge decorativo */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.feature-card-v2 h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--slate);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.feature-card-v2 p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .features-v2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-v2-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card-v2 { min-height: auto; padding: 26px 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA BIG
   ═══════════════════════════════════════════════════════════════ */
.cta-v2 {
  background: linear-gradient(135deg, var(--slate) 0%, #0F172A 60%, #1E1B4B 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-v2::before {
  content: ''; position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, .25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 63, 94, .15) 0%, transparent 50%);
  animation: mesh-rotate 30s linear infinite;
}
.cta-v2::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-v2-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-v2 h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.cta-v2 p { color: rgba(255, 255, 255, .7); font-size: 1.1rem; max-width: 540px; margin: 0 auto 32px; line-height: 1.6; }
.cta-v2-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS SYSTEM — Keyframes, entrance effects, micro-interactions
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes anim-fade-up {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes anim-fade-down {
  from { opacity: 0; transform: translate3d(0, -24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes anim-fade-left {
  from { opacity: 0; transform: translate3d(-32px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes anim-fade-right {
  from { opacity: 0; transform: translate3d(32px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes anim-scale-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes anim-scale-bounce {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes anim-blur-in {
  from { opacity: 0; filter: blur(10px); transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; filter: blur(0);    transform: translate3d(0, 0, 0); }
}
@keyframes anim-rotate-in {
  from { opacity: 0; transform: rotate(-6deg) translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: rotate(0) translate3d(0, 0, 0); }
}
@keyframes anim-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes anim-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes anim-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .35); }
  50%      { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
}

/* ── Base classes (set initial state) ── */
.animate-on-scroll,
.animate-fade-up { opacity: 0; transform: translate3d(0, 32px, 0); will-change: opacity, transform; }
.animate-fade-down { opacity: 0; transform: translate3d(0, -24px, 0); will-change: opacity, transform; }
.animate-fade-left { opacity: 0; transform: translate3d(-32px, 0, 0); will-change: opacity, transform; }
.animate-fade-right { opacity: 0; transform: translate3d(32px, 0, 0); will-change: opacity, transform; }
.animate-scale { opacity: 0; transform: scale(.92); will-change: opacity, transform; }
.animate-scale-bounce { opacity: 0; transform: scale(.6); will-change: opacity, transform; }
.animate-blur { opacity: 0; filter: blur(10px); will-change: opacity, filter; }
.animate-rotate { opacity: 0; transform: rotate(-6deg) translate3d(0, 24px, 0); will-change: opacity, transform; }

/* ── Triggered state (animated) ── */
.animate-on-scroll.animated,
.animate-fade-up.animated     { animation: anim-fade-up    .75s cubic-bezier(.34,.7,.3,1) forwards; }
.animate-fade-down.animated   { animation: anim-fade-down  .65s cubic-bezier(.34,.7,.3,1) forwards; }
.animate-fade-left.animated   { animation: anim-fade-left  .75s cubic-bezier(.34,.7,.3,1) forwards; }
.animate-fade-right.animated  { animation: anim-fade-right .75s cubic-bezier(.34,.7,.3,1) forwards; }
.animate-scale.animated       { animation: anim-scale-in   .7s  cubic-bezier(.34,.7,.3,1) forwards; }
.animate-scale-bounce.animated{ animation: anim-scale-bounce .8s cubic-bezier(.34,1.56,.64,1) forwards; }
.animate-blur.animated        { animation: anim-blur-in    .85s cubic-bezier(.34,.7,.3,1) forwards; }
.animate-rotate.animated      { animation: anim-rotate-in  .8s  cubic-bezier(.34,.7,.3,1) forwards; }

/* ── Stagger delays ── */
.animate-on-scroll.delay-1, .animate-fade-up.delay-1, .animate-fade-left.delay-1,
.animate-fade-right.delay-1, .animate-scale.delay-1, .animate-blur.delay-1 { animation-delay: .08s; }
.animate-on-scroll.delay-2, .animate-fade-up.delay-2, .animate-fade-left.delay-2,
.animate-fade-right.delay-2, .animate-scale.delay-2, .animate-blur.delay-2 { animation-delay: .18s; }
.animate-on-scroll.delay-3, .animate-fade-up.delay-3, .animate-fade-left.delay-3,
.animate-fade-right.delay-3, .animate-scale.delay-3, .animate-blur.delay-3 { animation-delay: .28s; }
.animate-on-scroll.delay-4, .animate-fade-up.delay-4, .animate-fade-left.delay-4,
.animate-fade-right.delay-4, .animate-scale.delay-4, .animate-blur.delay-4 { animation-delay: .38s; }
.animate-on-scroll.delay-5, .animate-fade-up.delay-5 { animation-delay: .48s; }
.animate-on-scroll.delay-6, .animate-fade-up.delay-6 { animation-delay: .58s; }

/* ── Stagger automático en grids ── */
.stagger > * { opacity: 0; transform: translate3d(0, 24px, 0); }
.stagger.animated > *:nth-child(1) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .05s forwards; }
.stagger.animated > *:nth-child(2) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .15s forwards; }
.stagger.animated > *:nth-child(3) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .25s forwards; }
.stagger.animated > *:nth-child(4) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .35s forwards; }
.stagger.animated > *:nth-child(5) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .45s forwards; }
.stagger.animated > *:nth-child(6) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .55s forwards; }
.stagger.animated > *:nth-child(7) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .65s forwards; }
.stagger.animated > *:nth-child(8) { animation: anim-fade-up .65s cubic-bezier(.34,.7,.3,1) .75s forwards; }

/* Stagger scale variant */
.stagger-scale.animated > *:nth-child(1) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .05s forwards; }
.stagger-scale.animated > *:nth-child(2) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .12s forwards; }
.stagger-scale.animated > *:nth-child(3) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .19s forwards; }
.stagger-scale.animated > *:nth-child(4) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .26s forwards; }
.stagger-scale.animated > *:nth-child(5) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .33s forwards; }
.stagger-scale.animated > *:nth-child(6) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .40s forwards; }
.stagger-scale.animated > *:nth-child(7) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .47s forwards; }
.stagger-scale.animated > *:nth-child(8) { animation: anim-scale-in .6s cubic-bezier(.34,1.2,.64,1) .54s forwards; }

/* ── HERO ON-LOAD — cascada al cargar la página ── */
.hero-v2 .hero-badge       { opacity: 0; animation: anim-fade-down .7s cubic-bezier(.4,0,.2,1) .15s forwards; }
.hero-v2-text h1           { opacity: 0; animation: anim-fade-up   .9s cubic-bezier(.4,0,.2,1) .25s forwards; }
.hero-v2-text > p.lead     { opacity: 0; animation: anim-fade-up   .8s cubic-bezier(.4,0,.2,1) .4s  forwards; }
.hero-v2-cta               { opacity: 0; animation: anim-fade-up   .75s cubic-bezier(.4,0,.2,1) .55s forwards; }
.hero-v2-stats             { opacity: 0; animation: anim-fade-up   .75s cubic-bezier(.4,0,.2,1) .7s  forwards; }
.hero-v2-visual            { opacity: 0; animation: anim-blur-in   1.1s cubic-bezier(.4,0,.2,1) .45s forwards; }
.float-card.fc-1 {
  opacity: 0;
  animation: anim-scale-bounce .7s cubic-bezier(.34,1.56,.64,1) 1.1s forwards,
             float-card-anim 4s ease-in-out 1.8s infinite;
}
.float-card.fc-2 {
  opacity: 0;
  animation: anim-scale-bounce .7s cubic-bezier(.34,1.56,.64,1) 1.4s forwards,
             float-card-anim 4s ease-in-out 2.1s infinite;
}

/* ── Button ripple effect ── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: translate(-50%, -50%);
  transition: width .5s cubic-bezier(.4,0,.2,1), height .5s cubic-bezier(.4,0,.2,1), opacity .5s;
  opacity: 1;
  pointer-events: none;
}
.btn-primary:active::after {
  width: 300px; height: 300px;
  opacity: 0;
  transition: width 0s, height 0s, opacity 0s;
}

/* ── Smooth section transitions ── */
section { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* ── Link underline animation ── */
.navbar-nav > a {
  position: relative;
}
.navbar-nav > a::after {
  content: ''; position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.navbar-nav > a:hover::after { transform: scaleX(.5); }
.navbar-nav > a.active::after { transform: scaleX(.7); }

/* ── Image / SVG entrance hint ── */
.heart-illustration { animation-delay: 1.5s; }

/* ── Scroll-down indicator (decorative) ── */
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ── Cursor pointer feedback on cards ── */
.stat-card, .feature-card-v2, .compat-card, .timeline-step {
  transition: transform .35s cubic-bezier(.34,.7,.3,1),
              box-shadow .35s cubic-bezier(.34,.7,.3,1),
              border-color .25s ease;
}

/* ── prefers-reduced-motion: stop everything ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track,
  .heart-illustration,
  .blood-drop-float,
  .blood-drop-float-2,
  .blood-drop-float-3,
  .ecg-flow svg,
  .float-card { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   GOTI — Mascota gota de sangre + chat widget
   ═══════════════════════════════════════════════════════════════ */
.goti-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  font-family: var(--font-sans);
}

/* ── Botón flotante con Goti ── */
.goti-button {
  position: relative;
  width: 72px;
  height: 80px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 8px 20px rgba(220, 38, 38, .35));
  transform-origin: center bottom;
  animation: goti-entry 1.1s cubic-bezier(.34, 1.56, .64, 1) 1.8s both,
             goti-breathe 3s ease-in-out 3s infinite;
}
.goti-button:hover { animation-play-state: paused; }
.goti-button:hover .goti-svg { transform: scale(1.08) translateY(-3px); }
.goti-button:active .goti-svg { transform: scale(.95); }

@keyframes goti-entry {
  0%   { opacity: 0; transform: translateY(120px) scale(.3) rotate(-20deg); }
  60%  { opacity: 1; transform: translateY(-12px) scale(1.05) rotate(4deg); }
  80%  { transform: translateY(0) scale(.98) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes goti-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.035) translateY(-2px); }
}
@keyframes goti-wobble {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-4deg); }
  75%      { transform: rotate(4deg); }
}

.goti-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

/* Ojos (manipulables via JS para blink) */
.goti-eye {
  fill: #1E293B;
  transform-origin: center;
  transition: transform .12s ease;
}
.goti-button.blink .goti-eye {
  transform: scaleY(.1);
}

/* Pulse halo */
.goti-pulse {
  position: absolute;
  inset: 8px 0 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, .4) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  animation: goti-pulse 2s ease-in-out 4s infinite;
  z-index: -1;
}
@keyframes goti-pulse {
  0%   { opacity: 0; transform: scale(.8); }
  50%  { opacity: .6; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Notification dot */
.goti-notification {
  position: absolute;
  top: 6px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .4);
  opacity: 0;
  animation: goti-notif-pop .5s cubic-bezier(.34, 1.56, .64, 1) 3s forwards;
}
@keyframes goti-notif-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Speech bubble inicial ── */
.goti-bubble {
  position: absolute;
  bottom: 90px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px 18px 4px 18px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(.9);
  transform-origin: bottom right;
  animation: goti-bubble-in .5s cubic-bezier(.34, 1.56, .64, 1) 3.5s forwards;
  letter-spacing: -0.01em;
}
.goti-bubble::after {
  content: ''; position: absolute;
  bottom: -6px; right: 22px;
  width: 14px; height: 14px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.goti-bubble .emoji {
  display: inline-block;
  margin-right: 4px;
  animation: goti-wobble 1.5s ease-in-out infinite;
}
.goti-bubble.hidden { animation: goti-bubble-out .3s ease forwards; }
@keyframes goti-bubble-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes goti-bubble-out {
  to { opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }
}

/* ── Chat panel ── */
.goti-chat {
  position: absolute;
  bottom: 92px;
  right: 0;
  width: 360px;
  max-height: 540px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1),
              visibility 0s linear .3s;
}
.goti-chat.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1),
              visibility 0s linear 0s;
}

/* Header */
.goti-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.goti-chat-header::after {
  content: ''; position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .08) 0%, transparent 50%);
  pointer-events: none;
}
.goti-chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.goti-chat-avatar svg { width: 28px; height: 28px; }
.goti-chat-info {
  flex: 1;
  position: relative; z-index: 1;
}
.goti-chat-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.goti-chat-status {
  font-size: .75rem;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.goti-chat-status .dot {
  width: 7px; height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .3);
  animation: live-pulse 1.8s ease-in-out infinite;
}
.goti-chat-close {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  position: relative; z-index: 1;
}
.goti-chat-close:hover { background: rgba(255, 255, 255, .25); transform: scale(1.08); }
.goti-chat-close svg { width: 16px; height: 16px; }

/* Messages */
.goti-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
}
.goti-chat-messages::-webkit-scrollbar { width: 6px; }
.goti-chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.goti-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.4;
  animation: goti-msg-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
  letter-spacing: -0.005em;
}
@keyframes goti-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.goti-msg.bot {
  background: var(--white);
  color: var(--slate);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  border: 1px solid var(--border);
}
.goti-msg.user {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
}
.goti-msg.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.goti-msg.typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: goti-typing 1s ease-in-out infinite;
}
.goti-msg.typing span:nth-child(2) { animation-delay: .15s; }
.goti-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes goti-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Quick options */
.goti-chat-options {
  padding: 8px 16px 12px;
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.goti-chip {
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--slate);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
  font-family: inherit;
  letter-spacing: -0.005em;
}
.goti-chip:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, .25);
}

/* Input */
.goti-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.goti-chat-input input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--slate);
  outline: none;
  transition: border-color .2s;
  background: var(--bg);
}
.goti-chat-input input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.goti-chat-send {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, .3);
}
.goti-chat-send:hover { transform: scale(1.08) rotate(-8deg); }
.goti-chat-send:active { transform: scale(.92); }
.goti-chat-send svg { width: 16px; height: 16px; }

/* Footer credit */
.goti-chat-footer {
  text-align: center;
  font-size: .68rem;
  color: var(--text-muted);
  padding: 6px 0 8px;
  background: var(--white);
  letter-spacing: 0.04em;
}
.goti-chat-footer strong { color: var(--red); }

/* Mobile responsive */
@media (max-width: 480px) {
  .goti-widget { bottom: 14px; right: 14px; }
  .goti-bubble { display: none; }
  .goti-chat {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 130px);
    right: 0;
  }
}

/* When chat is open, hide the bubble */
.goti-widget.chat-open .goti-bubble { display: none; }
.goti-widget.chat-open .goti-button { display: none; }

/* ── Utility Classes ───────────────────────────────────────── */
.hidden { display: none !important; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
