/* ══════════════════════════════════════════════════════════════════
   BSCare Red Médica – main.css
   Colores oficiales: Azul Royal #003A8C | Rojo #CC1A1A | Blanco
   ══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────── */
/* Fuentes: se cargan con <link> en el <head> de cada página (más rápido que @import) */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --blue-deep:    #002F7A;
  --blue-primary: #003A8C;
  --blue-mid:     #1A5CC8;
  --blue-light:   #2E7FEB;
  --blue-pale:    #E8F0FC;
  --blue-bg:      #F0F5FF;

  --red-primary:  #CC1A1A;
  --red-dark:     #A81515;
  --red-light:    #E53535;
  --red-pale:     #FFF0F0;

  --white:        #FFFFFF;
  --off-white:    #F8FAFF;
  --gray-50:      #F9FAFB;
  --gray-100:     #EEF2F7;
  --gray-200:     #D4DCED;
  --gray-300:     #9AAABF;
  --gray-500:     #6B7EA0;
  --gray-700:     #374860;
  --gray-900:     #1A2438;

  /* Gradients */
  --grad-blue:    linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
  --grad-blue-r:  linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-primary) 100%);
  --grad-brand:   linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  --grad-red:     linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 100%);
  --grad-hero:    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-primary) 45%, var(--blue-mid) 100%);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,58,140,0.12);
  --shadow-md:    0 6px 24px rgba(0,58,140,0.18);
  --shadow-lg:    0 12px 40px rgba(0,58,140,0.22);
  --shadow-xl:    0 20px 60px rgba(0,58,140,0.28);
  --shadow-card:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-red:   0 6px 24px rgba(204,26,26,0.25);
  --shadow-blue:  0 6px 24px rgba(0,58,140,0.3);

  /* Typography */
  --font-main:    'Poppins', sans-serif;
  --font-display: 'Nunito', sans-serif;

  /* Layout */
  --nav-h:        76px;
  --max-w:        1280px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Transitions */
  --t-fast:       0.15s ease;
  --t-med:        0.3s ease;
  --t-slow:       0.5s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip; /* evita scroll lateral sin romper position: sticky */
}

/* Texto justificado ("cuadrado"): lo aplica main.js a los párrafos largos alineados a la izquierda */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Nombres y marcas resaltados nunca se cortan con guion */
.text-justify strong, .text-justify b, .text-justify a { -webkit-hyphens: manual; hyphens: manual; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════
   NAVBAR (Fondo blanco en todas las páginas & Centrado con el logo)
   ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #ffffff !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 20px rgba(0,58,140,0.08);
  transition: box-shadow var(--t-med);
}
.navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0,58,140,0.12);
}

.nav-container {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 2.25rem;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 0;
  transition: transform var(--t-fast);
}
.nav-logo:hover {
  transform: scale(1.03);
}
.logo-img { height: 48px; width: auto; object-fit: contain; display: block; }

/* Nav links (centrados junto con el logo) */
.nav-links {
  display: flex; align-items: center; gap: 0.35rem;
  margin-left: 0;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--red-primary);
  border-radius: 2px;
  transition: width var(--t-med);
}
.nav-link:hover { color: var(--blue-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--blue-primary); font-weight: 700; }

