/* =========================================================
   Nuskë Vet Center - Stylesheet
   TOC:
   1.  Variables & Themes (Dark/Light)
   2.  Reset & Base Styles
   3.  Layout & Utilities
   4.  Components: Buttons & Forms
   5.  Header & Navigation
   6.  Hero Section
   7.  General Sections & Cards
   8.  Feature: Certifications (AMHVET)
   9.  Feature: Profiles (Doctors)
   10. Feature: Sliders (Testimonials & Generic)
   11. Feature: Health Plans (Wizard)
   12. Feature: Blog (Grid & Article)
   13. Footer
   14. Modals & Overlays (Panic/Telemed)
   ========================================================= */

/* =========================================================
   1. VARIABLES & THEMES
   ========================================================= */
:root {
  /* --- Colors: Light Mode --- */
  --bg: #ffffff;
  --bg2: #f6f8fb;
  --text: #0b1220;
  --muted: #4a5568;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);

  /* --- Brand Colors --- */
  --primary: #0f2f57;
  /* deep navy */
  --primary2: #1e5aa8;
  --danger: #d90429;
  --wa: #1fbf64;

  /* --- Shadows --- */
  --shadow: 0 16px 40px rgba(2, 8, 20, 0.12);
  --shadow2: 0 10px 24px rgba(2, 8, 20, 0.10);

  /* --- Dimensions & Spacing --- */
  --radius: 16px;
  --radius2: 22px;
  --container: 1120px;
  --header-h: 90px;
  --headerH: 90px;
  /* Duplicate var kept for JS compatibility */

  /* --- Interaction --- */
  --focus: 3px solid rgba(30, 90, 168, 0.55);
  --focusOffset: 3px;

  /* --- Scroll Behavior --- */
  scroll-padding-top: var(--headerH);
}

/* Scroll anchors fix */
#agendar,
#equipo,
#servicios,
#contacto {
  scroll-margin-top: var(--headerH);
}

/* --- Dark Mode Variables --- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg2: #0f1a30;
  --text: #edf2f7;
  --muted: #b7c3d2;
  --card: #0e1830;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.50);
  --shadow2: 0 10px 24px rgba(0, 0, 0, 0.42);

  /* Brighter focus for dark mode */
  --focus: 3px solid rgba(140, 190, 255, 0.65);
}

/* --- Dark Mode Specific Overrides --- */

/* Header border fix */
html[data-theme="dark"] .header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  
}

/* Featured Profile Typography in Dark Mode */
html[data-theme="dark"] .profile--featured h3,
html[data-theme="dark"] .profile--featured .profile__role,
html[data-theme="dark"] .profile--featured .list li {
  color: var(--text);
  /* Fallback */
  color: #e2e8f0 !important;
  /* Bluish white */
  transition: color 0.3s ease;
}

html[data-theme="dark"] .profile--featured h3 {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  /* Glow effect */
}

/* Featured Profile Card Background */
html[data-theme="dark"] .profile--featured {
  background: linear-gradient(135deg, #1a2a44, #0f1a30);
  border-color: var(--primary2);
}

/* Blog Inputs in Dark Mode */
html[data-theme="dark"] .blog-search input {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

html[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

/* --- CONTROL DE LOGOS (LIGHT / DARK) --- */

/* Estilos base para ambos logos */
.brand__logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  display: none; /* Ocultamos ambos por defecto para evitar parpadeos */
}

/* ☀️ MODO CLARO (Default): Mostrar solo el logo Light */
html:not([data-theme="dark"]) .brand__logo--light {
  display: block;
}

/* 🌙 MODO OSCURO: Mostrar solo el logo Dark */
html[data-theme="dark"] .brand__logo--dark {
  display: block;
}

/* Asegurar que el contrario siempre esté oculto */
html[data-theme="dark"] .brand__logo--light {
  display: none !important;
}

html:not([data-theme="dark"]) .brand__logo--dark {
  display: none !important;
}


/* =========================================================
   2. RESET & BASE STYLES
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  
  /* ESTA ES LA MAGIA: */
  /* Le dice al navegador que pare 80px antes del objetivo */
  /* Ajusta 80px según la altura de tu menú */
  scroll-padding-top: 85px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* Prohíbe scroll horizontal a nivel raíz */
  width: 100%;
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
  position: relative;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  /* Evita que se pueda scrollear a la derecha al vacío */
  margin: 0;
  padding: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(90px + env(safe-area-inset-top));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

/* Accessibility Utilities */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   3. LAYOUT & UTILITIES
   ========================================================= */
.container {
  /* El secreto: Ancho máximo controlado y márgenes automáticos */
  width: 100%; 
  max-width: 1200px; /* O tu variable var(--container) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px; /* Margen de seguridad interno */
  padding-right: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .92rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.hide-sm {
  display: inline-flex;
}

@media (max-width: 860px) {
  .hide-sm {
    display: none;
  }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb span[aria-hidden="true"] {
  opacity: .75;
}

/* =========================================================
   4. COMPONENTS: BUTTONS & FORMS
   ========================================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, filter .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
  text-align: center;
  line-height: 1.15;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: white;
  box-shadow: var(--shadow2);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow2);
  color: var(--text);
}

.btn--ghost:hover {
  background: color-mix(in oklab, var(--bg2) 85%, transparent);
}

.btn--danger {
  background: linear-gradient(135deg, var(--danger), color-mix(in oklab, var(--danger) 70%, black));
  color: white;
  box-shadow: var(--shadow2);
}

.btn--danger:hover {
  filter: brightness(1.03);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--wa), color-mix(in oklab, var(--wa) 75%, black));
  color: white;
  box-shadow: var(--shadow2);
}

.btn--whatsapp:hover {
  filter: brightness(1.03);
}

/* Forms */
.form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 900;
}

input {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 60%, var(--card));
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
}

input:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.hint {
  color: var(--muted);
  font-size: .9rem;
}

/* Custom Checkbox Container */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.check input {
  margin-top: 3px;
}

/* =========================================================
   5. HEADER & NAVIGATION
   ========================================================= */
   /* --- FIX: Ajuste Inteligente del Header Desktop --- */
@media (min-width: 901px) and (max-width: 1300px) {
  /* Si la pantalla es mediana (Laptops), reducelos espacios */
  
  .nav__menu {
    gap: 12px; /* Reduce espacio entre links (antes era 22px) */
  }

  .nav__link {
    font-size: 14px; /* Letra un poco más pequeña */
    padding: 8px 6px;
  }

  .header__inner {
    gap: 10px; /* Acerca el logo y los botones al menú */
  }
  
  /* Opcional: Ocultar texto de botones secundarios para ganar espacio */
  .header__actions .btn--ghost span:not([aria-hidden]) {
    display: none; /* Oculta "Llamar", deja solo el ícono 📞 */
  }
  .header__actions .btn--ghost span[aria-hidden] {
    margin: 0;
  }
}
/* --- ESTILO DE LUJO PARA BOTÓN URGENCIAS --- */
.urgent-item {
  position: relative;
  top: -12px; /* Lo subimos para que rompa la línea */
  color: #dc3545 !important; /* Texto rojo */
  font-weight: 800;
  overflow: visible; /* Permitir que se salga de la caja */
}

.urgent-item .icon-container {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dc3545, #b91c1c); /* Rojo degradado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  border: 4px solid var(--card); /* Borde del color de fondo para separar */
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4); /* Sombra roja brillante */
  margin-bottom: 2px;
  animation: pulse-mini 2s infinite;
}

/* Animación suave para llamar la atención sin molestar */
@keyframes pulse-mini {
  0% { transform: scale(1); box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 4px 15px rgba(220, 53, 69, 0.6); }
  100% { transform: scale(1); box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4); }
}

/* Ajuste para que el footer no quede tapado por la barra */
@media (max-width: 768px) {
  body { padding-bottom: 80px; }
}
/* --- FIX CRÍTICO: Limpieza de Header Móvil --- */
@media (max-width: 900px) {

  /* 1. Ocultar elementos que saturan el header en móvil */
  .header__actions .lang,
  /* Ocultar selector ES/EN */
  .header__actions .icon-btn,
  /* Ocultar botón Tema (Luna) */
  .header__actions .btn {
    /* Ocultar botón Llamar/Cita del header */
    display: none !important;
  }

  /* 2. Dejar solo el menú hamburguesa visible y alineado */
  .header__actions {
    margin-left: 0;
    /* Quitar margen auto para que no empuje */
  }

  .nav__toggle {
    display: flex;
    /* Asegurar que el botón menú se vea */
    margin-left: auto;
    /* Empujarlo a la derecha */
  }

  /* 3. Ajustar el Logo para que no sea gigante */
  .brand__logo {
    height: 32px;
    /* Más pequeño para dar espacio */
    width: auto;
  }

  .header__inner {
    padding: 10px 0;
    /* Menos altura */
  }
}

