/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  background: linear-gradient(135deg, #f9fbfd, #ffffff);
  position: relative;
  overflow: hidden;
  padding-bottom: 10px; /* espacio extra para que la caja no tape el hero */
}

.hero-badge {
  background: #e8f6fb;
  color: #0074bd;
  font-weight: 600;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.hero-title {
  font-weight: 700;
  font-size: 2.0rem;
  line-height: 1.3;
  color: #2a307c;
}

.hero-sublead {
  font-size: 1rem;
  margin-top: 15px;
  max-width: 520px;
  color: #444;
}

.hero-img {
  max-height: 620px;
  object-fit: contain;
}

/* ===========================
   BOTONES CTA (UNIFICADOS)
=========================== */
.btn-cta,
.about-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(90deg, #1d29d4, #00b2e5);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all .3s ease;
  
}

.btn-cta:hover,
.about-cta:hover {
  background: linear-gradient(90deg, #00b2e5, #2a307c);
  transform: translateY(-3px);
  
}

/* ===========================
   FEATURE BOX
=========================== */
.feature-box {
  position: relative;
  margin: -70px auto 60px; /* flota entre hero y about */
  width: 92%;
  max-width: 1140px;
  background: #fff;
  border-radius: 16px;
  padding: 25px 30px;
  box-shadow: 0 18px 50px rgba(20, 40, 80, 0.08);
  z-index: 10;
}

.feature-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2a307c, #00b2e5);
  flex-shrink: 0;
}

.feature-card h6 {
  color: #2a307c;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.feature-card p {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 6px;
}
.feature-card a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0074bd;
  text-decoration: none;
}
.feature-card a:hover {
  color: #2a307c;
  text-decoration: underline;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-hero {
  padding-top: 40px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #b5dae9 0%, #b1f7f3 100%);
}

.about-label {
  display: inline-block;
  font-size: 0.78rem;
  color: #022558;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-title {
  font-size: 2rem;
  color: #2a307c;
  font-weight: 800;
  line-height: 1.18;
  margin: 6px 0 12px 0;
  letter-spacing: -0.2px;
  max-width: 720px;
}

.about-lead {
  color: #48525a;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 560px;
  text-align: left;
}
.about-lead strong {
  color: #2a307c;
  font-weight: 700;
}

.about-doctor {
  border-radius: 8px;
  max-width: 100%;
  transition: transform .4s ease;
}
.about-doctor:hover {
  transform: translateY(-6px);
}

.about-card {
  background: linear-gradient(180deg, #2A307C 0%, #2A307C 100%);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(42,48,124,0.18);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2A307C;
  font-size: 1.2rem;
  
  flex-shrink: 0;
}

.card-item-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 3px 0;
}
.card-item-sub {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .feature-box {
    margin: 30px auto;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-img {
    max-height: 360px;
  }
  .about-title {
    font-size: 1.6rem;
  }
  .about-card {
    padding: 18px;
  }
  .icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  .icon-circle {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  .feature-card h6 {
    font-size: 1rem;
  }
  .feature-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-card .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  .about-doctor {
    max-height: 420px;
    object-fit: cover;
  }
  .about-title {
    font-size: 1.4rem;
  }
  .about-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}




/* ===========================
   SERVICES SECTION
=========================== */
.services-section {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
  padding: 60px 0;
}

/* Encabezado */
.services-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #009fdb;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.services-title {
  font-size: 2rem;
  font-weight: 800;
  color: #2a307c;
  margin-bottom: 12px;
}

.services-lead {
  color: #555;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 20px;
}

/* ===========================
   BOTONES DE SERVICIO
=========================== */
.service-btn {
  background: #fff;
  border: none; /* ❌ quitamos borde para evitar problemas en hover */
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  color: #2a307c;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 48, 124, 0.08);

  /* 🔹 Tamaño fijo para uniformidad */
  width: 100%;
  height: 140px;

  /* Centrado de contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-btn i {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #00b2e5;
}

.service-btn span {
  font-size: 0.95rem;
}

/* Estado activo/hover */
.service-btn.active,
.service-btn:hover {
  background: linear-gradient(135deg, #2a307c, #00b2e5);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 178, 229, 0.35); /* ✅ sombra pareja sin bordes */
}

.service-btn.active i,
.service-btn:hover i {
  color: #fff;
}

/* ===========================
   CONTENIDO DE SERVICIOS
=========================== */
.service-box {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.service-box.active {
  display: block;
}

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

/* ===========================
   RESPONSIVE
=========================== */

/* Pantallas grandes (≥ 1200px) */
@media (min-width: 1200px) {
  .service-btn {
    height: 90px;
    font-size: 1rem;
  }
  .service-btn i {
    font-size: 1.4rem;
  }
}

/* Laptops / pantallas medianas (≤ 992px) */
@media (max-width: 992px) {
  .service-btn {
    height: 110px;
  }
}

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
  .service-btn {
    height: 90px;
    font-size: 0.9rem;
  }
  .service-btn i {
    font-size: 1.5rem;
  }
}

/* Celulares (≤ 576px) */
@media (max-width: 576px) {
  .service-btn {
    height: 110px;
    font-size: 0.85rem;
  }
  .service-btn i {
    font-size: 1.6rem;
  }
}

/* Celulares muy pequeños (≤ 360px) */
@media (max-width: 360px) {
  .service-btn {
    height: 120px;
    font-size: 0.75rem;
  }
  .service-btn i {
    font-size: 1.4rem;
  }
}

/* ===========================
   Todas las imágenes con 
   img-fluid + rounded + shadow
=========================== */
img.img-fluid.rounded.shadow {
  width: 70%;         /* se ajusta al ancho de su contenedor */
  max-width: 580px;    /* límite de ancho */
  height: auto;        /* mantiene proporción */
  object-fit: cover;   /* recorta si la caja es más chica */
  display: block;
  margin: 0 auto;      /* centra las imágenes */
}

/* Responsivo */
@media (max-width: 992px) {
  img.img-fluid.rounded.shadow {
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  img.img-fluid.rounded.shadow {
    max-width: 120%;   /* ocupa todo el ancho en móviles */
  }
}









.stats-section {
  background: linear-gradient(90deg, #2a307c, #00b2e5);
  color: #ffffff;
  padding: 10px 0;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* para pantallas grandes sigue adaptable */
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  flex: 1 1 25%; /* 4 columnas iguales en desktop */
  padding: 20px 10px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* 🔹 Responsive ajustes */
@media (max-width: 768px) {
  .stat-card {
    flex: 1 1 20%; /* 4 columnas en una sola fila horizontal */
    padding: 15px 5px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
}



