/* ==========================================================================
   Seguros Bupa Chile - Portal de Ejecutivos Comerciales y Captación
   Diseño corporativo Desktop + Experiencia Tipo App Nativa en Celulares
   ========================================================================== */

:root {
  --bupa-blue: #0079c8;
  --bupa-blue-dark: #005a9c;
  --bupa-navy: #002b49;
  --bupa-cyan: #00a9e0;
  --bupa-teal: #00a88f;
  --bupa-teal-dark: #008772;
  --bupa-purple: #6c43e0;
  --bupa-amber: #f59e0b;
  --bupa-red: #e11d48;
  --bupa-bg-soft: #f4f8fb;
  --bupa-bg-light: #e8f3fa;
  --text-main: #0f2537;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #dbe5f0;
  --shadow-sm: 0 2px 8px rgba(0, 43, 73, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 65, 112, 0.10);
  --shadow-lg: 0 20px 45px rgba(0, 56, 101, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  line-height: 1.55;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP BAR & HEADER BUPA
   ========================================================================== */
.topbar {
  background: var(--bupa-navy);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.5rem 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__badge {
  background: rgba(0, 169, 224, 0.22);
  border: 1px solid rgba(0, 169, 224, 0.45);
  color: #7dd3fc;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
}

.topbar__link:hover {
  color: #38bdf8;
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 43, 73, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.header__logo {
  height: 42px;
  width: auto;
}

.header__divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

.header__channel-tag {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--bupa-navy);
  font-weight: 700;
}

.header__channel-tag span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--bupa-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--bupa-blue);
  transition: width 0.22s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: center;
  line-height: 1.25;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bupa-blue) 0%, var(--bupa-blue-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 121, 200, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 121, 200, 0.38);
}

.btn-teal {
  background: linear-gradient(135deg, var(--bupa-teal) 0%, var(--bupa-teal-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 168, 143, 0.28);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 168, 143, 0.38);
}

.btn-outline {
  background: #ffffff;
  color: var(--bupa-blue);
  border: 2px solid var(--bupa-blue);
}

.btn-outline:hover {
  background: var(--bupa-bg-light);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.92rem 1.65rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO PRINCIPAL DE ALTA CONVERSIÓN (SPLIT LAYOUT)
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(125deg, #002b49 0%, #004e82 52%, #0079c8 100%);
  color: #ffffff;
  padding: 2.8rem 0 3.6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(0, 169, 224, 0.28) 0%, transparent 55%),
                    radial-gradient(circle at 15% 85%, rgba(0, 168, 143, 0.22) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.25rem;
  align-items: start;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

.hero__pill-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.hero__title {
  font-size: clamp(1.75rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: #38bdf8;
}

.hero__subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.4rem;
  max-width: 600px;
}

/* Carrusel de Banners Oficiales Bupa (Proporción exacta 1600x480 sin recortes) */
.hero__banner-showcase {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.4rem;
  position: relative;
  background: #001f36;
}

.hero__banner-slide {
  display: none;
  position: relative;
}

.hero__banner-slide.active {
  display: block;
  animation: fadeIn 0.45s ease;
}

.hero__banner-slide img {
  width: 100%;
  aspect-ratio: 1600 / 480;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.hero__banner-caption {
  padding: 0.7rem 1rem;
  background: rgba(0, 27, 46, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.hero__banner-caption strong {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.3;
}

.hero__banner-dots {
  display: flex;
  gap: 0.4rem;
}

.hero__banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}

.hero__banner-dot.active {
  width: 22px;
  border-radius: 6px;
  background: #38bdf8;
}

/* Tarjeta del Ejecutivo Asignado en el Hero */
.exec-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  backdrop-filter: blur(10px);
}

.exec-spotlight__main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.exec-spotlight__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.exec-spotlight__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #38bdf8;
}

.exec-spotlight__online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #002b49;
  border-radius: 50%;
}

.exec-spotlight__info {
  min-width: 0;
  flex: 1;
}

.exec-spotlight__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.exec-spotlight__name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.exec-spotlight__role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.3;
}

/* ==========================================================================
   TARJETA DE FORMULARIO DE ALTA CONVERSIÓN (LEAD MAGNET)
   ========================================================================== */
.lead-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.7rem;
  box-shadow: 0 24px 60px rgba(0, 22, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
}

.lead-card__ribbon {
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(135deg, #00a88f 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 168, 143, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead-card__header {
  margin-bottom: 1rem;
}

.lead-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bupa-navy);
  line-height: 1.24;
  margin-bottom: 0.35rem;
}

.lead-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.urgency-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #eff8ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.form-group {
  margin-bottom: 0.75rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bupa-navy);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.66rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.18s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--bupa-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(0, 121, 200, 0.14);
}

