/* =========================
   ESTILOS GENERALES
========================= */
:root {
  --ninnus-blue: #1A90FF;
  --ninnus-orange: #FF8A00;
  --ninnus-light-blue: #E3F2FD;
}


.pediatria-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem); /* Texto responsivo: crece con la pantalla */
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pediatria-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #f0f8ff;
  max-width: 500px;
  font-weight: 400;
  line-height: 1.5;
}

/* =========================
   TARJETA FLOTANTE (INFO)
========================= */
.info-card-ninnus {
  background: white;
  border: 2px solid #BDE0FF;
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(26, 144, 255, 0.1);
  margin-top: -60px; /* Sube la tarjeta sobre el banner */
  position: relative;
  z-index: 10;
}

.info-card-ninnus p {
  color: var(--ninnus-blue);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

/* =========================
   SECCIÓN CUÁNDO ACUDIR
========================= */
.section-cuando-acudir {
  padding: 80px 0;
  background-color: #fff; /* Fondo limpio */
}

.section-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.text-blue { color: var(--ninnus-blue); }
.text-orange { color: var(--ninnus-orange); }

/* Diseño de las Tarjetas (Grid) */
.quando-card {
  background: #fff;
  border: 2px solid #E0F2FF;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  cursor: default;
}

/* Efecto Hover en toda la tarjeta */
.quando-card:hover {
  transform: translateY(-8px);
  border-color: var(--ninnus-blue);
  box-shadow: 0 20px 40px rgba(26, 144, 255, 0.15);
}

.quando-img-container {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.quando-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* Transición suave para la imagen */
}

/* Zoom en la imagen al pasar el mouse sobre la tarjeta */
.quando-card:hover .quando-img-container img {
  transform: scale(1.08);
}

.quando-body {
  padding: 25px 20px;
  background: white;
  text-align: center;
  border-top: 1px solid #f0f9ff;
}

.quando-body p {
  color: var(--ninnus-blue);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}

/* =========================
   RESPONSIVE (MÓVIL)
========================= */
@media (max-width: 768px) {
  /* Banner: Oscurecer fondo para leer texto sobre la imagen en celular */
  .pediatria-banner {
    background-image: linear-gradient(rgba(26, 144, 255, 0.85), rgba(26, 144, 255, 0.85)), 
                      url("../img/especialidades/pediatria.png");
    background-position: center;
    text-align: center;
    min-height: auto;
    padding: 80px 0 100px 0; /* Espacio extra abajo para la tarjeta flotante */
  }

  .pediatria-subtitle {
    margin: 0 auto; /* Centrar subtítulo */
  }

  /* Tarjeta Info: Ajuste de márgenes en móvil */
  .info-card-ninnus {
    margin-top: -50px;
    padding: 25px 20px;
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .info-card-ninnus p {
    font-size: 0.95rem;
  }

  /* Grid: Imágenes más pequeñas en móvil */
  .quando-img-container {
    height: 200px;
  }
  
  .section-cuando-acudir {
    padding: 50px 0;
  }
}

/* =========================
   BOTÓN AGENDA (ESTILO EXACTO)
========================= */
.btn-agenda {
  background-color: #FF8A00 !important; /* El naranja vibrante de la imagen */
  color: #ffffff !important;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 35px;
  border-radius: 50px; /* Forma de píldora perfecta */
  border: none;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  
  /* Sombra suave y difuminada como se ve en el diseño */
  box-shadow: 0px 4px 12px rgba(255, 138, 0, 0.4); 
}

.btn-agenda:hover {
  background-color: #e67c00 !important;
  transform: translateY(-2px); /* Efecto de elevación al pasar el mouse */
  box-shadow: 0px 6px 18px rgba(255, 138, 0, 0.5);
}

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