.header {
  position: fixed; /* Antes era sticky */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 99999; /* Z-index alto para estar sobre todo */
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  transform: none; /* Fuerza renderizado por GPU */
  will-change: transform;
  -webkit-transform: translateZ(0); /* Soporte iOS antiguo */
  padding-top: env(safe-area-inset-top);
}

.header .btn--primary {
  min-width: 140px;
}

.header .btn--primary.hide-sm {
  white-space: nowrap;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  min-height: 78px;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent !important;
}

.brand__logo {
  display: block;
  height: 64px;
  /* Default desktop */
  width: auto;
  max-width: 220px;
  background: transparent !important;
}

/* Logo Sizing Media Queries */
@media (min-width: 900px) {
  .brand__logo {
    height: 56px;
  }
}

@media (max-width: 480px) {
  .brand__logo {
    height: 38px;
    max-width: 160px;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex: 1;
  justify-content: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  background: transparent;
}

.nav__link {
  text-decoration: none;
  font-weight: 600;
  color: color-mix(in oklab, var(--text) 85%, var(--muted));
  padding: 10px 10px;
  border-radius: 12px;
}

.nav__link:hover {
  background: color-mix(in oklab, var(--bg2) 80%, transparent);
}

.nav__link:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

/* Header Actions (Right side) */
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Switcher */
.lang {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow2);
}

.icon-btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

/* Mobile Menu Logic & Styles */
/* --- Controles Integrados en Menú Hamburguesa --- */

/* Por defecto ocultos (Desktop) */
.nav__mobile-actions {
  display: none;
}

/* Solo visibles en Móvil (dentro del menú abierto) */
@media (max-width: 900px) {
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border); /* Línea separadora */
    width: 100%;
  }

  .nav__mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Ajuste para que los botones se vean bien dentro del menú */
  .nav__mobile-actions .btn--primary {
    justify-content: center;
    padding: 14px;
  }
}
/* --- Barra Móvil Estilo App --- */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  /* Usa el color de fondo de tus tarjetas */
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 24px;
  /* Un poco más de padding abajo por los iPhones nuevos */
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  gap: 4px;
  width: 100%;
}

.mobile-nav__icon {
  font-size: 20px;
}

/* Resaltar WhatsApp */
.mobile-nav__item--wa {
  color: var(--wa);
}

/* Ocultar en escritorio (Pantallas mayores a 768px) */
.hide-md {
  display: flex;
}

@media (min-width: 769px) {

  .mobile-nav,
  .hide-md {
    display: none !important;
  }
}

/* Ocultar en desktop */
@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.nav__toggle {
  display: none;
  /* hidden on desktop */
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
}

.nav__toggle:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.nav__burger {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px,
    linear-gradient(var(--text), var(--text)) 0 50% / 100% 2px,
    linear-gradient(var(--text), var(--text)) 0 100% / 100% 2px;
  background-repeat: no-repeat;
  opacity: .9;
}

/* Desktop Dark Mode Nav Fix */
html[data-theme="dark"] .nav__link {
  color: #ffffff !important;
}

@media (min-width: 861px) {
  html[data-theme="dark"] .nav__menu {
    background: transparent;
    border: 0;
  }
}

/* Mobile Breakpoint (Combined Logic) */
@media (max-width: 920px) {
  .nav {
    justify-content: flex-start;
  }

  .nav__menu {
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    right: 0;
    top: 56px;
    width: min(360px, calc(100vw - 32px));
    display: none;
    /* hidden by default */
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav__menu.is-open {
    display: flex;
    z-index: 1000;
  }

  .nav__link {
    color: var(--text) !important;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  /* Dark mode mobile menu specific */
  html[data-theme="dark"] .nav__menu {
    background: var(--bg2);
    border: 1px solid var(--border);
  }

  /* Additional safety for dark mode mobile borders */
  html[data-theme="dark"] .nav__menu.is-open,
  html[data-theme="dark"] .nav__menu[aria-expanded="true"] {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(10, 20, 40, .92);
    padding: 12px;
    border-radius: 14px;
  }
}

/* =========================================================
   6. HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 18px;
  background:
    radial-gradient(900px 500px at 20% -10%, color-mix(in oklab, var(--primary2) 20%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, color-mix(in oklab, var(--danger) 18%, transparent), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-weight: 900;
  color: color-mix(in oklab, var(--primary2) 70%, var(--muted));
  letter-spacing: .3px;
  margin: 0 0 10px;
}
/* Títulos con Poppins para más impacto */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; /* Negrita */
}
h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 65ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in oklab, var(--card) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
}

.badge-24h {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 170, 255, 0.12);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 14px;
}

.badge__icon {
  font-size: 1.1rem;
}

.hero__media {
  display: grid;
  gap: 12px;
}



.hero__logo {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius2);
  background: color-mix(in oklab, var(--card) 84%, transparent);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero__card h3 {
  margin: 0 0 6px;
}

/* =========================================================
   7. GENERAL SECTIONS & CARDS
   ========================================================= */
.section {
  padding: 46px 0;
}

.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: 16px;
}

.section__head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.section__head p {
  margin: 0;
  max-width: 75ch;
}

/* Generic Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards--featured {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Cards */
@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cards--featured {
    grid-template-columns: 1fr;
  }
}
/* Aplica esto a tus tarjetas de servicio y blog */
.card, .panel {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .panel:hover {
  transform: translateY(-5px); /* Se levanta 5 pixeles */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* La sombra crece */
  cursor: pointer;
}

/* Opcional: Que el botón dentro de la tarjeta también brille */
.card:hover .btn--primary {
  transform: scale(1.05);
}
/* --- FORZAR ANIMACIÓN DE TARJETAS --- */

/* 1. Estado Normal (Quieto) */
.card {
  /* Preparamos la animación */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Aseguramos que la tarjeta tenga fondo y bordes definidos para que se note */
  position: relative; 
  z-index: 1;
}

/* 2. Estado Hover (Cuando pasas el mouse) */
.card:hover {
  /* Se levanta 8 pixeles */
  transform: translateY(-8px) !important; 
  /* La sombra crece para dar efecto 3D */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
  /* Cambia el cursor a manita */
  cursor: pointer;
  /* Opcional: Cambia ligeramente el color del borde */
  border-color: var(--primary);
}

/* 3. Extra: Que el icono también haga un pequeño salto */
.card:hover .card__icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}
/* Hacer que el botón cubra toda la tarjeta invisiblemente */
.card__actions .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Card Styling */
.card,
.profile,
.panel,
.quote,
.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.card__icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.card h3 {
  margin: 8px 0 6px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.card__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: color-mix(in oklab, var(--text) 86%, var(--muted));
}

.list li {
  margin: 6px 0;
}

.services-more {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* CTA Band (Banner) */
.cta-band {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.cta-band h3 {
  margin: 0 0 4px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1;
  }
}

/* Panel Highlight */
.panel--highlight {
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary2) 14%, var(--card)), color-mix(in oklab, var(--danger) 8%, var(--card)));
}

.note {
  margin-top: 14px;
  background: color-mix(in oklab, var(--card) 86%, transparent);
  border: 1px dashed color-mix(in oklab, var(--primary2) 40%, var(--border));
  border-radius: var(--radius2);
  padding: 14px 16px;
}

.steps {
  margin: 0;
  padding-left: 18px;
}

