/* ══════════════════════════════════════════════════
   JF SEGUROS INTEGRALES — Estilos principales
   Basado en template Covar (awaikenthemes)
   Paleta de marca JF: verde teal #0D7A5A
══════════════════════════════════════════════════ */

/* ── Variables: Modo claro ─────────────────────── */
:root {
  --primary-color:          #0D7A5A;   /* verde JF */
  --primary-dark:           #085C43;
  --primary-light:          #13A076;
  --secondary-color:        #F8F6F2;
  --accent-color:           #FFB967;   /* dorado del template */
  --accent-hover:           #e8a050;
  --dark-green:             #0A1F17;   /* sección oscura */
  --bg-color:               #FFFFFF;
  --card-bg:                #FFFFFF;
  --text-color:             #3d3d3d;
  --text-muted:             #6c757d;
  --heading-color:          #0A1F17;
  --border-color:           rgba(13, 122, 90, 0.15);
  --navbar-bg:              rgba(255,255,255,0.95);
  --navbar-shadow:          0 2px 20px rgba(0,0,0,0.08);
  --stats-bg:               #0D7A5A;
  --footer-bg:              #0A1F17;
  --footer-text:            #adb5bd;
  --why-bg:                 #f0faf6;
  --plan-border:            #e0e0e0;
  --input-bg:               #ffffff;
  --input-border:           #ced4da;
  --default-font:           'Inter', 'Google Sans', sans-serif;
  --transition:             0.3s ease;
}

/* ── Variables: Modo oscuro ────────────────────── */
[data-theme="dark"] {
  --bg-color:               #0f1a14;
  --card-bg:                #162419;
  --text-color:             #d0e8dc;
  --text-muted:             #8aab99;
  --heading-color:          #e8f5ee;
  --border-color:           rgba(13, 122, 90, 0.3);
  --navbar-bg:              rgba(10, 31, 23, 0.97);
  --navbar-shadow:          0 2px 20px rgba(0,0,0,0.4);
  --secondary-color:        #162419;
  --why-bg:                 #0f1a14;
  --plan-border:            rgba(255,255,255,0.1);
  --input-bg:               #162419;
  --input-border:           rgba(13,122,90,0.4);
}

/* ── Reset & Base ──────────────────────────────── */
*, ::before, ::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--default-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

::selection { background: var(--primary-color); color: #fff; }

/* ── Logo visibility por tema ─────────────────── */
.logo-light, .logo-dark { display: none; }
[data-theme="light"] .logo-dark  { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="dark"]  .logo-light { display: none !important; }
[data-theme="dark"]  .logo-dark  { display: block !important; }

/* Footer logos */
.footer-logo { display: none; }
[data-theme="light"] .footer-logo.logo-dark  { display: none !important; }
[data-theme="light"] .footer-logo.logo-light { display: block !important; }
[data-theme="dark"]  .footer-logo.logo-light { display: none !important; }
[data-theme="dark"]  .footer-logo.logo-dark  { display: block !important; }

/* ── Navbar ────────────────────────────────────── */
#mainNavbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--navbar-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 10px 0;
}

#mainNavbar .navbar-brand {
  padding: 0;
  line-height: 0;
}

#mainNavbar .navbar-brand .logo {
  height: 46px;
  width: auto;
  display: block;
}

#mainNavbar .nav-link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

#mainNavbar .nav-link:hover {
  color: var(--primary-color);
  background: rgba(13, 122, 90, 0.08);
}

#mainNavbar .navbar-toggler {
  border: none;
  padding: 6px;
}

#mainNavbar .navbar-toggler:focus { box-shadow: none; }

/* ── Botón modo oscuro/claro ───────────────────── */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

[data-theme="light"] .icon-dark { display: none; }
[data-theme="light"] .icon-light { display: flex; }
[data-theme="dark"]  .icon-light { display: none; }
[data-theme="dark"]  .icon-dark  { display: flex; }

/* ── Botones globales ──────────────────────────── */
.btn-accent {
  background: var(--accent-color);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 28px;
  transition: all var(--transition);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,185,103,0.4);
}

