/* Banner */
.banner {
  background-image: 
    linear-gradient(rgba(44,62,80,0.6), rgba(44,62,80,0.6)),
    url('../images/pages/alergologo-pediatra-cerca-de-benito-juarez-en-cdmx-y-edo-mex.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  min-height: 700px;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 220px 0;
}

/* Títulos */
.banner h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
  animation: fadeInDown 1s ease-out;
}

.banner p {
  font-size: 22px;
  margin-top: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  animation: fadeInUp 1.2s ease-out;
}

/* Botones */
.banner-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease-out;
}

.banner-buttons a {
  padding: 15px 40px;
  font-size: 20px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

/* Colores de los botones */
.banner-buttons .btn-whatsapp {
  background: #25D366;
}
.banner-buttons .btn-phone {
  background: #FF5722;
}

/* Hover dinámico */
.banner-buttons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Animaciones */
@keyframes fadeInDown {
  0% { opacity:0; transform: translateY(-50px); }
  100% { opacity:1; transform: translateY(0); }
}
@keyframes fadeInUp {
  0% { opacity:0; transform: translateY(50px); }
  100% { opacity:1; transform: translateY(0); }
}


/* Biografía */
.biografia-section {
  background: #f9f9f9;
  padding: 100px 0;
}

.biografia-section h2 {
  font-size: 38px;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 20px;
}

.biografia-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* Imagen del doctor */
.biografia-img {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.biografia-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.biografia-img:hover img {
  transform: scale(1.05);
}

/* Botón */
.biografia-section .btn-primary {
  background: #FF5722;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.biografia-section .btn-primary:hover {
  background: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* ===============================
   SECCIÓN BENEFICIOS
================================ */
.beneficios-section {
  background: linear-gradient(180deg, #e0f7fa, #f4fbff);
  padding: 100px 0;
}

/* Título */
.beneficios-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #2C3E50;
  display: inline-block;
  position: relative;
}

/* Línea */
.beneficios-section .underline {
  width: 80px;
  height: 4px;
  background: #FF5722;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Layout */
.beneficios-section .row {
  display: flex;
  flex-wrap: wrap;
}

.beneficios-section .col-md-4,
.beneficios-section .col-sm-6 {
  display: flex;
  margin-bottom: 40px;
}

/* TARJETA CON GRADIENTE */
.benefit-card {
  background: linear-gradient(135deg, #4A90E2, #6EB0F1);
  color: white;
  border-radius: 24px;
  padding: 50px 30px 40px;
  width: 100%;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.1);
}

/* Hover */
.benefit-card:hover {
  transform: translateY(-14px);
  box-shadow:
    0 28px 55px rgba(0,0,0,0.18),
    0 55px 110px rgba(0,0,0,0.12);
}

/* ICONO LIMPIO */
.benefit-card .icon {
  margin-bottom: 22px;
}

.benefit-card .icon i {
  font-size: 42px;
  color: rgba(255,255,255,0.95);
}

/* Título */
.benefit-card h4 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

/* Texto */
.benefit-card p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .benefit-card {
    padding: 45px 25px 35px;
  }

  .benefit-card .icon i {
    font-size: 36px;
  }
}
/* ICONO CENTRADO PERFECTO */
.benefit-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.benefit-card .icon i {
  font-size: 42px;
  line-height: 1;
  display: block;
  color: rgba(255,255,255,0.95);
}





/* Sección Testimonios */
.testimonios-section {
  background: #f0f4f8;
  padding: 150px 0;
  text-align: center;
}

.testimonios-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #2C3E50;
  display: inline-block;
  margin-bottom: 10px;
}



/* Tarjetas de testimonios */
.testimonial-card {
  background: linear-gradient(135deg, #4A90E2, #6EB0F1);
  color: white;
  padding: 60px 30px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
}

.testimonial-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: #4A90E2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: absolute;
  top: 15px;
  left: calc(50% - 30px);
}

.testimonial-card p {
  font-style: italic;
  font-size: 18px;
  margin-top: 50px;
}

.testimonial-card h5 {
  margin-top: 20px;
  font-weight: 700;
}

/* Hover efecto */
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Owl Carousel nav */
.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 30px;
  color: #FF5722;
}

.owl-nav .owl-prev { left: -15px; }
.owl-nav .owl-next { right: -15px; }


/* Sección Preguntas Frecuentes */
.preguntas-section {
  background: #f8f9fb;
  padding: 100px 0;
}

.preguntas-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #2C3E50;
  display: inline-block;
  margin-bottom: 10px;
}

.preguntas-section .underline {
  width: 80px;
  height: 4px;
  background: #FF5722;
  display: block;
  margin: 10px 0 20px;
  border-radius: 2px;
}

.preguntas-section p {
  color: #555;
  font-size: 18px;
  max-width: 600px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.faq-question {
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px 20px 30px;
  display: none;
  font-size: 16px;
  color: #555;
}

.faq-img {
  width: 80%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 700px;
  max-height: 80vh;
}