.steps li {
  margin: 8px 0;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.link {
  color: color-mix(in oklab, var(--primary2) 70%, var(--text));
  text-decoration: none;
  font-weight: 800;
}

.link:hover {
  text-decoration: underline;
}

.link:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

/* Services Page Extras */
.services-h2 {
  margin: 22px 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: color-mix(in oklab, var(--text) 88%, var(--muted));
}

.services-tools {
  margin: 14px 0 22px;
  display: grid;
  gap: 10px;
}

.services-tools__search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.services-tools__search input[type="search"] {
  flex: 1;
  min-height: 46px;
  min-width: 220px;
}

.services-tools__clear {
  padding: 12px 14px;
}

.services-tools__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--filter {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.chip--filter:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.chip--filter[aria-pressed="true"] {
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  border-color: color-mix(in oklab, var(--primary2) 28%, var(--border));
}

/* =========================================================
   8. FEATURE: CERTIFICATIONS (AMHVET)
   ========================================================= */
.section--cert {
  padding: 56px 0;
}

.section--cert .eyebrow {
  display: inline-block;
  background: rgba(29, 63, 104, .08);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Layout Consolidado */
.section--cert .cert {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.cert__desc {
  max-width: 62ch;
}

.cert-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cert-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cert__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-top: 10px;
}

.cert__badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.cert__logoWrap {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow2);
  text-decoration: none;
}

.cert__logo {
  height: 22px;
  width: auto;
  display: block;
}

.cert__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cert__media {
  margin: 0;
}

.cert__img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at center, #fff 60%, rgba(255, 255, 255, .85));
  padding: 12px;
}

/* Dark mode overrides for Certs */
[data-theme="dark"] .cert__img {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .section--cert {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

@media (max-width: 900px) {
  .section--cert .cert {
    grid-template-columns: 1fr;
  }

  .cert__img {
    max-width: 520px;
    margin-inline: auto;
  }
}

/* =========================================================
   9. FEATURE: PROFILES (DOCTORS)
   ========================================================= */
.profile--featured h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.profile__avatar {
  font-size: 2rem;
}

.profile__role {
  margin: 4px 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.profile__photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.doctor-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow2);
  background-color: var(--card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile:hover .doctor-photo {
  transform: scale(1.05);
  border-color: var(--primary2);
}

/* =========================================================
   10. FEATURE: SLIDERS (TESTIMONIALS & GENERIC)
   ========================================================= */

/* --- Slider A: Testimonials (.t-slider) --- */
.t-slider {
  position: relative;
}

.t-slider__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.t-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  color: var(--text);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform .08s ease, filter .12s ease;
}

.t-btn:hover {
  filter: brightness(1.08);
}

.t-btn:active {
  transform: translateY(1px);
}

.t-btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.t-dots {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  opacity: .9;
}

.t-dot[aria-current="true"] {
  background: color-mix(in oklab, var(--primary2) 70%, var(--primary));
  border-color: color-mix(in oklab, var(--primary2) 55%, var(--border));
}

.t-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.t-track::-webkit-scrollbar {
  display: none;
}

.t-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(260px, 32vw, 380px);
}

@media (max-width: 900px) {
  .t-slider__controls {
    margin-top: 10px;
  }

  .t-slide {
    width: min(86vw, 420px);
  }
}

/* Quote Cards inside Slider */
.quote blockquote {
  margin: 0 0 10px;
  font-weight: 700;
}

.quote__name {
  font-weight: 900;
  display: block;
}

.quote__meta {
  color: var(--muted);
  font-size: .95rem;
}

/* Stars Rating */
.stars {
  --starSize: 16px;
  --starGap: 4px;
  display: inline-flex;
  gap: var(--starGap);
  align-items: center;
  margin: 0 0 10px;
}

.star {
  width: var(--starSize);
  height: var(--starSize);
  display: inline-block;
  opacity: .95;
}

.star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star--on {
  color: #f5c451;
  filter: drop-shadow(0 2px 6px rgba(245, 196, 81, .18));
}

.star--off {
  color: rgba(255, 255, 255, .25);
}

[data-theme="light"] .star--off {
  color: rgba(0, 0, 0, .18);
}


/* --- Slider B: Generic (.slider) --- */
.slider {
  position: relative;
}

.slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.slider__controls {
  display: flex;
  gap: 10px;
}

.slider__btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  color: var(--text);
  box-shadow: var(--shadow2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.slider__btn:hover {
  filter: brightness(1.05);
}

.slider__btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius2);
}

.slider__viewport:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.slider__viewport::-webkit-scrollbar {
  height: 10px;
}

.slider__viewport::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--primary2) 30%, var(--border));
  border-radius: 999px;
}

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3);
  /* 3 cards desktop */
  gap: 14px;
  padding: 2px;
}

.slider__slide {
  scroll-snap-align: start;
  height: 100%;
}

.slider__dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary2) 30%, var(--border));
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: color-mix(in oklab, var(--primary2) 75%, var(--primary));
  border-color: color-mix(in oklab, var(--primary2) 70%, var(--primary));
}

@media (max-width: 980px) {
  .slider__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

@media (max-width: 640px) {
  .slider__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider__track {
    grid-auto-columns: 92%;
  }
}

/* =========================================================
   11. FEATURE: HEALTH PLANS (WIZARD)
   ========================================================= */
.plans-wizard {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-step {
  transition: opacity 0.3s ease;
}

.wizard-step.is-hidden {
  display: none;
  opacity: 0;
}

.selection-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius2);
  padding: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.selection-card:hover,
.selection-card.is-active {
  border-color: var(--primary2);
  background: color-mix(in oklab, var(--primary2) 10%, var(--card));
  transform: translateY(-4px);
}

.selection-card:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.selection-card[aria-pressed="true"] {
  border-color: var(--primary2);
  background: color-mix(in oklab, var(--primary2) 12%, var(--card));
  transform: translateY(-2px);
}

.selection-icon {
  font-size: 3rem;
}

.selection-sub {
  font-weight: 700;
  opacity: .9;
}

.plans-layout {
  align-items: start;
}

.plans-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.plan-card {
  border: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card--featured {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 15px 0;
}

@media (max-width: 980px) {
  .plans-display {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   12. FEATURE: BLOG (GRID & ARTICLE)
   ========================================================= */
.blog-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px;
}

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Reusing .chip from header but with specific overrides */
.chip {
  border: 1px solid var(--border, rgba(0, 0, 0, .12));
  background: rgba(255, 255, 255, .7);
  color: inherit;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  background: rgba(24, 120, 255, .14);
  border-color: rgba(24, 120, 255, .35);
}

.blog-search {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 420px;
}

.blog-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(0, 0, 0, .12));
  background: rgba(255, 255, 255, .85);
  outline: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  border: 1px solid var(--border, rgba(0, 0, 0, .12));
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}

html[data-theme="dark"] .post-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .12);
}

.post-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.post-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-card__emoji {
  font-size: 20px;
  line-height: 1;
}

.post-card__meta {
  font-size: 12px;
  opacity: .8;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.post-card__title {
  font-size: 18px;
  margin: 8px 0 8px;
  line-height: 1.25;
}

.post-card__excerpt {
  margin: 0 0 12px;
}

.post-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  font-weight: 900;
  font-size: .86rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary2) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary2) 24%, var(--border));
}

.post__link {
  text-decoration: none;
}

.post__link:hover {
  text-decoration: underline;
}

.post__link:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Article Page Specifics */
.article-shell {
  max-width: 920px;
  margin: 0 auto;
}

.article-hero {
  border: 1px solid var(--border, rgba(0, 0, 0, .12));
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .10);
}

html[data-theme="dark"] .article-hero {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}

.article-hero h1 {
  margin: 6px 0 10px;
}

.article-body {
  margin-top: 14px;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.article-cta {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 120, 255, .28);
  background: rgba(24, 120, 255, .10);
  padding: 14px;
}

html[data-theme="dark"] .article-cta {
  border-color: rgba(24, 120, 255, .35);
  background: rgba(24, 120, 255, .12);
}

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

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.footer {
  padding: 46px 0 24px;
  background: color-mix(in oklab, var(--bg2) 70%, var(--bg));
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__title {
  margin: 0 0 6px;
}

.footer__text {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 70ch;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.social {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow2);
}

.social__link:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focusOffset);
}

.footer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.map {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.map__title {
  margin: 0 0 10px;
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
}

.footer__bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   14. MODALS & OVERLAYS
   ========================================================= */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(217, 4, 41, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
  }
}

/* Panic Floating Button */
.panic {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}

/* Botón de Pánico (Ajuste Redondo) */
.panic__btn {
  position: relative;
  /* Necesario para que el latido salga de aquí */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  /* Más ancho para que se vea bien */
  border-radius: 999px;
  /* Pill shape */
  border: none;
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
  cursor: pointer;
  z-index: 1;
  /* Asegura que el texto esté arriba */
}

/* El latido (Anillo) */
.panic__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  /* Hereda la forma redonda perfectamente */
  background: rgba(217, 4, 41, 0.6);
  z-index: -1;
  /* Se va para atrás */
  animation: pulse-round 2s infinite;
}

@keyframes pulse-round {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.4);
    /* Crece el anillo */
    opacity: 0;
    /* Se desvanece */
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.panic__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .55);
  outline-offset: 2px;
}