.nav-cta {
  /* Botón VALUA: colores de su logo (azul + rojo) */
  margin-left: 0;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.45rem 1.3rem 0.45rem 0.45rem;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 55%, var(--red-primary) 100%);
  color: #fff;
  font-size: 0.875rem; font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(22,54,95,0.3);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(204,26,26,0.35);
  filter: brightness(1.08);
  color: #fff;
}
/* Logo de VALUA dentro de un círculo blanco para que contraste con el degradado */
.nav-cta-logo {
  width: 30px; height: 30px; flex-shrink: 0;
  padding: 3px; border-radius: 50%;
  background: #fff; object-fit: contain;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--blue-primary);
  z-index: 999;
  flex-direction: column;
  padding: 2rem;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem; padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu .nav-link:hover, .mobile-menu .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.08);
}
.mobile-menu .nav-link::after { display: none; }
.mobile-menu .nav-cta {
  margin-top: 1rem; justify-content: center; padding: 1rem; font-size: 1rem;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   PAGE HERO (generic)
   ══════════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(204,26,26,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Encabezado con carrusel de fotos de fondo (Nosotros, Huellas…) */
.page-hero.page-hero--photos h1 span { color: #fff; font-style: italic; }
.page-hero-slides { position: absolute; inset: 0; z-index: 0; }
.page-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.page-hero-slide.active { opacity: 1; transform: scale(1); }
/* Capa azul de la marca para que el texto siempre se lea */
.page-hero-slides::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 30, 90, 0.55) 0%, rgba(0, 30, 90, 0.2) 70%),
    linear-gradient(135deg, rgba(0, 32, 96, 0.82) 0%, rgba(0, 58, 140, 0.6) 55%, rgba(26, 92, 200, 0.72) 100%);
}
.page-hero--photos::before, .page-hero--photos::after { z-index: 0; }
.page-hero-dots {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.1rem;
  display: flex; justify-content: center; gap: 0.45rem;
}
.page-hero-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, 0.45); cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.page-hero-dots button.active { width: 26px; background: #fff; }
.page-hero p.page-hero-italic { font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .page-hero-slide { transition: opacity 0.6s ease; transform: none; }
}

.page-hero-content {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1.2rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero h1 span { color: #FFD700; }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  max-width: 520px; margin: 0 auto;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════════════════════════ */
.section {
  padding: 5.5rem 2rem;
}
.section-alt { background: var(--blue-bg); }
.section-dark {
  background: var(--grad-hero);
  color: #fff;
}

.container {
  max-width: var(--max-w); margin: 0 auto;
}

.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.35rem 1rem;
  background: var(--blue-pale);
  border: 1px solid rgba(0,58,140,0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
  color: var(--blue-primary);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.section-tag.red {
  background: var(--red-pale);
  border-color: rgba(204,26,26,0.2);
  color: var(--red-primary);
}
.section-tag.solid {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--gray-900);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue-primary); }
.section-title .red { color: var(--red-primary); }
.section-dark .section-title { color: #fff; }
.section-dark .section-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.section-subtitle {
  font-size: 1rem; color: var(--gray-500);
  max-width: 540px; margin: 0 auto;
  line-height: 1.75;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8rem 2rem;
  font-family: var(--font-main);
  font-size: 0.9rem; font-weight: 700;
  border-radius: var(--radius-full);
  border: none; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover { box-shadow: 0 10px 32px rgba(0,58,140,0.4); }

.btn-red {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-red:hover { box-shadow: 0 10px 32px rgba(204,26,26,0.4); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  box-shadow: none;
}
.btn-outline-blue:hover { background: var(--blue-pale); }

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.22); border-color: #fff; }

.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-blue { background: var(--blue-pale); color: var(--blue-primary); }
.badge-red  { background: var(--red-pale);  color: var(--red-primary); }
.badge-white { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Reveal animations ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.42s; }
.delay-5 { transition-delay: 0.52s; }
.delay-6 { transition-delay: 0.62s; }

/* Botón WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  border: 1.5px solid #20BD5A;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--t-fast);
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  border-color: #17A34F;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  /* Fondo médico: foto con capa azul de la marca + línea roja que lo separa de la última sección */
  background:
    linear-gradient(100deg, rgba(0,35,92,0.96) 0%, rgba(0,47,122,0.9) 55%, rgba(0,47,122,0.8) 100%),
    url(../images/footer-bg.jpg) center 30% / cover no-repeat,
    var(--blue-deep);
  border-top: 4px solid var(--red-primary);
  color: rgba(255,255,255,0.8);
}

.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.75rem;
}
.footer-logo img { height: 44px; }
.footer-tagline {
  font-size: 0.875rem; line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  max-width: 260px;
}
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.social-btn:hover {
  background: var(--red-primary);
  color: #fff; border-color: var(--red-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff; margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red-primary);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
/* "Páginas" en dos columnas para que el footer sea más bajo */
.footer-top > .footer-col:nth-child(2) ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 1.4rem; row-gap: 0.45rem; }
.footer-col a {
  font-size: 0.875rem; color: rgba(255,255,255,0.72);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col a::before { content: '›'; color: var(--red-primary); font-weight: 700; }
/* Contacto del footer: íconos corporativos en lugar de la flecha */
.footer-col a.footer-contact { gap: 0.7rem; }
.footer-col a.footer-contact::before { content: none; }
.footer-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-ico svg { width: 15px; height: 15px; }
.footer-col a.footer-contact:hover .footer-ico {
  background: var(--red-primary); border-color: var(--red-primary); transform: scale(1.08);
}

.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.9rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   SAMI MASCOT
   ══════════════════════════════════════════════════════════════════ */
.sami-float {
  animation: samiFloat 3.5s ease-in-out infinite;
}
@keyframes samiFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1.5deg); }
}
.sami-bounce {
  animation: samiBounce 0.6s ease infinite alternate;
}
@keyframes samiBounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* ── Sami Chat Bubble ───────────────────────────────────────────── */
.sami-bubble {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem; color: var(--gray-700);
  max-width: 260px;
  border: 2px solid var(--blue-pale);
}
.sami-bubble::after {
  content: '';
  position: absolute; bottom: -14px; left: 28px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.sami-bubble strong { color: var(--blue-primary); }

/* ══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════ */
.text-blue    { color: var(--blue-primary); }
.text-red     { color: var(--red-primary); }
.text-white   { color: #fff; }
.text-muted   { color: var(--gray-500); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.w-full { width: 100%; }

/* Divider */
.divider {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
  width: 60px; margin: 0 auto 1.5rem;
}
.divider-left { margin-left: 0; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-container { gap: 1.25rem; }
  .nav-link { padding: 0.45rem 0.55rem; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .nav-container { justify-content: space-between; gap: 1rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; padding: 2rem 1.25rem 1.25rem; }
  .footer-brand, .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-top > .footer-col:nth-child(2) ul { display: flex; }
  .footer-tagline { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; padding: 0.8rem 1.25rem; }
}
@media (max-width: 480px) {
  .page-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem; }
}

/* ══════════════════════════════════════════════════════════════════
   BOTONES FLOTANTES: SAMI CONSULTAS (IA) Y WHATSAPP
   ══════════════════════════════════════════════════════════════════ */
.sami-floating-btn {
  position: fixed;
  bottom: 98px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-mid) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 24px rgba(0, 58, 140, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.sami-floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 58, 140, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sami-floating-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  opacity: 0.85;
  animation: samiPulseRing 2.4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  pointer-events: none;
}
@keyframes samiPulseRing {
  0% { transform: scale(0.95); opacity: 0.85; }
  60% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.sami-floating-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.sami-floating-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  background: #22C55E;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #22C55E;
}
.sami-floating-tooltip {
  position: absolute;
  right: 74px;
  background: #ffffff;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1.5px solid var(--blue-pale);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sami-floating-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #ffffff;
}
.sami-floating-btn:hover .sami-floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE DE WHATSAPP
   ══════════════════════════════════════════════════════════════════ */
.wa-floating-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.wa-floating-btn:hover {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.16);
  color: #ffffff !important;
}
.wa-floating-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: waPulseRing 2.4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  pointer-events: none;
}
@keyframes waPulseRing {
  0% { transform: scale(0.95); opacity: 0.85; }
  60% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: 74px;
  background: #ffffff;
  color: var(--gray-900);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid var(--gray-100);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #ffffff;
}
.wa-floating-btn:hover .wa-tooltip,
.wa-floating-btn.show-greeting .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════════
   WIDGET DE CHAT FLOTANTE SAMI (APARIENCIA MODERNA DE CHAT EN VIVO)
   ══════════════════════════════════════════════════════════════════ */
.sami-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 40, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 94px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sami-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sami-modal-card {
  width: 385px;
  max-width: calc(100vw - 32px);
  height: 575px;
  max-height: calc(100vh - 115px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(0, 30, 80, 0.25), 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid rgba(0, 58, 140, 0.15);
  transform: translateY(20px) scale(0.92);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.sami-modal-backdrop.active .sami-modal-card {
  transform: translateY(0) scale(1);
}

/* Header estilo WhatsApp / Intercom */
.sami-modal-header {
  background: linear-gradient(135deg, #002255 0%, #003A8C 60%, #1A5CC8 100%);
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 20, 60, 0.15);
}
.sami-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sami-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.sami-avatar-modal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #ffffff;
  padding: 1px;
  display: block;
}
.sami-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22C55E;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 5px #22C55E;
}
.sami-header-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.sami-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 6px #22C55E;
  animation: liveDotBlink 1.8s infinite;
}
.sami-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sami-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.sami-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Sub-banner informativo */
.sami-banner span { display: inline-flex; align-items: center; gap: 6px; }
.sami-banner {
  background: var(--blue-pale);
  padding: 0.45rem 0.9rem;
  font-size: 0.74rem;
  color: var(--blue-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 58, 140, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chat Feed con textura suave */
.sami-chat-body {
  flex: 1;
  padding: 0.9rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #F5F7FB;
  background-image: radial-gradient(rgba(0, 58, 140, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  scroll-behavior: smooth;
}

/* Pill de Fecha */
.sami-chat-date-pill {
  text-align: center;
  margin: 0.2rem 0 0.4rem;
}
.sami-chat-date-pill span {
  display: inline-block;
  background: rgba(0, 58, 140, 0.08);
  color: var(--gray-600);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Burbujas de Chat */
.sami-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: msgFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sami-msg.bot {
  align-self: flex-start;
}
.sami-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.sami-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #ffffff;
  border: 1.5px solid var(--blue-primary);
  padding: 1px;
  display: block;
}
.sami-bubble-wrap {
  display: flex;
  flex-direction: column;
}
.sami-bubble-content {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 30, 80, 0.06);
  word-break: break-word;
}
.sami-msg.bot .sami-bubble-content {
  background: #ffffff;
  color: var(--gray-800);
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(0, 58, 140, 0.08);
}
.sami-msg.bot .sami-bubble-content strong {
  color: var(--blue-primary);
}
.sami-msg.bot .sami-bubble-content a.sami-link-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.55rem;
  margin-right: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--blue-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast);
}
.sami-msg.bot .sami-bubble-content a.sami-link-action:hover {
  background: var(--blue-mid);
}
.sami-msg.bot .sami-bubble-content a.sami-wa-action {
  background: #25D366;
}
.sami-msg.bot .sami-bubble-content a.sami-wa-action:hover {
  background: #1EBE5D;
}
.sami-msg.user .sami-bubble-content {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}
.sami-msg-time {
  font-size: 0.65rem;
  margin-top: 3px;
  padding: 0 4px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 3px;
}
.sami-msg.user .sami-msg-time {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.75);
}
.sami-ticks {
  color: #60A5FA;
  font-weight: 700;
  letter-spacing: -1px;
}

