:root {
  --wp-red-original: #E05138;
  --wp-red-hover: #c43c24;
  --wp-navy: #032b4d;
  --wp-navy-dark: #021a2e;
  --wp-cyan: #00a8cc;
  --wp-cyan-hover: #008fae;
  --wp-aqua-light: #e6f6fa;
  --wp-orange: #ff751a;
  --wp-orange-hover: #e56006;
  --wp-yellow: #F3A612;
  --wp-gray-bg: #f8fafc;
  --wp-text-dark: #1e293b;
  --wp-text-muted: #64748b;
  --wp-card-shadow: 0 10px 25px -5px rgba(3, 43, 77, 0.08), 0 8px 10px -6px rgba(3, 43, 77, 0.04);
  --wp-card-hover-shadow: 0 20px 35px -5px rgba(3, 43, 77, 0.16), 0 10px 15px -5px rgba(3, 43, 77, 0.08);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--wp-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 1. TOP HEADER BAR ROJO ORIGINAL (#E05138) */
.top-header-bar {
  background: var(--wp-red-original);
  color: #ffffff;
  font-size: 0.83rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.top-header-bar a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-header-bar a:hover {
  color: #fff2f0;
  text-decoration: underline;
}

.top-badge-portal {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.top-badge-portal:hover {
  background: #ffffff;
  color: var(--wp-red-original) !important;
  text-decoration: none !important;
}

/* 2. NAVBAR PRINCIPAL (Blanco con acentos) */
.main-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand img {
  height: 54px;
  width: auto;
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: scale(1.03);
}

.nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--wp-navy) !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--wp-red-original) !important;
}

.dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(3, 43, 77, 0.12);
  border: 1px solid rgba(224, 81, 56, 0.2);
  padding: 10px;
}

.dropdown-item {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--wp-navy);
}

.dropdown-item:hover {
  background-color: #fef2f0;
  color: var(--wp-red-original);
}

/* Buttons */
.btn-cta-cita {
  background: linear-gradient(135deg, var(--wp-orange) 0%, #ff5400 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(255, 117, 26, 0.35);
  border: none;
  transition: all 0.25s ease;
}

.btn-cta-cita:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 117, 26, 0.45);
}

.btn-yellow-slide {
  background-color: var(--wp-yellow);
  color: #032b4d;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid var(--wp-yellow);
  box-shadow: 0 6px 18px rgba(243, 166, 18, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-yellow-slide:hover {
  background-color: #ffffff;
  color: var(--wp-navy);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-cyan {
  background-color: var(--wp-cyan);
  color: #ffffff;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 24px;
  border: none;
  transition: all 0.25s ease;
}

.btn-cyan:hover {
  background-color: var(--wp-cyan-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-navy {
  border: 2px solid var(--wp-navy);
  color: var(--wp-navy);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 22px;
  transition: all 0.25s ease;
}

.btn-outline-navy:hover {
  background-color: var(--wp-navy);
  color: #ffffff;
}

/* 3. HERO SLIDER GRANDE (CALCADO DEL ORIGINAL) */
.hero-original-slider {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  background-color: #011425;
}

.hero-slide-item {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding-bottom: 55px;
}

.hero-slide-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide-item:not(.active) {
  transform: scale(1.04);
}

/* Slide 1: Niño nadando */
.slide-nino-bg {
  background-image: url('/assets/slide-nino.png');
}

/* Slide 2: Bebé nadando */
.slide-bebe-bg {
  background-image: url('/assets/slide-bebe.png');
}

/* Overlay sutil para legibilidad de botones */
.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 5;
}

/* Indicadores / Paginación estilo Elementor */
.hero-dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--wp-red-original);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Controles prev/next */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: var(--wp-red-original);
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* Stats Counter Bar */
.stats-bar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(3, 43, 77, 0.09);
  padding: 30px 20px;
  margin-top: -35px;
  position: relative;
  z-index: 15;
}

.stat-item {
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--wp-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wp-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.bg-light-blue {
  background-color: #f1f9fc;
}

.section-tag {
  color: var(--wp-red-original);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  color: var(--wp-navy);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--wp-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Program Cards */
.program-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--wp-card-shadow);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--wp-card-hover-shadow);
  border-color: rgba(224, 81, 56, 0.4);
}

.program-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .program-img-wrap img {
  transform: scale(1.06);
}

.program-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--wp-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.program-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 10px;
}