.panic__icon {
  font-size: 1.2rem;
}

.panic__text {
  font-weight: 900;
}

/* Modal General Styles */
.modal {
  overflow: auto;
  padding: 16px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  inset: 0;
  display: none;
  z-index: 99999;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__overlay {
  z-index: 99998; /* Justo debajo del panel del modal */
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.modal__panel {
  z-index: 99999; /* Asegura que el panel también esté arriba */
  position: relative; /* Necesario para que el z-index funcione */
  margin: auto;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  width: min(520px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.modal__footer {
  margin-top: 10px;
}

/* Modal Responsive Fix */
@media (max-height: 720px) {
  .modal {
    padding: 12px;
  }

  .modal__panel {
    max-height: calc(100dvh - 24px);
  }
}
/* --- Toast Notification --- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-weight: 600; font-size: 14px;
  opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10000; text-align: center; width: max-content; max-width: 90%;
}
.toast.is-visible {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* --- Triage Interactivo (Ajustes de Integración) --- */

.triage-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow2);
  transition: all 0.3s ease;
  min-height: 350px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* Centrado vertical del contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px; /* Altura mínima para que no salte al cambiar preguntas */
}

/* Cuando está integrado en la grid, que ocupe todo el ancho de su celda */
.triage-card--integrated {
  max-width: 100%; 
  margin: 0;
  height: 100%; /* Igualar altura con el panel de la izquierda */
  border-color: color-mix(in oklab, var(--primary2) 30%, var(--border)); /* Borde sutil azulado */
}

/* Ajuste para modo oscuro */
html[data-theme="dark"] .triage-card {
  background: linear-gradient(145deg, var(--card), rgba(255,255,255,0.03));
}

/* Botón pequeño secundario dentro del triage */
.btn--small {
  padding: 8px 12px;
  font-size: 0.85rem;
}
/* --- Animaciones Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonar animaciones en grids (opcional) */
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   FAQ SECTION (ACCORDION)
   ========================================================= */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto; /* Centrado */
}

/* El contenedor de cada pregunta */
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow2);
}

details.faq-item:hover {
  border-color: var(--primary2);
}

details.faq-item[open] {
  background: color-mix(in oklab, var(--bg2) 50%, var(--card));
  border-color: var(--primary2);
}

/* El título (Pregunta) */
summary.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  list-style: none; /* Quita el triángulo por defecto */
  user-select: none;
}

/* Ocultar triángulo default en Chrome/Safari */
summary.faq-summary::-webkit-details-marker {
  display: none;
}

/* Icono Personalizado (+) */
summary.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary2);
  transition: transform 0.2s ease;
}

/* Rotar icono cuando está abierto */
details[open] summary.faq-summary::after {
  transform: rotate(45deg); /* Se convierte en una X */
  content: '+'; 
}

/* La respuesta */
.faq-answer {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding-right: 20px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text); /* Color del icono */
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow2);
  transition: all 0.2s ease;
}

.social__link:hover {
  background: var(--bg2);
  color: var(--primary2); /* Cambia a azul al pasar el mouse */
  transform: translateY(-2px);
}

/* Esto asegura que el SVG tenga el tamaño correcto */
.social__link svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* --- Galería Instalaciones --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 20px 15px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Mosaico */
.item-1 { grid-column: span 2; grid-row: span 2; } /* Imagen grande */
.item-2 { grid-column: span 2; }
.item-3 { grid-column: span 1; }
.item-4 { grid-column: span 1; }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .item-1, .item-2, .item-3, .item-4 { grid-column: span 1; grid-row: span 1; height: 250px; }
  .gallery-overlay { opacity: 1; transform: translateY(0); } /* Siempre visible en móvil */
}

/* --- Tabla Comparativa --- */
.comparison-table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.comp-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.comp-row:last-child { border-bottom: none; }