/* Indicador de escritura animado */
.sami-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(0, 58, 140, 0.08);
  width: fit-content;
}
.sami-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-mid);
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.sami-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.sami-typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chips rápidos */
.sami-chips-container {
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  scrollbar-width: thin;
}
.sami-chips-container::-webkit-scrollbar { height: 3px; }
.sami-chips-container::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
.sami-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EDF4FF;
  border: 1px solid rgba(0, 58, 140, 0.12);
  color: var(--blue-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-main);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.sami-chip:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  transform: translateY(-1px);
}

/* Barra de Entrada / Envío de Mensaje */
.sami-chat-form {
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.sami-chat-form input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-family: var(--font-main);
  color: var(--gray-900);
  background: #F8FAFC;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.sami-chat-form input:focus {
  border-color: var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1);
}
.sami-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 58, 140, 0.25);
}
.sami-send-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
}
.sami-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Disclaimer */
.sami-disclaimer {
  padding: 0.35rem 0.85rem;
  background: #FAFBFD;
  text-align: center;
  font-size: 0.66rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.sami-disclaimer strong {
  color: var(--red-primary);
}

/* Mascotas clickeables con feedback visual */
#sami-main,
#hero-sami-quote,
#sami-wave-img,
.sami-name-badge,
.telemedicina-sami-callout,
.sami-clickable {
  cursor: pointer;
  transition: transform var(--t-fast), filter var(--t-fast);
}
#sami-main:hover,
#sami-wave-img:hover {
  transform: scale(1.03) rotate(1deg);
  filter: drop-shadow(0 15px 30px rgba(0, 58, 140, 0.28));
}
#hero-sami-quote:hover,
.telemedicina-sami-callout:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 58, 140, 0.15);
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER CREDIT TEKMA
   ══════════════════════════════════════════════════════════════════ */