.form-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.checkbox-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.checkbox-legal input {
  margin-top: 0.18rem;
  accent-color: var(--bupa-blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lead-card__trust {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   SECTIONS GENERALES
   ========================================================================== */
.section {
  padding: 4.25rem 0;
}

.section--soft {
  background-color: var(--bupa-bg-soft);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--bupa-blue);
  background: var(--bupa-bg-light);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: var(--bupa-navy);
  margin-bottom: 0.65rem;
  line-height: 1.22;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FILTROS Y CATÁLOGO DE PLANES BUPA (Imágenes 16:9 completas sin recortes)
   ========================================================================== */
.plan-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bupa-blue);
  color: #ffffff;
  border-color: var(--bupa-blue);
  box-shadow: 0 6px 16px rgba(0, 121, 200, 0.25);
}

.plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.plan-card {
  flex: 1 1 330px;
  max-width: 386px;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

/* Proporción 600x340 (~16:9) para que todas las fotos de planes se vean completas */
.plan-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 340;
  overflow: hidden;
  background: var(--bupa-navy);
}

.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.plan-card:hover .plan-card__media img {
  transform: scale(1.04);
}

.plan-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.26rem 0.7rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  max-width: calc(100% - 20px);
}

.plan-card__tags {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.plan-card__tag {
  background: rgba(0, 43, 73, 0.88);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.plan-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-card__title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--bupa-navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.plan-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.plan-card__features {
  list-style: none;
  margin-bottom: 1.1rem;
  flex: 1;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.81rem;
  color: var(--text-main);
  margin-bottom: 0.42rem;
  line-height: 1.38;
}

.plan-card__features li span.check-ic {
  color: var(--bupa-teal);
  font-weight: 900;
  flex-shrink: 0;
}

.plan-card__price-box {
  background: var(--bupa-bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  border: 1px solid #e2e8f0;
}

.plan-card__price-label {
  font-size: 0.71rem;
  color: var(--text-muted);
  display: block;
}

.plan-card__price-clp {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--bupa-blue);
  line-height: 1.1;
}

.plan-card__price-uf {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bupa-navy);
  background: #dbeafe;
  padding: 0.24rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.plan-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

/* ==========================================================================
   TABLA COMPARATIVA DESKTOP + TARJETAS COMPARATIVAS MÓVIL
   ========================================================================== */
.comparison-table-desktop {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
}

.comparison-cards-mobile {
  display: none;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.comp-mobile-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.comp-mobile-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.comp-mobile-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bupa-navy);
}

.comp-mobile-card__badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.comp-mobile-card__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.comp-mobile-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   RECOMENDADOR INTERACTIVO DE PLANES
   ========================================================================== */
.wizard-box {
  background: linear-gradient(135deg, #002b49 0%, #005a9c 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.wizard-controls {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  backdrop-filter: blur(8px);
}

.wizard-result {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   EQUIPO DE EJECUTIVOS COMERCIALES
   ========================================================================== */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.35rem;
}

.exec-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.exec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--bupa-blue);
}

.exec-card__avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 0.85rem;
}

.exec-card__avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bupa-blue);
}

.exec-card__status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
}

.exec-card__name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--bupa-navy);
}

.exec-card__role {
  font-size: 0.8rem;
  color: var(--bupa-blue);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.exec-card__code {
  display: inline-block;
  font-size: 0.7rem;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  margin: 0 auto 0.65rem;
}

.exec-card__bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.exec-card__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* ==========================================================================
   RED DE PRESTADORES ONE BUPA & BLUA SALUD DIGITAL
   ========================================================================== */
.providers-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: center;
  margin-top: 1.75rem;
}

.provider-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  box-shadow: var(--shadow-sm);
}

.provider-logo-card img {
  max-height: 42px;
  width: auto;
}