.btn-outline-accent {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 24px;
  transition: all var(--transition);
}

.btn-outline-accent:hover {
  background: var(--accent-color);
  color: #1a1a1a;
}

.nav-cta {
  padding: 9px 22px;
  font-size: 0.9rem;
}

/* ── Hero ──────────────────────────────────────── */
.hero-section {
  position: relative;
  background-image: url('../images/Background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* Overlay desactivado — imagen del fondo resalta */
.hero-overlay { display: none; }

/* Dotted bg siempre oculto */
.hero-dotted-bg { display: none !important; }

/* Imagen asesor — solo visible en móvil vía media query */
.hero-asesor-img {
  width: 100%;
  max-width: 320px;
  margin: 14px auto 18px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-asesor-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(13,122,90,0.85);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-accent { color: var(--accent-color) !important; }

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-buttons .btn { border-radius: 50px; }
.btn-outline-light { border-radius: 50px !important; }

.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: all var(--transition);
}

.scroll-down-btn:hover { border-color: #fff; color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: 650px;
    padding: 120px 0 80px;
    background-attachment: scroll;
  }
}

/* ── Stats bar ────────────────────────────────── */
.stats-bar {
  background: var(--primary-color);
  padding: 40px 0;
}

.stat-item {
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ── Secciones generales ──────────────────────── */
.section-padding { padding: 90px 0; }

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(13,122,90,0.1);
  border-radius: 50px;
}

.section-tag-light {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Tarjetas de servicios ───────────────────── */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px 28px;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(13,122,90,0.15);
  border-color: var(--primary-color);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
}

.service-card.featured h3,
.service-card.featured p { color: #fff; }

.service-card.featured .service-icon { background: rgba(255,255,255,0.15); color: #fff; }

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(13,122,90,0.1);
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: #fff;
}

.service-card.featured:hover .service-icon {
  background: rgba(255,255,255,0.25);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.badge-featured {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent-color);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card.featured .service-link { color: var(--accent-color); }

.service-link:hover { gap: 10px; }

/* ── Sección oscura (medicina prepagada) ─────── */
.dark-section {
  background-color: var(--dark-green);
  background-image: url('https://html.awaikenthemes.com/covar/images/dark-section-bg-image.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.text-white-70 { color: rgba(255,255,255,0.75) !important; }

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.benefit-list li i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

.benefit-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 20px;
  transition: all var(--transition);
}

.benefit-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,185,103,0.15);
  color: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.benefit-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Planes ──────────────────────────────────── */
.plans-section {
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .plans-section {
  background: #0f1a14;
}

/* Grid infinito animado */
.plans-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.plans-grid-bg svg {
  width: 100%;
  height: 100%;
}

.plans-grid-static {
  opacity: 0.04;
}

[data-theme="dark"] .plans-grid-static {
  opacity: 0.07;
}

.plans-grid-reveal {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.plans-section .container {
  position: relative;
  z-index: 1;
}

/* Orbes de color de fondo */
.plans-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.plans-orb-1 {
  width: 40%;
  height: 50%;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(13,122,90,0.18) 0%, transparent 70%);
}

.plans-orb-2 {
  width: 35%;
  height: 45%;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(255,185,103,0.12) 0%, transparent 70%);
}

[data-theme="dark"] .plans-orb-1 {
  background: radial-gradient(circle, rgba(13,122,90,0.25) 0%, transparent 70%);
}

[data-theme="dark"] .plans-orb-2 {
  background: radial-gradient(circle, rgba(255,185,103,0.10) 0%, transparent 70%);
}

.plan-card {
  background: var(--card-bg);
  border: 2px solid var(--plan-border);
  border-radius: 24px;
  padding: 40px 30px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.plan-card.gold {
  border-color: #D4AF37;
}

.plan-card.gold:hover {
  box-shadow: 0 24px 60px rgba(212,175,55,0.2);
  border-color: #D4AF37;
}

.plan-card.silver.featured-plan {
  border-color: var(--primary-color);
  border-width: 3px;
}

.plan-card.silver.featured-plan:hover {
  box-shadow: 0 24px 60px rgba(13,122,90,0.25);
}

.plan-card.pref {
  border-color: var(--plan-border);
}

.plan-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  background: #D4AF37;
  color: #1a1a1a;
}

.plan-badge.popular {
  background: var(--primary-color);
  color: #fff;
}

.plan-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.gold .plan-icon    { background: rgba(212,175,55,0.12); color: #D4AF37; }
.silver .plan-icon  { background: rgba(13,122,90,0.1); color: var(--primary-color); }
.pref .plan-icon    { background: rgba(99,99,99,0.1); color: #636363; }

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.plan-price {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-from {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.1;
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-color);
  line-height: 1.5;
}

.plan-features li i { color: var(--primary-color); flex-shrink: 0; margin-top: 3px; }
.gold .plan-features li i  { color: #D4AF37; }

.plan-promo {
  margin-top: 16px;
  background: rgba(255,185,103,0.15);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-plan-gold {
  background: linear-gradient(135deg, #D4AF37, #C49A00);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 12px 24px;
  transition: all var(--transition);
}

.btn-plan-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.4);
  color: #1a1a1a;
}

.btn-plan-silver {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 12px 24px;
  transition: all var(--transition);
}

.btn-plan-silver:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,122,90,0.4);
  color: #fff;
}

.btn-plan-pref {
  background: transparent;
  border: 2px solid var(--plan-border);
  color: var(--heading-color);
  border-radius: 50px;
  font-weight: 700;
  padding: 11px 24px;
  transition: all var(--transition);
}

.btn-plan-pref:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ── Botones de pago ─────────────────────────── */
.payment-section {
  margin-top: 60px;
  padding: 48px 40px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.btn-payment {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1rem;
  transition: all var(--transition);
}

.btn-payment:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13,122,90,0.35);
}

.btn-payment-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1rem;
  transition: all var(--transition);
}

.btn-payment-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* ── Por qué elegirnos ───────────────────────── */
.why-section {
  background: var(--why-bg);
}

.why-items { display: flex; flex-direction: column; gap: 28px; }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.why-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.25;
  line-height: 1;
  min-width: 50px;
}

.why-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.why-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.why-visual {
  border-radius: 32px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  position: relative;
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  min-height: 380px;
}

.why-visual::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.why-big-number {
  font-size: 7rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  letter-spacing: -4px;
}

.why-tagline {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.why-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.wc {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Sección de contacto ─────────────────────── */
.contact-section {
  background: var(--bg-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item i {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; color: var(--heading-color); font-size: 0.95rem; }
.contact-info-item span   { color: var(--text-muted); font-size: 0.88rem; }

/* ── Formulario ──────────────────────────────── */
.contact-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: all var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13,122,90,0.15);
  background: var(--input-bg);
  color: var(--text-color);
}

.contact-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.link-accent { color: var(--primary-color); font-weight: 600; }
.link-accent:hover { color: var(--primary-dark); }

#formMessage.success {
  background: rgba(13,122,90,0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}

#formMessage.error {
  background: rgba(220,53,69,0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 70px 0 0;
}

.footer-logo { height: 40px; width: auto; }

.footer-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-color); }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 48px 0 24px;
}