.footer-tekma {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}
.tekma-link {
  font-weight: 800;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: all var(--t-fast) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tekma-link:hover {
  background: var(--red-primary) !important;
  border-color: var(--red-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 26, 26, 0.4);
}

@media (max-width: 768px) {
  .wa-floating-btn {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .wa-tooltip {
    display: none;
  }
  .sami-floating-btn {
    bottom: 82px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .sami-floating-avatar {
    width: 38px;
    height: 38px;
  }
  .sami-floating-tooltip {
    display: none;
  }
  .sami-modal-card {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .sami-modal-backdrop {
    padding: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SECCIÓN TELEMEDICINA NACIONAL (DOCTOC & SAMI)
   ══════════════════════════════════════════════════════════════════ */
.telemedicina-section {
  padding: 5.5rem 1.5rem;
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.telemedicina-container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.telemedicina-banner-wrap {
  background: transparent;
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: none;
  padding: 1rem 0;
  position: relative;
  overflow: hidden; /* el brillo decorativo no debe ensanchar la página */
}
.telemedicina-banner-wrap::before {
  display: none;
}
.telemedicina-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.15) 0%, rgba(0, 58, 140, 0) 70%);
  pointer-events: none;
}
.telemedicina-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.telemedicina-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.telemedicina-img-card {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  background: transparent;
  transition: transform var(--t-med);
}
.telemedicina-img-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.telemedicina-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 58, 140, 0.16));
}
.telemedicina-live-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: liveDotBlink 1.8s infinite;
}
@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Sami Callout inside Telemedicina */
.telemedicina-sami-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #ffffff 100%);
  border: 1.5px solid rgba(0, 58, 140, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.telemedicina-sami-img {
  width: 72px;
  height: 72px;
  object-fit: contain; /* sami.png tiene fondo transparente: se ve completo dentro del círculo */
  border-radius: 50%;
  border: 2px solid var(--blue-primary);
  background: #ffffff;
  padding: 6px;
  flex-shrink: 0;
  animation: samiNavBounce 3s ease-in-out infinite;
  display: block;
}
.telemedicina-sami-bubble {
  flex: 1;
}
.sami-badge-mini {
  display: inline-block;
  background: var(--blue-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.telemedicina-sami-bubble p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--gray-700);
  font-style: italic;
}

/* Content */
.telemedicina-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  margin: 1rem 0 1.25rem;
}
.blue-highlight {
  color: var(--blue-primary);
  display: block;
}
.telemedicina-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.telemedicina-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.tm-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tm-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--blue-primary);
  flex-shrink: 0;
  border: 1px solid rgba(0, 58, 140, 0.12);
}
.tm-feature-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
}
.tm-feature-item p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.45;
}
.telemedicina-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-outline-blue {
  background: #ffffff;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.btn-outline-blue:hover {
  background: var(--blue-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
  .telemedicina-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 640px) {
  .telemedicina-banner-wrap {
    padding: 1.75rem;
  }
  .telemedicina-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .telemedicina-title {
    font-size: 1.6rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA ALIANZAS & CONVOCATORIA MÉDICA
   ══════════════════════════════════════════════════════════════════ */
.alianzas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
/* Cada área es un cuadro con su título: al tocarlo se despliega hacia abajo */
.alianza-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
  overflow: hidden;
}
.alianza-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 58, 140, 0.12); border-color: var(--blue-mid); }
.alianza-card.open { border-color: var(--blue-primary); box-shadow: 0 18px 40px rgba(0, 58, 140, 0.16); }
.alianza-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
  opacity: 0;
  transition: opacity var(--t-fast);
}
.alianza-card:hover::before, .alianza-card.open::before { opacity: 1; }
.alianza-head {
  width: 100%; display: flex; align-items: center; gap: 0.9rem;
  padding: 1.25rem 1.25rem; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit;
}
.alianza-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 16px;
  background: var(--blue-pale);
  color: var(--blue-primary);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.alianza-card:hover .alianza-icon { transform: scale(1.06); }