.blua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.blua-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.blua-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.blua-card__body {
  padding: 1.25rem;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ INTERACTIVO)
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-search {
  margin-bottom: 1.25rem;
  position: relative;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--bupa-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bupa-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid #f1f5f9;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   MOTOR DE CHAT EN LÍNEA + WHATSAPP FLOTANTE + BARRA INFERIOR APP MÓVIL
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-launcher-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.whatsapp-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.chat-fab {
  background: linear-gradient(135deg, var(--bupa-blue) 0%, var(--bupa-navy) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.3rem;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 28px rgba(0, 56, 101, 0.38);
  cursor: pointer;
  font-family: inherit;
}

.chat-window {
  width: 370px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 27, 46, 0.32);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-window.open {
  display: flex;
  animation: slideUp 0.25s ease;
}

.chat-header {
  background: linear-gradient(135deg, var(--bupa-navy) 0%, var(--bupa-blue) 100%);
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header__exec {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.chat-header__exec img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 0.9rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-bubble {
  max-width: 86%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.chat-bubble--bot {
  background: #ffffff;
  color: var(--text-main);
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  background: var(--bupa-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

.quick-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bupa-blue);
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
}

.chat-input-bar {
  display: flex;
  padding: 0.6rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  gap: 0.4rem;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
}

/* Barra de Navegación Inferior Tipo App Nativa (Solo Celulares) */
.mobile-app-nav {
  display: none;
}

/* ==========================================================================
   MODAL DE COTIZACIÓN Y CONFIRMACIÓN
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 46, 0.72);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.65rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER CORPORATIVO BUPA
   ========================================================================== */
.footer {
  background: var(--bupa-navy);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  font-size: 0.86rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer__title {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
  margin-bottom: 0.85rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a:hover {
  color: #38bdf8;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.76rem;
  color: #94a3b8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   RESPONSIVE TABLETS & MOBILE APP EXPERIENCE (<= 768px)
   ========================================================================== */
@media (max-width: 980px) {
  .hero__grid,
  .wizard-box,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px; /* Espacio para la barra inferior tipo App */
  }

  .container {
    padding: 0 0.95rem;
  }

  /* 1. Topbar ultra-compacta de 1 sola línea en celular */
  .topbar {
    padding: 0.35rem 0;
    font-size: 0.74rem;
  }
  .topbar__left {
    display: none; /* Ocultar texto largo redundante en móvil */
  }
  .topbar__right {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .topbar__hide-mobile {
    display: none;
  }

  /* 2. Header limpio y perfectamente encuadrado en celular */
  .header__inner {
    height: 62px;
    gap: 0.5rem;
  }
  .header__logo {
    height: 34px;
  }
  .header__divider,
  .header__channel-tag,
  .header__chat-btn-desktop {
    display: none !important;
  }
  .header__cta-btn {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* 3. Hero compacto y encuadrado en celular */
  .hero {
    padding: 1.35rem 0 1.85rem;
  }
  .hero__grid {
    gap: 1.25rem;
  }
  .hero__pill {
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .hero__title {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }
  .hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
  .hero__banner-caption {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0.65rem 0.8rem;
    gap: 0.5rem;
  }
  .hero__banner-caption strong {
    font-size: 0.8rem;
  }

  /* 4. Tarjeta de Ejecutivo 100% encuadrada sin texto vertical apretado */
  .exec-spotlight {
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .exec-spotlight__main {
    align-items: center;
  }
  .exec-spotlight__name {
    font-size: 0.98rem;
  }
  .exec-spotlight__role {
    font-size: 0.76rem;
  }
  .exec-spotlight .btn-whatsapp {
    width: 100%;
    padding: 0.65rem;
  }

  /* 5. Formulario principal compacto y directo en celular */
  .lead-card {
    padding: 1.35rem 1.1rem;
    border-radius: 16px;
  }
  .lead-card__ribbon {
    position: static;
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.7rem;
  }
  .lead-card__title {
    font-size: 1.15rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* 6. Filtros de planes deslizables horizontalmente tipo App */
  .plan-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .plan-filters::-webkit-scrollbar {
    display: none;
  }
  .plans-grid {
    gap: 1.1rem;
  }
  .plan-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* 7. Tabla Comparativa reemplazada por Tarjetas Comparativas en celular */
  .comparison-table-desktop {
    display: none;
  }
  .comparison-cards-mobile {
    display: grid;
  }

  /* 8. Prestadores en grilla 2x2 limpia en celular */
  .providers-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .provider-logo-card {
    height: 70px;
    padding: 0.75rem;
  }

  .wizard-box {
    padding: 1.35rem 1.1rem;
    border-radius: 16px;
  }
  .wizard-controls,
  .wizard-result {
    padding: 1.05rem;
  }

  /* 9. Sistema de Pestañas Tipo App Móvil (Muestra solo la pestaña activa en móvil) */
  body.mobile-app-mode .app-tab-pane {
    display: none !important;
  }
  body.mobile-app-mode .app-tab-pane.mobile-tab-active {
    display: block !important;
    animation: fadeIn 0.25s ease;
  }

  /* Ocultar el botón flotante ancho que tapaba el contenido en celular */
  .chat-launcher-row {
    display: none !important;
  }

  .floating-widgets {
    bottom: 78px;
    right: 12px;
    left: 12px;
    align-items: stretch;
  }

  .chat-window {
    width: 100%;
    max-width: 100%;
  }

  /* Barra de Navegación Inferior Fija Tipo App */
  .mobile-app-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    box-shadow: 0 -6px 24px rgba(0, 43, 73, 0.12);
    z-index: 1050;
    padding: 0.25rem 0.2rem;
  }

  .mobile-app-nav__btn {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    color: #64748b;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.18s ease;
  }

  .mobile-app-nav__btn span.nav-ic {
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-app-nav__btn.active {
    color: var(--bupa-blue);
    background: #eff8ff;
    font-weight: 800;
  }
}