.footer-bottom {
  padding-bottom: 30px;
  text-align: center;
}

.footer-bottom p { margin: 0 0 4px; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ── WhatsApp FAB ────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ── Botón WhatsApp formulario ───────────────── */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* ── Kitty Badge ─────────────────────────────── */
.kitty-badge-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.kitty-badge-inner svg {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
  transition: transform 300ms ease-out;
  will-change: transform;
}

.kitty-badge-inner:hover svg {
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.35));
}

.kb-poly {
  transform-origin: center center;
  will-change: transform;
}

/* ── Testimonios Carrusel ────────────────────── */
.testimonials-section {
  background-color: var(--secondary-color);
  overflow: hidden;
}

.testimonials-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* fade edges */
.testimonials-track-wrapper::before,
.testimonials-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.testimonials-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--secondary-color), transparent);
}
.testimonials-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--secondary-color), transparent);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 12px 0;
}

.testimonials-track.track-left  { animation: scrollLeft  35s linear infinite; }
.testimonials-track.track-right { animation: scrollRight 40s linear infinite; }

.testimonials-track:hover { animation-play-state: paused; }

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03) rotate(0.5deg);
  box-shadow: 0 8px 32px rgba(13,122,90,0.15);
}

.testimonial-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-color);
  margin-bottom: 16px;
}