.alianza-card.open .alianza-icon { background: var(--blue-primary); color: #fff; }
.alianza-card h3 {
  flex: 1; margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
}
.alianza-chev {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--blue-primary);
  transition: transform 0.35s ease, background var(--t-med), color var(--t-med);
}
.alianza-card.open .alianza-chev { transform: rotate(180deg); background: var(--blue-primary); color: #fff; }
.alianza-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.alianza-card.open .alianza-body { grid-template-rows: 1fr; }
.alianza-body > div { overflow: hidden; padding: 0 1.4rem; }
.alianza-card.open .alianza-body > div { padding-bottom: 1.4rem; }
.alianza-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(0, 58, 140, 0.15);
}
.alianza-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.alianza-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--blue-pale);
  color: var(--blue-deep);
}

/* Nuestras alianzas actuales: carrusel continuo de logos */
.partners { margin-top: 4.5rem; }
.partners-head { margin-bottom: 2rem; }
.partners-intro { font-style: italic; max-width: 680px; margin: 0 auto; }
.partners-viewport {
  overflow: hidden;
  padding: 1rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: partnersScroll var(--partners-dur, 30s) linear infinite;
}
.partners-viewport:hover .partners-track { animation-play-state: paused; }
@keyframes partnersScroll { to { transform: translateX(var(--partners-shift, -50%)); } }
.partner-card {
  margin: 0; flex: 0 0 auto; width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  padding: 1.5rem 1.25rem 1.1rem;
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0, 58, 140, 0.14); border-color: var(--blue-mid); }
.partner-logo { height: 96px; width: 100%; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 96px; max-width: 190px; width: auto; height: auto; object-fit: contain; }
.partner-card figcaption {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--blue-primary);
  padding-top: 0.6rem; border-top: 2px solid var(--red-primary); min-width: 60%; text-align: center;
}
@media (max-width: 640px) {
  .partner-card { width: 190px; padding: 1.2rem 1rem 0.9rem; }
  .partner-logo { height: 76px; }
  .partner-logo img { max-height: 76px; max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* Formulario "Sé parte de BSCare Red Médica" */
.medicos-section {
  overflow: hidden;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
  position: relative;
}
.medicos-top { display: flex; justify-content: center; margin: 0 auto 2rem; max-width: var(--max-w); }
.medicos-top .section-tag { margin: 0; font-size: 0.82rem; padding: 0.55rem 1.4rem; box-shadow: var(--shadow-blue); }
/* Dos áreas iguales que se unen con el scroll: --p va de 0 (separadas) a 1 (un solo panel) */
.medicos-layout {
  --p: 0;
  --r: calc((1 - var(--p)) * 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc((1 - var(--p)) * 4rem);
  align-items: stretch;
  max-width: var(--max-w);
  margin: 0 auto;
}
.medicos-info-side,
.medicos-form-card {
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 15px 45px rgba(0, 58, 140, 0.1);
  opacity: calc(0.35 + var(--p) * 0.65);
  will-change: transform;
}
.medicos-info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 2.75rem 2.5rem;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--blue-bg) 100%);
  border-radius: 32px var(--r) var(--r) 32px;
  border-right-color: rgba(0, 58, 140, calc(var(--p) * 0.12));
  transform: translateX(calc((1 - var(--p)) * -60px));
}
.medicos-form-card {
  background: #ffffff;
  border-radius: var(--r) 32px 32px var(--r);
  padding: 2.75rem 2.5rem;
  transform: translateX(calc((1 - var(--p)) * 60px));
}
.medicos-logo {
  width: 120px; height: auto; align-self: flex-start;
  filter: drop-shadow(0 10px 20px rgba(0, 58, 140, 0.2));
  animation: espFloat 4.5s ease-in-out infinite;
}
@keyframes espFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 640px) { .medicos-logo { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .medicos-logo { animation: none; } }
.medicos-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.medicos-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 58, 140, 0.12);
}
.medicos-benefit-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}
.medicos-benefit-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.file-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--off-white);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}
.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--blue-primary);
  background: var(--blue-pale);
}
.file-dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  color: var(--blue-primary);
}
.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-selected-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-primary);
  display: none;
}