.comp-header {
  background: var(--bg2);
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-col.highlight {
  color: var(--primary2);
  background: rgba(30, 90, 168, 0.05);
  margin: -14px 0;
  padding: 14px 0;
  height: calc(100% + 28px);
  display: flex; align-items: center; justify-content: center;
}

.comp-col:not(.highlight) { font-size: 0.95rem; }

@media (max-width: 600px) {
  .comp-row { grid-template-columns: 1fr 1fr; font-size: 0.85rem; }
  .comp-col:nth-child(2) { display: none; } /* Ocultar columna "individual" en móviles muy pequeños */
}
/* =========================================================
   PROMO CARD MEJORADA (Diseño Limpio y Compacto)
   ========================================================= */
.promo-card {
  margin-top: 24px;
  /* Fondo blanco limpio con ligera transparencia */
  background: rgba(255, 255, 255, 0.95);
  /* Borde sutil y acento de color a la izquierda */
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 5px solid #eab308; /* Acento amarillo Nuskë */
  border-radius: 12px;
  padding: 12px 16px; /* Espacio compacto */

  /* Alineación horizontal perfecta */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Sombra elegante, no pesada */
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Icono */
.promo-card__icon {
  font-size: 1.8rem;
  flex-shrink: 0; /* Asegura que el icono no se aplaste */
}

/* Contenedor de Texto */
.promo-card__info {
  flex: 1; /* Ocupa el espacio central */
  min-width: 0; /* Evita que el texto rompa el diseño */
}

.promo-card__badge {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: #eab308; /* Texto dorado */
  margin-bottom: 2px;
}

.promo-card__text {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem; /* Tamaño cómodo */
  line-height: 1.2;
  color: var(--primary); /* Texto azul oscuro (legible sobre blanco) */
}

/* --- SOLUCIÓN AL BOTÓN LARGO --- */
/* Apuntamos tanto al ID como a la clase para asegurar */
#promoBtn, 
.promo-card .btn--white,
.promo-card .btn--sm { 
  background-color: var(--primary); /* Botón azul sólido para contraste */
  color: white;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  
  /* MAGIA PARA EL TAMAÑO: */
  white-space: nowrap;    /* El texto no baja de línea */
  flex-shrink: 0;         /* El botón no se aplasta */
  width: auto !important; /* ¡IMPORTANTE! Fuerza el tamaño al contenido */
  box-shadow: 0 4px 10px rgba(15, 47, 87, 0.15);
}

#promoBtn:hover,
.promo-card .btn--white:hover {
  background-color: var(--primary-dark, #0a2344);
  transform: scale(1.05);
  color: white;
}

/* --- MÓVIL (Sin amontonar) --- */
@media (max-width: 480px) {
  .promo-card {
    /* En pantallas muy chicas, mantenemos la fila pero reducimos padding */
    padding: 10px 12px; 
    gap: 10px;
  }
  
  .promo-card__icon {
    font-size: 1.5rem; /* Icono un poco más chico */
  }
  
  .promo-card__text {
    font-size: 0.85rem; /* Texto ligeramente más chico */
  }
  
  /* Aseguramos que el botón NO se estire en celular */
  #promoBtn, .promo-card .btn--white {
    width: auto !important; 
    padding: 6px 12px;
  }
}

/* --- Chips para el Modal de Doctores --- */
#bioTags .chip {
  background: var(--bg2);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

/* Efecto Hover en las tarjetas de equipo para invitar al clic */
.profile[data-action="openBio"] {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile[data-action="openBio"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Estilos Calculadora y Etapas --- */

/* Ajuste de layout para que queden misma altura */
.calculator-layout {
  align-items: stretch;
}

.label-small {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

/* Resultado de la calculadora */
.calc-result {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.calc-result__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary2);
  line-height: 1;
  margin-top: 5px;
}

/* Panel Derecho (Lista de Etapas) */
.stages-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stages-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stage-icon {
  background: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stage-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.stage-item p {
  margin: 2px 0 0;
  line-height: 1.3;
}

/* Modo oscuro ajustes */
html[data-theme="dark"] .stage-icon {
  background: var(--bg2);
}

/* --- Barra de Estadísticas (Social Proof) --- */
.stats-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 40px; /* Espacio antes del slider */
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-item {
  flex: 1;
  padding: 0 10px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
  font-feature-settings: "tnum"; /* Números alineados */
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* En celulares, poner uno debajo del otro */
@media (max-width: 600px) {
  .stats-panel {
    flex-direction: column;
    gap: 20px;
  }
  .stat-divider {
    width: 50%;
    height: 1px;
  }
}
/* --- Efecto Máquina de Escribir --- */
.txt-type {
  color: var(--primary2); /* Color destacado (ej: tu azul claro o naranja) */
  font-weight: 900;
  border-right: 0.1em solid #777; /* El cursor */
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

/* Animación del cursor */
@keyframes blink {
  0% { border-color: transparent }
  50% { border-color: var(--primary) } /* Usa tu color principal aquí */
  100% { border-color: transparent }
}

/* Ajuste para que se vea bien en celular */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; } /* Ajusta si queda muy grande */
}

/* Abierto Live*/
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e; /* Verde por defecto */
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg); /* Se adapta al modo oscuro/claro */
  z-index: 99999; /* Por encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 150px;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Spinner circular opcional */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--bg2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animaciones */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }

/* Clase para ocultarlo */
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

/* =========================================================
   DISEÑO DE EQUIPO: 2 COLUMNAS (Para que quepa todo)
   ========================================================= */

/* --- 1. BASE (ESCRITORIO - PANTALLAS GRANDES) --- */
/* Forzamos 2 columnas en lugar de 4. Es la única forma de que se vea bien */
@media (min-width: 901px) {
  .grid--4 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 Columnas amplias */
    gap: 30px !important;
  }

  .profile {
    display: flex !important;
    flex-direction: row !important; /* Horizontal: Foto izq, Texto der */
    align-items: center !important;
    position: relative !important;
    padding: 24px 60px 24px 24px !important; /* 60px a la derecha para el botón */
    text-align: left !important;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    min-height: 240px; /* Altura mínima para uniformidad */
    box-shadow: var(--shadow2);
  }

  /* La Foto (Izquierda) */
  .profile__photo-container {
    flex: 0 0 130px !important; /* Ancho fijo, no se aplasta */
    height: 130px !important;
    margin: 0 25px 0 0 !important; /* Margen derecho */
    width: 130px !important;
  }

  .doctor-photo {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%; border: 4px solid var(--primary);
  }

  /* Textos (Centro) */
  .profile h3 {
    font-size: 1.4rem !important;
    margin: 0 0 5px 0 !important;
    text-align: left !important;
    line-height: 1.2;
  }

  .profile .profile__role {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
  }

  .profile .list {
    text-align: left !important;
    padding-left: 15px !important;
    margin: 0 !important;
    font-size: 0.9rem;
  }

  /* El Botón Lateral (Derecha) */
  .profile .btn, .profile button {
    position: absolute !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 48px !important; /* Ancho de la barra */
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Magia para texto vertical */
    writing-mode: vertical-rl !important;
    transform: rotate(180deg) !important;
    
    border-radius: 0 var(--radius2) var(--radius2) 0 !important; /* Curva solo a la derecha */
    background: var(--bg2) !important;
    color: var(--primary) !important;
    border: none !important;
    border-left: 1px solid var(--border) !important;
    display: flex !important; justify-content: center; align-items: center;
    white-space: nowrap;
  }
  
  .profile:hover .btn {
    background: var(--primary) !important;
    color: white !important;
  }
}

/* --- 2. MÓVIL (PANTALLAS PEQUEÑAS) --- */
@media (max-width: 900px) {
  /* 1 Columna */
  .grid--4 {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }

  /* Tarjeta Vertical */
  .profile {
    display: flex !important;
    flex-direction: column !important; /* Vertical: Foto arriba */
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    padding: 30px 20px 70px 20px !important; /* Espacio abajo para botón */
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
  }

  /* Foto Centrada */
  .profile__photo-container {
    margin: 0 auto 15px auto !important;
    width: 140px !important;
    height: 140px !important;
  }
  
  .doctor-photo {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%; border: 4px solid var(--primary);
  }

  /* Textos Centrados */
  .profile h3 {
    text-align: center !important;
    font-size: 1.3rem !important;
    width: 100%;
  }
  
  .profile .list {
    text-align: left !important;
    display: inline-block; /* Para que la lista se centre pero los bullets queden izq */
  }

  /* Botón Inferior Horizontal */
  .profile .btn, .profile button {
    position: absolute !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important; top: auto !important;
    width: 100% !important;
    height: 50px !important;
    
    writing-mode: horizontal-tb !important; /* Texto normal horizontal */
    transform: none !important;
    
    border-radius: 0 0 var(--radius2) var(--radius2) !important; /* Curva abajo */
    background: var(--bg2) !important;
    color: var(--primary) !important;
    border-top: 1px solid var(--border) !important;
    border-left: none !important;
  }
}

.update-toast {
  display: none; /* Se muestra con JS */
  
  /* 1. Posición en la pantalla (Centrado Abajo) */
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;

  /* 2. Alineación del Contenido (Flexbox) */
  display: flex;            /* Activa el modo flexible */
  align-items: center;      /* Centra verticalmente texto y botón */
  justify-content: center;  /* Centra horizontalmente */
  gap: 12px;                /* Espacio entre el texto y el botón */

  /* 3. Estilos Visuales */
  background-color: #1e293b; /* Color oscuro elegante */
  color: white;
  padding: 10px 16px 10px 20px; /* Un poco más de padding a la izq para el emoji */
  border-radius: 50px;      /* Completamente redondo (Pill shape) */
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;

  /* 4. Seguridad Móvil */
  width: max-content;       /* Que se ajuste al tamaño del contenido */
  max-width: 90%;           /* Que no se salga de la pantalla en celulares pequeños */
}

.update-toast.show {
  display: flex !important; /* Solo se muestra cuando JS agrega esta clase */
}

.update-toast button {
  background: var(--primary2, #0ea5e9); /* Usa tu color azul o un default */
  border: none;
  padding: 6px 16px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 20px;
  transition: transform 0.2s;
  /* margin-left: 10px;  <-- YA NO ES NECESARIO (lo hace el gap de arriba) */
}

.update-toast button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* =========================
   iOS INSTALL PROMPT
   ========================= */
.ios-prompt {
  position: fixed;
  bottom: 20px; /* Pegado abajo, cerca del botón compartir */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: var(--card); /* Usa tu color de tarjeta */
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 999999;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  animation: slideUp 0.5s ease-out;
}

.ios-prompt__content p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.ios-prompt__content .small {
  font-size: 0.85rem;
  color: var(--muted);
}

.ios-prompt button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 5px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Modo oscuro */
html[data-theme="dark"] .ios-prompt {
  background: #1e293b;
  border-color: #334155;
}

/* =========================
   MEJORA CERTIFICACIÓN
   ========================= */

/* 1. Layout y Espaciado */
.cert {
  align-items: center !important; /* Centrado vertical perfecto */
}

.badge-verified {
  font-size: 0.75rem;
  background: #d1fae5;
  color: #065f46;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 10px;
  vertical-align: middle;
}

/* 2. Lista de Beneficios (Checklist) */
.cert__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.check-icon {
  background: var(--primary2);
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* 3. La Imagen Heroica (El Sello) */
.cert__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* El fondo "Blob" difuminado detrás del sello */
.cert__blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cert__img {
  position: relative;
  z-index: 2;
  max-width: 320px !important;
  width: 100%; /* Asegura que responda al ancho */
  aspect-ratio: 1 / 1; /* Obliga a que sea cuadrada para que el círculo sea perfecto */
  object-fit: contain; /* Evita que el sello se deforme */
  
  /* EL TRUCO DE MAGIA: */
  border-radius: 50%; /* Recorta las esquinas blancas y lo hace redondo */
  background: white; /* Rellena de blanco por si la imagen es transparente */
  border: 4px solid white; /* Un borde blanco para que resalte en modo oscuro */
  
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

/* Opcional: Hace que brille un poco al pasar el mouse */
.cert__media:hover .cert__img {
  transform: scale(1.02) rotate(2deg);
}
/* Animación suave de flotación */
.floating {
  animation: float 6s ease-in-out infinite;
}

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

/* Caption tipo "Etiqueta" */
.cert__caption {
  margin-top: -20px;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

/* =========================
   SECCIÓN VIDEO CONSULTA
   ========================= */

/* Ajuste del Grid para centrado vertical */
.tele-layout {
  align-items: center;
  gap: 40px;
}

/* --- LÍNEA DE TIEMPO (Izquierda) --- */
.tele-heading {
  font-size: 1.8rem;
  margin-bottom: 25px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tele-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Línea conectora vertical */
.tele-steps::before {
  content: '';
  position: absolute;
  left: 20px; /* Centrado con el icono */
  top: 10px;
  bottom: 30px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.tele-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.tele-step__icon {
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow2);
  flex-shrink: 0;
}

.tele-step__content strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.tele-step__content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- EL SMARTPHONE (Derecha) --- */
.tele-mockup {
  display: flex;
  justify-content: center;
  perspective: 1000px; /* Para efecto 3D sutil */
}

.phone-frame {
  width: 320px; /* Ancho típico de celular */
  background: var(--card); /* Fondo negro o blanco según tema */
  border: 8px solid #2c3e50; /* Marco del celular */
  border-radius: 35px;
  padding: 20px;
  position: relative;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.15), /* Sombra larga */
    inset 0 0 0 2px rgba(255,255,255,0.1); /* Brillo interno */
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* La muesca (Notch) del iPhone */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #2c3e50;
  border-radius: 0 0 15px 15px;
  z-index: 10;
}

/* Efecto Hover: El celular flota */
.tele-mockup:hover .phone-frame {
  transform: translateY(-10px) rotateX(2deg);
  border-color: var(--primary); /* El borde se ilumina */
}

/* --- TRIAGE DENTRO DEL TELÉFONO --- */
/* Forzamos que la tarjeta de triage se adapte al marco */
#triageBox {
  border: none !important;
  box-shadow: none !important;
  padding: 20px 5px !important;
  background: transparent !important;
  min-height: 400px; /* Altura de pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animación Radar (Latido) */
.triage-radar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.triage-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.radar-circle {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(217, 4, 41, 0.2); /* Color danger muy suave */
  border-radius: 50%;
  animation: radar-ping 2s infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Botón con pulso para llamar la atención */
.btn--pulse {
  animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 47, 87, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 47, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 47, 87, 0); }
}

/* Ajuste Móvil */
@media (max-width: 768px) {
  .phone-frame {
    width: 100%;
    max-width: 340px;
    border-width: 4px; /* Borde más fino en móvil */
  }
  
  .tele-steps::before {
    display: none; /* Quitamos línea en móvil */
  }
  
  .tele-step {
    background: var(--bg2);
    padding: 15px;
    border-radius: 12px;
  }
}

/* =========================
   HERO 110% UPGRADE
   ========================= */

/* 1. Fondo más dinámico */
.hero {
  position: relative;
  overflow: hidden; /* Para que el blob no se salga */
  /* Un gradiente muy sutil de fondo */
  background: radial-gradient(circle at top right, rgba(15, 47, 87, 0.03) 0%, transparent 40%);
}

.hero__bg-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* 2. Tipografía Mejorada */
.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsivo */
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.5em; /* Reserva espacio vertical para 2 líneas y media */
}
.hero__title .txt-type, 
.hero__title .txt {
  font-family: inherit;
  font-size: inherit;   /* Hereda el tamaño del H1 */
  font-weight: inherit; /* Hereda el grosor (800) */
  line-height: inherit;
  color: inherit;
  display: inline-block; /* Se comporta como texto normal */
}

.highlight-text {
  color: var(--primary2); /* Tu azul brillante */
  position: relative;
  display: inline-block;
}

/* Subrayado creativo para la palabra cambiante */
.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 209, 102, 0.4); /* Amarillo suave */
  z-index: -1;
  border-radius: 4px;
}

/* 3. Columna Derecha (Imagen y Elementos Flotantes) */
.image-wrapper {
  aspect-ratio: 500 / 600; 
  position: relative;
  width: 100%;
  max-width: 500px; /* O el tamaño máximo que quieras */
  display: block;   /* Asegura que no sea inline */
}

.hero__img {
  width: 100%;
  height: auto;
  /* Máscara orgánica para que la foto no sea cuadrada aburrida */
  border-radius: 40px 40px 40px 40px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  /* Opcional: Si usas una foto sin fondo, quita el border-radius y box-shadow */
}

/* 4. Glassmorphism Card (Contacto) */
.glass-card {
  background: rgba(255, 255, 255, 0.85); /* Blanco semi-transparente */
  backdrop-filter: blur(12px); /* Efecto vidrio */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  
  /* Posición flotante sobre la imagen */
  position: absolute;
  bottom: 40px;
  left: -40px; /* Se sale un poco a la izquierda para dinamismo */
  width: 260px;
  animation: float 5s ease-in-out infinite;
}

/* Ajuste Dark Mode para Glass */
html[data-theme="dark"] .glass-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}

.pulse-green {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

/* 5. Floating Badge (Corazón) */
.floating-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s; /* Para que no floten igual */
}

/* Animación de flotar */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Ajustes Móvil */
@media (max-width: 900px) {
  .hero__title { font-size: 2.5rem; }
  
  .glass-card {
    position: relative; /* Ya no flota encima en móvil, se pone debajo */
    left: 0; bottom: 0;
    width: 100%;
    margin-top: -30px; /* Un pequeño traslape */
  }
  
  .floating-badge {
    top: 10px; right: 10px;
  }
  
  .hero__bg-blob { width: 300px; height: 300px; }
}

/* Animación de entrada */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =========================
   FOOTER 110%
   ========================= */

/* Estructura Base */
.footer {
  background: var(--bg2); /* Un tono ligeramente diferente al body */
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas balanceadas */
  gap: 60px;
  align-items: start;
}

/* --- Columna Izquierda (Marca) --- */
.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* Iconos de contacto circulares */
.icon-circle {
  width: 28px; height: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.contact li {
  display: flex; align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.link-hover {
  text-decoration: none;
  transition: color 0.2s;
}
.link-hover:hover { color: var(--primary); }

/* Enlaces Rápidos (Mini Grid) */
.footer__links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.link-sm {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.link-sm:hover { color: var(--primary); text-decoration: underline; }


/* --- Columna Derecha (Acciones) --- */
/* Mapa Mejorado */
.map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--card); /* Marco blanco */
  height: 200px;
}

.map-card iframe {
  width: 100%; height: 100%; border: 0; object-fit: cover;
}

.map-overlay-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  background: white;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
}

/* TARJETA "FAST PASS" (Check-in) */
.fast-pass-card {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  box-shadow: 0 10px 25px rgba(15, 47, 87, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.fast-pass-card:hover { transform: translateY(-3px); }

/* Decoración de fondo */
.fast-pass-card::before {
  content: ''; position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.fp-icon { font-size: 1.8rem; margin-right: 15px; }

.fp-content strong { display: block; font-size: 1rem; line-height: 1.2; }
.fp-content p { margin: 2px 0 0; font-size: 0.8rem; opacity: 0.9; }

.fast-pass-card .btn { white-space: nowrap; margin-left: 10px; }


/* --- Bottom Bar --- */
.footer__bottom {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.copyright {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.separator { margin: 0 8px; opacity: 0.5; }

/* Responsive */
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .copyright { flex-direction: column; text-align: center; justify-content: center; }
}

/* =========================
   MEJORA TARJETAS SERVICIOS
   ========================= */

/* Destacar tarjeta de Grooming */
.card--highlight {
  border: 2px solid var(--primary2); /* Borde azul bonito */
  background: linear-gradient(to bottom, var(--card), color-mix(in srgb, var(--primary2) 5%, transparent));
  position: relative;
  overflow: hidden;
}

/* Etiqueta flotante */
.card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-bottom-left-radius: 12px;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
}

/* Ajuste para pilas de botones pequeños */
.stack-small {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.btn--sm {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Asegurar que las tarjetas tengan altura uniforme */
.cards {
  align-items: stretch;
}
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card__actions {
  margin-top: auto; /* Empuja los botones al fondo */
}
/* =========================
   SERVICIOS 2.0 (Diseño Premium)
   ========================= */

/* 1. La Tarjeta Base */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px; /* Bordes más redondeados */
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Efecto Hover: Elevación suave */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: color-mix(in srgb, var(--primary2) 30%, transparent);
}

/* 2. Burbuja de Icono (Mejora visual enorme) */
.service-icon-box {
  width: 54px;
  height: 54px;
  background: var(--bg2); /* Fondo suave */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: color-mix(in srgb, var(--primary2) 10%, white);
}

/* Variaciones de color para iconos */
.bg-danger-light { background: #fee2e2; color: #dc2626; }
.bg-grooming { background: #e0f2fe; color: #0284c7; }
.border-danger { border-bottom: 4px solid #dc2626; } /* Línea roja abajo para urgencias */

/* 3. Tipografía y Contenido */
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card__content {
  flex-grow: 1; /* Empuja el footer hacia abajo */
}

/* 4. Enlaces y Botones */
.card__footer {
  margin-top: auto;
  border-top: 1px solid var(--border); /* Línea sutil separadora */
  padding-top: 15px;
}

/* Link estilo flecha (Minimalista) */
.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 5px; /* La flecha se mueve a la derecha */
  text-decoration: underline;
}

/* 5. FIX ESPECÍFICO GROOMING (Botones peleados) */
.card--grooming {
  border: 2px solid var(--primary2); /* Destacado */
  background: linear-gradient(to bottom, var(--card), #f8fafc);
}

.stack-spaced {
  display: flex;
  flex-direction: column;
  gap: 15px; /* ¡MUCHO ESPACIO ENTRE BOTONES! */
  border-top: none; /* Quitamos la línea para que se vea limpio */
}

.link-secondary {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 5px; /* Aumenta el área de toque del texto */
  cursor: pointer;
}

.link-secondary:hover { color: var(--primary); }

/* Ajuste Dark Mode */
html[data-theme="dark"] .bg-danger-light { background: #450a0a; color: #f87171; }
html[data-theme="dark"] .bg-grooming { background: #0c4a6e; color: #38bdf8; }
html[data-theme="dark"] .card--grooming { background: var(--card); }

/* =========================
   PORTAL DEL PROPIETARIO (Estilo Tech)
   ========================= */

/* Fondo de la sección con un patrón sutil */
.section--portal {
  position: relative;
  background-color: var(--bg2); /* Un gris muy suave */
  overflow: hidden;
}

.portal-bg-pattern {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 20px 20px; /* Puntitos estilo tech */
  pointer-events: none;
}

/* Layout de Tarjetas */
.portal-layout {
  align-items: stretch; /* Que ambas midan lo mismo de alto */
  gap: 40px;
}

/* Estilo Base de las Tarjetas */
.portal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
}

.portal-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.portal-icon-box {
  width: 50px; height: 50px;
  background: #e0f2fe; color: var(--primary2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bg-green-light { background: #dcfce7; color: #16a34a; }

/* --- Tarjeta IZQUIERDA (Login) --- */
.portal-card--login {
  border-top: 5px solid var(--primary); /* Borde superior azul */
}

/* Campo de contraseña falso (Solo visual) */
.fake-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin-bottom: 20px;
  gap: 8px;
}

.fake-dot {
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.5;
}

.fake-cursor {
  font-weight: 100;
  color: var(--primary2);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

.btn--shadow {
  box-shadow: 0 8px 20px rgba(15, 47, 87, 0.2);
}

.portal-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.tiny { font-size: 0.8rem; }

/* --- Tarjeta DERECHA (Info) --- */
.portal-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-benefits-list li {
  display: flex; gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Caja de Activación (WhatsApp) */
.portal-activation-box {
  background: linear-gradient(to right, #f0fdf4, #dcfce7); /* Gradiente verde muy suave */
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid #bbf7d0;
  margin-top: auto;
}

/* Dark Mode Tweaks */
html[data-theme="dark"] .fake-input { background: #0f172a; }
html[data-theme="dark"] .portal-activation-box { 
  background: rgba(22, 163, 74, 0.1); 
  border-color: rgba(22, 163, 74, 0.3); 
}
html[data-theme="dark"] .portal-bg-pattern { opacity: 0.1; }
/* =========================================================
   6. HERO SECTION (MAESTRO REFACTORIZADO)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  /* Fondo vibrante */
  background: radial-gradient(circle at top right, rgba(15, 47, 87, 0.03) 0%, transparent 40%);
  padding-bottom: 40px; /* Espacio abajo */
}

/* BLOB DECORATIVO (Fondo azul difuso) */
.hero__bg-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* CONTENEDOR INTERNO (GRID ESCRITORIO) */
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Texto ancho, Foto normal */
  align-items: center; /* Centrado vertical */
  gap: 40px;
  min-height: 85vh; /* Altura mínima elegante para PC */
  padding-top: 20px; /* Pequeño respiro arriba */
  position: relative;
  z-index: 1;
}

/* TEXTOS */
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  min-height: 2.6em; /* Reserva espacio para 2 líneas completas siempre */
  display: flex;     /* Ayuda a mantener la estructura firme */
  flex-direction: column;
  justify-content: center;
}
.hero__title .txt-type, 
.hero__title .txt {
  font-size: inherit; /* Hereda el tamaño exacto del H1 */
  line-height: inherit; /* Hereda la altura de línea */
  font-weight: inherit;
  display: inline-block;
  min-height: 1.2em; /* Altura mínima para la línea cambiante */
}

/* El cursor que parpadea */
.txt-type {
  border-right: 0.1em solid #eab308; /* Color amarillo Nuskë */
  padding-right: 5px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 25px;
  max-width: 90%;
}

/* IMAGEN Y ELEMENTOS FLOTANTES */
.hero__media {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: block;
}

/* TARJETA FLOTANTE (Glass) */
.glass-card {
  position: absolute;
  bottom: 40px;
  left: -40px;
  width: 260px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

/* BADGE FLOTANTE */
.floating-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite 1s;
  z-index: 2;
}

/* ---------------------------------------------------------
   MÓVIL / TABLET (CORRECCIÓN CON MARGEN NEGATIVO)
   --------------------------------------------------------- */
@media (max-width: 900px) {
  
  .hero {
    /* 1. EL TRUCO: Subimos la sección 90px para anular el padding del body */
    margin-top: -90px !important; 
    
    /* Reiniciamos el padding del contenedor */
    padding-top: 0 !important; 
    overflow: visible; 
    min-height: auto !important;
    height: auto !important;
  }

  .hero__inner {
    /* Flex vertical para apilar elementos */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    
    /* 2. COMPENSACIÓN INTERNA */
    /* Como subimos la caja, empujamos el contenido abajo para que no quede tapado por el menú */
    /* 110px = 70px de menú + 40px de aire */
    padding-top: 110px !important; 
    
    padding-bottom: 40px;
    gap: 30px;
    min-height: auto !important;
    height: auto !important;
  }

  /* TEXTO PRIMERO */
  .hero__content {
    order: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero__title {
    font-size: 2.2rem; 
    line-height: 1.15;
    margin-top: 0 !important;
  }

  /* IMAGEN DESPUÉS */
  .hero__media {
    order: 1;
    margin-top: 0 !important;
  }

  /* AJUSTES FLOTANTES EN MÓVIL */
  .glass-card {
    position: relative !important; /* Ya no flota encima */
    left: auto !important; bottom: auto !important;
    width: 100% !important;
    margin-top: -20px !important;
    animation: none !important;
  }

  .floating-badge {
    top: 0 !important; right: 0 !important;
    position: absolute !important;
  }

  .hero__bg-blob {
    display: none !important;
  }
}

/* FIX PARA PWA (IPHONE NOTCH) */
/* Si es app instalada, sumamos un poco más de espacio */
@media all and (display-mode: standalone) and (max-width: 900px) {
  .hero__inner {
    padding-top: calc(110px + env(safe-area-inset-top)) !important;
  }
}

/* FIX PARA PWA (APP INSTALADA) */
@media all and (display-mode: standalone) and (max-width: 900px) {
  .hero__inner {
    /* Sumar el área segura del notch al padding base */
    padding-top: calc(85px + env(safe-area-inset-top)) !important;
  }
}
/* =========================
   CURSOR PERSONALIZADO (HUELLITA)
   ========================= */

@media (min-width: 992px) {
  /* Aplicar a todo el cuerpo de la página */
  body, html {
    /* 1. url: dónde está la imagen
      2. 16 16: es el "punto caliente" (hotspot). 
         Esto hace que el clic sea justo en el centro de la huella.
      3. auto: el respaldo por si falla la imagen.
    */
    cursor: url('assets/cursor.svg') 16 16, auto;
  }

  /* Opcional: Cuando pasas sobre un enlace o botón */
  /* Si quieres que cambie a la manita normal, borra este bloque.
     Si quieres que la huella se ponga de otro color (ej. roja), avísame. */
  a, button, .btn, .card, select, input[type="submit"] {
    cursor: pointer; /* Regresa a la manita clásica para indicar "clic" */
  }
}
/* Color especial para Grooming (Azul cielo/fresco) */
.grooming-pass {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border: 1px solid #7dd3fc;
}
.grooming-pass .fp-icon {
  background: rgba(255,255,255,0.2);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.grooming-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px var(--shadow2);
  text-decoration: none;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grooming-bubble:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.grooming-emoji {
  font-size: 1.8rem;
  background: #e0f2fe;
  width: 45px; height: 45px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
/* Ajuste extra para que el emoji no brille tanto en modo oscuro */
html[data-theme="dark"] .grooming-emoji {
  background: rgba(255, 255, 255, 0.1); /* Fondo sutil */
}
.grooming-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--text);
}

/* Ocultar en móvil para no tapar la barra inferior */
@media (max-width: 768px) {
  .grooming-bubble { display: none; }
}

/* --- ESTILOS DEL TRIAGE VETERINARIO --- */
.triage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.triage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
}

.triage-list .icon {
  font-size: 1.2rem;
}

.step-progress {
  height: 4px;
  background: #eee;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 2px;
  overflow: hidden;
}

.step-progress div {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.result-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px auto;
}

.bg-danger-light { background-color: #fee2e2; }
.bg-warning-light { background-color: #fef3c7; }
.bg-green-light { background-color: #dcfce7; }
.text-danger { color: var(--danger); }

/* Animación simple de entrada */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CARRUSEL 3D MEDICOS --- */

/* Ajustes del Swiper */
.swiper {
  min-height: 400%;
  contain: content;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 40px;
  overflow: visible !important;
}

.swiper-slide {
  contain: layout style;           /* Aísla el cálculo del navegador */
  backface-visibility: hidden;     /* Evita parpadeos en animaciones 3D */
  transform: translate3d(0,0,0);   /* Activa aceleración por hardware */
  box-sizing: border-box;
}
/* Usamos la clase .mySwiper para que solo afecte al equipo */
.mySwiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;       /* Ancho fijo necesario para el efecto 3D */
  height: 420px;
  will-change: transform, opacity;
  
  /* El efecto de desenfoque */
  filter: blur(2px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Slide activo del equipo (sin blur) */
.mySwiper .swiper-slide-active {
  filter: blur(0px);
  opacity: 1;
  z-index: 10;
}
/* Tarjeta Activa (La del centro) */
.swiper-slide-active {
  filter: blur(0);
  opacity: 1;
  z-index: 10;
}

/* --- MÓVIL (Celulares) --- */
@media (max-width: 768px) {
  .swiper-slide {
    width: 260px; /* Un poco más angostas para que quepan */
    height: 380px; /* Un poco más bajas */
  }
  
  /* Ajustar texto en móvil */
  .front-caption h3 { font-size: 1.1rem; }
  .back-content { padding: 20px; }
  .back-content h3 { font-size: 1.1rem; }
  .badge-role { font-size: 0.6rem; }
  .specs-list li { font-size: 0.8rem; }
}

/* Efecto FLIP CARD (Contenedor 3D) */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 100%;
  perspective: 1000px; /* Profundidad 3D */
  cursor: pointer;
}

/* El objeto que gira */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
  transform-style: preserve-3d;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Estado Girado (Clase que agrega JS) */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Caras de la tarjeta */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* --- FRENTE (FOTO) --- */
.flip-card-front {
  background-color: #fff;
  color: black;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

/* Efecto zoom suave en la foto */
.flip-card:hover .flip-card-front img {
  transform: scale(1.05);
}

/* Gradiente y Texto sobre la foto */
.front-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 47, 87, 0.95), transparent);
  color: white;
  padding: 60px 20px 20px 20px;
  text-align: left;
}

.front-caption h3 { margin: 0; font-size: 1.2rem; }
.front-caption p { margin: 0; font-size: 0.9rem; opacity: 0.9; }
.tap-hint { 
  font-size: 0.75rem; 
  background: rgba(255,255,255,0.2); 
  padding: 4px 10px; 
  border-radius: 20px; 
  margin-top: 10px; 
  display: inline-block;
  backdrop-filter: blur(4px);
}

/* --- REVERSO (INFO) --- */
.flip-card-back {
  background: linear-gradient(145deg, #0f2f57, #1e4070); /* Azul Nuskë */
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.1);
}

.back-content {
  text-align: left;
}

.back-content h3 { font-size: 1.3rem; margin-bottom: 5px; }
.badge-role {
  background: #ef4444; /* Rojo Nuskë */
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.back-content p { font-size: 0.9rem; line-height: 1.5; opacity: 0.9; margin-bottom: 15px; }

.specs-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.specs-list li { font-size: 0.85rem; margin-bottom: 5px; color: #cbd5e1; }

.btn--white {
  background: white;
  color: #0f2f57;
  font-weight: 700;
  width: 100%;
  border: none;
}
.btn--white:hover { background: #f1f5f9; }

/* Paginación del Swiper */
.swiper-pagination-bullet-active { background: #0f2f57 !important; }

/* Estilos para el nuevo Swiper de Testimonios */
.testimonial-slide {
  height: auto; /* Importante para que se adapte al texto */
  display: flex;
}
.testimonialsSwiper .swiper-slide {
  width: 100%;        /* Ocupa todo el espacio disponible */
  height: auto;       /* Altura flexible según el texto */
  filter: none !important;    /* IMPORTANTE: Quita el blur heredado */
  opacity: 1 !important;      /* IMPORTANTE: Quita la transparencia */
  transform: none !important; /* Evita giros raros */
}
.testimonial-slide .quote {
  background: var(--bg-card, #fff);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  width: 100%;
  text-align: left;
  margin: 10px 0;
  /* Altura mínima para que no salten si uno tiene más texto que otro */
  min-height: 200px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-slide blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 15px 0;
  font-style: italic;
  color: var(--text-main, #333);
}

/* =========================================
   CARRUSEL NATIVO (CSS SCROLL SNAP) - CORREGIDO
   ========================================= */

/* El Contenedor (La pista de deslizamiento) */
.snap-slider {
  display: flex;
  gap: 24px;              /* Espacio óptimo entre tarjetas */
  overflow-x: auto;       /* Habilita el scroll horizontal */
  scroll-snap-type: x mandatory; /* Magnetismo al soltar */
  
  /* --- SOLUCIÓN AL CORTE DE SOMBRAS --- */
  padding: 40px 24px 60px 24px; /* Mucho padding abajo para que quepan las sombras y botones */
  margin: 0 -24px;        /* Margen negativo para que el scroll llegue al borde de la pantalla */
  
  /* Ocultar barras de scroll */
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none;
}

.snap-slider::-webkit-scrollbar {
  display: none;
}

/* --- LAS TARJETAS (SLIDES) --- */
.snap-slide {
  scroll-snap-align: center; /* Se centra al soltar */
  position: relative;
  
  /* TAMAÑO ESCRITORIO (Fijo, para que no se estiren) */
  flex: 0 0 320px;
  width: 320px;
}

/* TAMAÑO MÓVIL (Responsivo) */
@media (max-width: 768px) {
  .snap-slide {
    /* En celular ocupan el 85% para que se vea un pedazo de la siguiente */
    flex: 0 0 85%; 
    width: 85%;
  }
}

/* --- ESTILO TESTIMONIOS (Tipo Google Reviews) --- */
.testimonial-card {
  background: var(--card); /* Fondo blanco/oscuro según tema */
  border: 1px solid var(--border);
  border-radius: 24px; /* Bordes muy redondeados */
  padding: 32px 24px;
  
  /* Sombra suave y elegante */
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  
  /* Altura y distribución */
  height: 100%;
  min-height: 280px; /* Altura mínima uniforme */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrado horizontal */
  text-align: center;  /* Texto centrado */
  justify-content: space-between;
  
  transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary2);
}

/* Estrellas */
.testimonial-card .stars {
  color: #eab308;
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: block;
}

/* Texto de la cita */
.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

/* Autor */
.testimonial-card figcaption {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  width: 100%;
}

.testimonial-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
}

/* Ajuste para las tarjetas de Equipo Médico dentro del Slider */
.snap-slide .team-card,
.snap-slide .flip-card {
  height: 420px; /* Altura fija para doctores */
  width: 100%;
}

/* --- ESTILO EQUIPO MÉDICO (Sin efecto 3D pesado) --- */
.team-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover sutil en PC */
.team-card:hover {
  transform: translateY(-5px);
}


/* =========================================
   EFECTO DE VOLTEO 3D (FLIP CARD)
   ========================================= */

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 420px;
  perspective: 1000px; /* Esto da la profundidad 3D */
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s; /* Velocidad del giro */
  transform-style: preserve-3d;
}

/* Esta clase se agrega con el click del HTML */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Frente de la tarjeta */
.flip-card-front {
  background-color: #fff;
  color: black;
}

/* Reverso de la tarjeta */
.flip-card-back {
  background-color: var(--primary, #0f2f57); /* Color azul Nuskë */
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Contenido del Reverso */
.back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}