.testimonial-card .highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author .author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading-color);
  line-height: 1.2;
}

.testimonial-author .author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 991px)
══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .section-padding { padding: 64px 0; }

  /* Hero */
  .hero-section {
    background-attachment: scroll;
    min-height: 100svh;
    padding: 100px 0 60px;
    align-items: center;
  }

  /* Stats */
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }

  /* Navbar */
  #mainNavbar .navbar-collapse { background: var(--navbar-bg); padding: 16px 20px; border-radius: 16px; margin-top: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
  #navMenu .nav-link { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
  #navMenu .nav-link:last-child { border-bottom: none; }
  .nav-cta { margin-top: 8px; width: 100%; text-align: center; }

  /* Why section */
  .why-visual { min-height: 300px; }
  .why-visual img { min-height: 300px; }

  /* Plans */
  .plan-card { padding: 28px 20px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 767px)
══════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Tipografía */
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-padding { padding: 52px 0; }

  /* Hero — fondo unicolor en móvil */
  .hero-section {
    padding: 100px 0 70px;
    background-image: none !important;
    background-color: #036256;
  }
  /* Mostrar imagen del asesor solo en móvil */
  .hero-asesor-img { display: block !important; }
  .hero-badge { font-size: 0.75rem; padding: 5px 12px; }
  .hero-desc { font-size: 0.97rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  /* Kitty badge */
  .kitty-badge-wrap { justify-content: center; }

  /* Stats */
  .stat-number { font-size: 2rem; }
  .stat-item { padding: 20px 10px; }

  /* Servicios */
  .service-card { padding: 24px 20px; }
  .service-icon { width: 52px; height: 52px; font-size: 1.3rem; }

  /* Medicina prepagada */
  .dark-section .row.g-5 { --bs-gutter-y: 2rem; }
  .benefit-card { padding: 20px 16px; }
  .benefit-list li { font-size: 0.9rem; }

  /* Planes */
  .plan-card { padding: 24px 18px; }
  .plan-name { font-size: 1.3rem; }
  .price-amount { font-size: 1.8rem; }
  .payment-section { padding: 24px 16px; }
  .payment-section .d-flex { flex-direction: column; }
  .payment-section .btn { width: 100%; }

  /* Por qué */
  .why-item { flex-direction: column; gap: 8px; }
  .why-num { align-self: flex-start; }
  .why-visual { min-height: 240px; }
  .why-visual img { min-height: 240px; }

  /* Testimonios */
  .testimonial-card { width: 280px; padding: 18px; }
  .testimonials-track-wrapper::before,
  .testimonials-track-wrapper::after { width: 40px; }

  /* Contacto */
  .contact-section .row.g-5 { --bs-gutter-y: 2rem; }
  .contact-info-item { flex-direction: column; gap: 6px; }

  /* Footer */
  .footer-logo { height: 36px; }
  .footer-social a { width: 34px; height: 34px; font-size: 0.85rem; }
  .site-footer .row { text-align: center; }
  .footer-links { padding-left: 0; list-style: none; }

  /* WhatsApp FAB */
  .whatsapp-fab { bottom: 18px; right: 18px; width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Small phones (≤ 480px)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .navbar-brand .logo { height: 36px; }
  .plan-card { border-radius: 16px; }
  .service-card { border-radius: 16px; }
  .testimonial-card { width: 260px; }
  .section-tag { font-size: 0.72rem; }
}