@media (max-width: 900px) {
  /* En pantallas angostas las áreas se apilan y se unen de arriba hacia abajo */
  .medicos-layout { grid-template-columns: 1fr; gap: calc((1 - var(--p)) * 2.5rem); }
  .medicos-info-side {
    padding: 2rem 1.5rem;
    border-radius: 28px 28px var(--r) var(--r);
    border-right-color: var(--gray-200);
    border-bottom-color: rgba(0, 58, 140, calc(var(--p) * 0.12));
    transform: translateY(calc((1 - var(--p)) * -30px));
  }
  .medicos-form-card {
    padding: 2rem 1.5rem;
    border-radius: var(--r) var(--r) 28px 28px;
    transform: translateY(calc((1 - var(--p)) * 30px));
  }
}

/* ══════════════════════════════════════════════════════════════════
   PUNTERO PERSONALIZADO CIRCULAR PALPITANTE
   ══════════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select, [role="button"], label, .card, .sami-chip, .btn, .faq-item {
    cursor: none !important;
  }
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.12s ease-out;
    will-change: left, top, transform;
  }
  .custom-cursor.visible {
    opacity: 1;
  }
  .custom-cursor-dot {
    display: block;
    width: 9px;
    height: 9px;
    background: #003A8C;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 58, 140, 0.7);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, box-shadow 0.2s ease;
  }
  .custom-cursor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border: 2px solid rgba(0, 58, 140, 0.55);
    border-radius: 50%;
    pointer-events: none;
    animation: cursorRingPulse 1.5s infinite ease-out;
  }
  @keyframes cursorRingPulse {
    0% {
      transform: scale(0.65);
      opacity: 0.95;
      border-color: rgba(0, 58, 140, 0.9);
    }
    50% {
      transform: scale(1.4);
      opacity: 0.4;
      border-color: rgba(204, 26, 26, 0.8);
    }
    100% {
      transform: scale(2.2);
      opacity: 0;
      border-color: rgba(0, 58, 140, 0);
    }
  }
  .custom-cursor.is-hovering .custom-cursor-dot {
    transform: scale(1.7);
    background: #25D366;
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.8);
  }
  .custom-cursor.is-hovering .custom-cursor-ring {
    animation-duration: 0.9s;
    border-color: rgba(37, 211, 102, 0.7);
  }
  .custom-cursor.is-active .custom-cursor-dot {
    transform: scale(0.55);
  }
}
@media (hover: none) or (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}





/* ══════════════════════════════════════════════════════════════════
   MENÚ GUIADO DE WHATSAPP CON SAMI
   ══════════════════════════════════════════════════════════════════ */
.wa-chat {
  position: fixed; z-index: 10001;
  right: 26px; bottom: 102px;
  width: 360px; max-height: min(600px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: #EFEAE2;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 20, 60, 0.3), 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.96); transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.25s;
}
.wa-chat.open { opacity: 1; visibility: visible; transform: none; }
.wa-chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, #075E54, #128C7E);
  color: #fff;
}
.wa-chat-avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: #fff;
  object-fit: contain; padding: 3px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.wa-chat-who { flex: 1; min-width: 0; line-height: 1.25; }