.program-text {
  font-size: 0.92rem;
  color: var(--wp-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Sede Cards */
.sede-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--wp-card-shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.sede-card.active, .sede-card:hover {
  border-color: var(--wp-red-original);
  box-shadow: var(--wp-card-hover-shadow);
  transform: translateY(-4px);
}

.sede-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sede-info-item {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
}

.sede-info-item i {
  color: var(--wp-red-original);
  margin-top: 3px;
  font-size: 1rem;
}

.sede-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.btn-waze {
  background-color: #33ccff;
  color: #032b4d;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-maps {
  background-color: #ea4335;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

/* Pricing Cards */
.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--wp-card-shadow);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--wp-red-original);
  box-shadow: 0 15px 35px rgba(224, 81, 56, 0.18);
  transform: scale(1.03);
}

.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp-red-original);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 20px;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 6px;
}

.pricing-subtitle {
  font-size: 0.88rem;
  color: var(--wp-text-muted);
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--wp-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: 1.4rem;
  vertical-align: top;
  margin-right: 4px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--wp-text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}

.pricing-features li i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Reviews */
.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--wp-card-shadow);
  border: 1px solid #f1f5f9;
  height: 100%;
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wp-navy);
}

.reviewer-source {
  font-size: 0.78rem;
  color: #64748b;
}

/* Appointment Box */
.appointment-box {
  background: linear-gradient(135deg, var(--wp-navy) 0%, #033a69 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 25px 50px -12px rgba(3, 43, 77, 0.4);
}

.appointment-box .form-control, .appointment-box .form-select {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #0f172a;
}

/* Management Floating Badge */
.demo-management-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.btn-demo-badge {
  background: #0f172a;
  color: #ffffff;
  border: 2px solid var(--wp-red-original);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-demo-badge:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Footer */
footer.main-footer {
  background-color: var(--wp-navy-dark);
  color: #cbd5e1;
  padding: 60px 0 24px 0;
  font-size: 0.9rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--wp-red-original);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--wp-red-original);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 50px;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 991px) {
  .hero-original-slider { height: 50vh; min-height: 380px; }
  .stat-item { border-right: none; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; margin-bottom: 16px; }
  .stat-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 576px) {
  .hero-original-slider { height: 260px; min-height: 240px; }
  .btn-yellow-slide { font-size: 0.85rem; padding: 8px 18px; }
}

/* Submenús del Header Rojo Original */
.top-header-bar .nav-link {
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-header-bar .nav-link:hover {
  color: #ffe6e2 !important;
  text-decoration: none;
}

.top-header-bar .dropdown-menu-red {
  background-color: #E05138;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
}

.top-header-bar .dropdown-menu-red .dropdown-item {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 16px;
  transition: background-color 0.2s ease;
}

.top-header-bar .dropdown-menu-red .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.top-header-bar .login-item-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  object-fit: contain;
}

/* Corrección de Z-Index y Eliminación del Doble Triángulo en Header */
.top-header-bar {
  position: relative;
  z-index: 1035 !important;
}

/* Ocultar el caret automático de Bootstrap para que no salga doble */
.top-header-bar .dropdown-toggle::after {
  display: none !important;
}

.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-header-bar .dropdown-menu-red {
  background-color: #E05138 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
  padding: 6px 0 !important;
  z-index: 1060 !important;
  margin-top: 6px !important;
  min-width: 220px;
}

.top-header-bar .dropdown-menu-red .dropdown-item {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 9px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease !important;
}

.top-header-bar .dropdown-menu-red .dropdown-item:last-child {
  border-bottom: none;
}

.top-header-bar .dropdown-menu-red .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.18) !important;
  color: #ffffff !important;
  padding-left: 22px !important;
}

/* Apertura automática al pasar el mouse (Hover) como en el original */
@media (min-width: 992px) {
  .top-header-bar .nav-item.dropdown:hover .dropdown-menu-red {
    display: block !important;
    animation: headerFadeIn 0.2s ease forwards;
  }
}

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

/* Utilities para Alianzas, Newsletter y Video */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(3, 43, 77, 0.12) !important;
}

.shadow-xs {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-coral {
  background-color: var(--wp-red-original) !important;
  border-color: var(--wp-red-original) !important;
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.btn-coral:hover {
  background-color: var(--wp-red-hover) !important;
  border-color: var(--wp-red-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.newsletter-box {
  background: linear-gradient(135deg, #021a2e 0%, #032b4d 100%);
  border-top: 3px solid var(--wp-red-original);
}

.ratio-sedes-video {
  aspect-ratio: 16 / 9;
  max-height: 480px;
}