.wa-chat-who strong { display: block; font-size: 0.95rem; }
.wa-chat-who span { font-size: 0.72rem; opacity: 0.9; display: inline-flex; align-items: center; gap: 5px; }
.wa-chat-who i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.wa-chat-close, .wa-chat-restart {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.15); color: #fff;
  font-size: 0.95rem; cursor: pointer; transition: background 0.15s ease;
}
.wa-chat-close:hover, .wa-chat-restart:hover { background: rgba(255, 255, 255, 0.3); }
.wa-chat-body {
  flex: 1; overflow-y: auto; min-height: 220px;
  padding: 1rem 0.85rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-msg {
  max-width: 85%; padding: 0.55rem 0.8rem;
  border-radius: 12px; font-size: 0.86rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  animation: waMsgIn 0.25s ease;
}
.wa-msg-sami { align-self: flex-start; background: #fff; color: #1F2937; border-top-left-radius: 4px; }
.wa-msg-user { align-self: flex-end; background: #D9FDD3; color: #1F2937; border-top-right-radius: 4px; }
@keyframes waMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wa-typing { display: inline-flex; gap: 4px; padding: 0.75rem 0.9rem; }
.wa-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #9CA3AF;
  animation: waTyping 1s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes waTyping { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.wa-options { display: flex; flex-direction: column; gap: 0.4rem; align-self: stretch; padding-left: 0.25rem; animation: waMsgIn 0.3s ease; }
.wa-option {
  text-align: left; cursor: pointer;
  padding: 0.6rem 0.85rem; border-radius: 12px;
  border: 1.5px solid #128C7E; background: #fff; color: #075E54;
  font-family: var(--font-main); font-size: 0.83rem; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.wa-option:hover, .wa-option:focus-visible { background: #128C7E; color: #fff; transform: translateX(3px); outline: none; }
.wa-chat-foot:empty { display: none; }
.wa-chat-foot { padding: 0.75rem; background: #F0F2F5; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.wa-final { display: flex; flex-direction: column; gap: 0.55rem; }
.wa-preview {
  background: #D9FDD3; border-radius: 10px; padding: 0.6rem 0.75rem;
  font-size: 0.8rem; color: #1F2937; line-height: 1.45;
  border-left: 3px solid #25D366;
}
.wa-name, .wa-free textarea {
  width: 100%; border: 1px solid #D1D5DB; border-radius: 10px;
  padding: 0.6rem 0.75rem; font-family: var(--font-main); font-size: 0.85rem;
  background: #fff; color: #1F2937; resize: none;
}
.wa-name:focus, .wa-free textarea:focus { outline: 2px solid #25D366; border-color: transparent; }
.wa-go {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem; border-radius: 999px;
  background: #25D366; color: #fff !important; font-weight: 800; font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}
.wa-go:hover { background: #1EBE5D; transform: translateY(-1px); }
.wa-free { display: flex; gap: 0.5rem; align-items: flex-end; }
.wa-send-mini {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 0;
  background: #25D366; color: #fff; font-size: 1rem; cursor: pointer;
}
/* El botón verde muestra una X mientras el chat está abierto */
.wa-floating-btn.chat-open svg { transform: rotate(90deg) scale(0); opacity: 0; }
.wa-floating-btn svg { transition: transform 0.25s ease, opacity 0.2s ease; }
.wa-floating-btn.chat-open::after {
  content: '✕'; position: absolute; font-size: 1.5rem; font-weight: 700; color: #fff;
}
.wa-floating-btn.chat-open .wa-tooltip { display: none; }
/* El botón flotante de Sami (IA) queda debajo del chat: se oculta mientras está abierto */
.wa-chat-is-open .sami-floating-btn { opacity: 0; pointer-events: none; transform: scale(0.8); }
@media (max-width: 768px) {
  .wa-chat {
    right: 10px; left: 10px; bottom: 84px; width: auto;
    max-height: calc(100vh - 110px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-chat, .wa-msg, .wa-options { transition: none; animation: none; }
}

/* ── Íconos de línea dentro de los chats (Sami y WhatsApp) ─────── */
.ui-ico { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.wa-option { display: flex; align-items: center; gap: 8px; }
.wa-chat-close, .wa-send-mini { display: inline-flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   SERVICIOS E INDICACIONES EN LOS CHATS (Sami y WhatsApp)
   ══════════════════════════════════════════════════════════════════ */
/* Botones de opción dentro de los mensajes de Sami */
.sami-opts { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.7rem; }
.sami-opt {
  display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 0.55rem 0.8rem; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(0, 58, 140, 0.25); background: #fff; color: var(--blue-primary);
  font-family: var(--font-main); font-size: 0.8rem; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sami-opt:hover:not(:disabled) { background: var(--blue-primary); color: #fff; transform: translateX(3px); }
.sami-opt:disabled { opacity: 0.45; cursor: default; }
.sami-opt.chosen { opacity: 1; background: var(--blue-primary); color: #fff; }
.sami-chip-hl { background: var(--blue-primary) !important; color: #fff !important; border-color: var(--blue-primary) !important; }

/* Lista para elegir exámenes o estudios */
.pp { margin-top: 0.7rem; background: #fff; border: 1px solid rgba(0, 58, 140, 0.14); border-radius: 14px; overflow: hidden; }
.pp-search {
  width: 100%; border: 0; border-bottom: 1px solid rgba(0, 58, 140, 0.12);
  padding: 0.6rem 0.8rem; font-family: var(--font-main); font-size: 0.8rem; color: var(--gray-700); outline: none;
}
.pp-search:focus { background: var(--blue-bg); }
.pp-list { max-height: 230px; overflow-y: auto; overscroll-behavior: contain; }
.pp-item {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 0.5rem 0.8rem; border: 0; border-bottom: 1px solid var(--gray-100); background: #fff;
  font-family: var(--font-main); font-size: 0.78rem; color: var(--gray-700); cursor: pointer;
}
.pp-item:hover:not(:disabled) { background: var(--blue-bg); }
.pp-item[hidden] { display: none; }
.pp-check {
  width: 16px; height: 16px; flex-shrink: 0; border-radius: 5px;
  border: 1.5px solid rgba(0, 58, 140, 0.4); position: relative; transition: background 0.15s ease;
}
.pp-item[aria-pressed="true"] { background: #EEF4FF; }
.pp-item[aria-pressed="true"] .pp-check { background: var(--blue-primary); border-color: var(--blue-primary); }
.pp-item[aria-pressed="true"] .pp-check::after {
  content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pp-name { flex: 1; line-height: 1.35; }
.pp-price { font-weight: 800; color: var(--blue-primary); white-space: nowrap; }
.pp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.8rem; background: var(--blue-bg); font-size: 0.76rem; color: var(--gray-600);
}
.pp-foot strong { color: var(--blue-primary); }
.pp-go {
  border: 0; border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer;
  background: var(--blue-primary); color: #fff; font-family: var(--font-main); font-size: 0.78rem; font-weight: 700;
}
.pp-go:disabled { opacity: 0.4; cursor: default; }
.pp.pp-done { opacity: 0.6; }
.wa-pp { margin: 0 0 0.5rem; }

/* Resumen con indicaciones de preparación */
.pp-sum { list-style: none; margin: 0.55rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.pp-sum li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem;
  padding: 0.5rem 0.65rem; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(0, 58, 140, 0.1); border-radius: 10px;
}
.pp-sum li span { font-weight: 700; color: var(--gray-900); }
.pp-sum li em { font-style: normal; font-size: 0.68rem; font-weight: 700; color: var(--blue-primary); white-space: nowrap; align-self: center; }
.pp-sum li small { grid-column: 1 / -1; color: var(--gray-500); font-size: 0.72rem; line-height: 1.45; }
.pp-sum-total { margin: 0.2rem 0 0.4rem; font-size: 0.85rem; text-align: right; }
.pp-sum-total b { color: var(--blue-primary); font-size: 1rem; }
.pp-note, .pp-ok, .pp-no { display: flex; gap: 6px; align-items: flex-start; margin: 0.35rem 0; font-size: 0.74rem; line-height: 1.45; }
.pp-note { color: var(--gray-600); }
.pp-ok { color: #15803D; }
.pp-no { color: var(--red-primary); }
.pp-note .ui-ico, .pp-ok .ui-ico, .pp-no .ui-ico { margin-top: 1px; }
.pp-aviso { margin: 0.45rem 0 0.2rem; font-size: 0.68rem; font-style: italic; color: var(--gray-400); line-height: 1.4; }
.wa-preview { white-space: pre-line; }

/* ── Consentimiento de datos en formularios (LOPDP Ecuador) ─────── */
.form-consent {
  display: flex !important; align-items: flex-start; gap: 0.6rem;
  margin: 0.25rem 0 1rem; cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 0.8rem !important; font-weight: 500 !important; color: var(--gray-600) !important; line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  width: 18px !important; height: 18px; flex-shrink: 0; margin-top: 2px; padding: 0 !important;
  accent-color: var(--blue-primary); cursor: pointer;
}
/* Postulación: currículum por correo */
.cv-mail {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border: 2px dashed var(--gray-300); border-radius: var(--radius-md);
  background: var(--off-white);
}
.cv-mail .file-dropzone-icon { margin: 0; }
.cv-mail strong { display: block; font-size: 0.9rem; color: var(--gray-900); }
.cv-mail strong a { color: var(--blue-primary); }
.cv-mail span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }
.cv-mail-btn {
  display: inline-flex; margin: 0.6rem 0 0.35rem; padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--blue-primary); color: #fff !important; font-weight: 700; font-size: 0.82rem;
}
.cv-mail-alt { display: block; font-size: 0.76rem; text-decoration: underline; }

/* ── Envío de formularios por correo (FormSubmit) ──────────────── */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-error {
  display: none; margin-top: 1rem; padding: 1rem 1.25rem;
  background: #FFF1F1; border: 1px solid rgba(204, 26, 26, 0.25); border-radius: var(--radius-md);
  color: var(--red-primary); font-weight: 600; font-size: 0.9rem; align-items: center; gap: 0.75rem;
}
.form-error a { text-decoration: underline; }
.spin { animation: formSpin 1s linear infinite; }
@keyframes formSpin { to { transform: rotate(360deg); } }

/* ── Enlace "Saltar al contenido" (visible solo con teclado) ── */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 10000;
  background: #003A8C; color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }
