/* ======= ENCABEZADO ======= */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.navbar {
  padding: 1rem 0;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 527;
  transition: color 0.3s;
  margin-right: 38px; /* espacio entre enlaces */
}

.navbar .nav-link:hover {
  color: #13939f !important; /
}

.navbar-brand img {
  max-height: 111px;
}

.icofont-navigation-menu{
  color: aliceblue;
}


/* Baner */
.banner {
  background: url("../images/otorrino.jpeg") no-repeat center center;
  background-size: cover; /* <-- hace que la imagen se adapte al contenedor */
  position: relative;
  min-height: 65vh;
  height: auto;
  display: flex;
  align-items: center;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); /* capa oscura azul */
}

.banner .block {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: 81px;
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff; 
}

.banner span {
  font-size: 1rem;
  color: #ffffff;
}

.btn-main-2 {
  background: #13939f;
  color: #fff;
  border-radius: 30px;
  padding: 12px 25px;
  transition: all 0.3s;
}

.btn-main-2:hover {
  background: #ffffff;
  color: #26aa0b;
  transform: scale(1.05);
}

/* Baner About */
.about {
  background: url("../images/reserva/atencion%20medica.jpg") no-repeat;
  background-size: cover; /* <-- hace que la imagen se adapte al contenedor */
  position: relative;
  min-height: 50vh;
  height: auto;
  display: flex;
  align-items: center;
}

.about::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); 
}

.about .block {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: 81px;
}
.about h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff; 
}


/* Baner servicios */
.servicios {
  background: url("../images/22.jpg") no-repeat;
   background-size: cover; /* <-- hace que la imagen se adapte al contenedor */
  position: relative;
  min-height: 50vh;
  height: auto;
  display: flex;
  align-items: center;
  
}

.servicios::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); 
}

.servicios .block {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: 81px;
}
.servicios h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff; 
}


/* Baner blog */
.blog {
  background: url("../images/reserva/investigacion-medica.jpg")  no-repeat;
   background-size: cover; /* <-- hace que la imagen se adapte al contenedor */
  position: relative;
  min-height: 50vh;
  height: auto;
  display: flex;
  align-items: center;
  
}

.blog::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); 
}

.blog .block {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: 81px;
}
.blog h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff; 
}

/* Baner contacto */
.banner-contacto {
  background: url("../images/reserva/Otorrinolaringologo-que-es.jpg") no-repeat;
   background-size: cover; /* <-- hace que la imagen se adapte al contenedor */
  position: relative;
  min-height: 50vh;
  height: auto;
  display: flex;
  align-items: center;
  
}

.banner-contacto::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); 
}

.banner-contacto .block {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: 81px;
}
.banner-contacto h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff; 
}


/* ======= FEATURES ======= */
.features {
  padding: 76px 0;
  background: #f7f9fc;
  text-align: center;
}
.feature-item {
  flex-basis: 33.33%;
  margin: 7px 10px;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 15px 15px 15px 15px;
  box-shadow: 9px 2px 30px 3px rgba(0, 42, 106, 0.1);
}

.feature-icon i {
  font-size: 50px;
  color: #1b2a49;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.feature-item:hover .feature-icon i {
  transform: rotate(15deg) scale(1.1);
}


/* Sección de testimonios */
.testimonial-2 {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(19, 147, 159, 0.61), #26aa0b);
}

.testimonial-block {
  background: #ffffff;
  border-radius: 999px; /* redondo como burbuja */
  padding: 28px 63px;
  margin: 40px auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.35s ease;
  max-width: 711px;
}


/* Efecto hover */
.testimonial-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* Piquito tipo chat */
.testimonial-block::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 60px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: -4px 4px 12px rgba(0,0,0,0.05);
}

/* Avatar */
.testimonial-thumb img {
  width: 90px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid rgba(19, 147, 159, 0.7);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Nombre y cargo */
.testimonial-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d2d2d;
  margin-top: 8px;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

/* Texto */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.testimonial-block  p{
  font-size: 1rem;
  line-height: 1.7;
  color: #000000;
  text-align: center;
  padding: 0 50px;
  position: relative;
}
.testimonial-block  h4{
  font-size: 1.5rem;
  line-height: 1.7;
  color: #26aa0b;
  text-align: center;
  padding: 0 50px;
  position: relative;
}
.testimonial-text::before {
  content: "“";
  font-size: 3rem;
  color: #ff7eb3;
  position: absolute;
  top: -25px;
  left: -10px;
  opacity: 0.15;
}

/* ======= FOOTER COMPACTO CON IMAGEN ======= */
.footer {
  background: url("../images/bg/slider-bg-1.jpg") no-repeat center center / cover;
  position: relative;
  color: #fff;
  padding: 10px 0 10px; /* más bajo y compacto */
  margin-top: 50px;
  overflow: hidden;
}

/* Capa azul oscuro semitransparente */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.49); /* azul profundo con opacidad */
  z-index: 1;
}

/* Contenedor interno */
.footer > .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 23px;
  text-align: left;
}

/* Logo más pequeño y limpio */
.footer .logo img {
  max-width: 168px;
  margin-bottom: 34px;
}

/* Títulos */
.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #13a3b3; 
  margin-bottom: 14px;
}

/* Texto y enlaces */
.footer p,
.footer a {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #13a3b3;
}

/* Redes sociales pequeñas y elegantes */
.footer .list-inline {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.footer .list-inline li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #13a3b3;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer .list-inline li a:hover {
  background: #fff;
  color: #13a3b3;
  transform: scale(1.05);
}

/* Línea inferior del footer */
.footer-btm {
  border-top: -3px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
  margin-top: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: #bbb;
  position: relative;
  z-index: 2;
}

/*==== Back to Top  */
.backtop {
  display: inline-block;
  background: #13939f;
  color: #fff;
  padding: 13px;
  border-radius: 54%;
  font-size: 20px;
  transition: 0.3s;
}

.backtop:hover {
  background: #ffffff;
  transform: translateY(-3px);
}
 
/* ===== Responsive ===== */
@media (max-width: 991px) {
  .footer .list-inline {
    justify-content: center;
    margin-top: 20px;
  }

  .widget-contact {
    text-align: center;
    margin-top: 30px;
  }

  .footer-btm {
    flex-direction: column;
    text-align: center;
   width: 100%;
  }

  .backtop {
    margin-top: 15px;
  }
}


/* CSS para la sección ORL llamativa */
:root{
  --bg1: #0f172a;
  --bg2: #08122b;
  --glass: rgba(255,255,255,0.06);
  --accent: linear-gradient(90deg,#6ee7b7 0%, #3b82f6 50%, #a78bfa 100%);
  --text: #e6eef8;
  --muted: #b9c6d9;
  --accent-color: #38bdf8;
  --radius: 18px;
  --btn-radius: 12px;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* contenedor general */
.orl-hero{
  position: relative;
  padding: 48px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(1200px 400px at 10% 10%, rgba(59,130,246,0.08), transparent 10%),
              radial-gradient(1000px 300px at 90% 90%, rgba(167,139,250,0.05), transparent 10%),
              linear-gradient(180deg,var(--bg1), var(--bg2));
  color: var(--text);
  overflow: hidden;
}

/* fondo tenue con formas */
.orl-hero__bg{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(59,130,246,0.06), transparent 10%),
                    radial-gradient(circle at 80% 70%, rgba(167,139,250,0.05), transparent 8%);
  filter: blur(18px);
  z-index: 0;
}

/* Card (centrada, efecto glass) */
.orl-hero__card{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px) saturate(120%);
  overflow: visible;
}

/* Icons container (decorativo) */
.orl-icons{
  position: absolute;
  left: -12px;
  top: -24px;
  display: flex;
  gap: 12px;
  transform: rotate(-8deg);
  z-index: 1;
  pointer-events: none;
}

.orl-icon{
  color: rgba(255,255,255,0.12);
  opacity: 0.95;
  transform-origin: center;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(3,7,18,0.5));
}
.orl-icon--ear{ width:88px; height:88px; animation-delay: 0s; }
.orl-icon--nose{ width:72px; height:72px; animation-delay: 0.4s; transform: translateY(8px) rotate(6deg); }

/* Contenido textual */
.orl-hero__content{
  padding: 8px 6%;
  position: relative;
}

/* Título con efecto gradiente recortado */
.orl-title{
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.02;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-block;
  max-width: 38ch;
}

/* Frase resaltada con gradiente y animación de brillo */
.orl-title__accent{
  display: inline-block;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-left: 8px;
  position: relative;
  animation: slideShine 4.5s linear infinite;
}

/* subtitulo */
.orl-sub{
  margin: 8px 0 18px 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 66ch;
}

/* botones */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(90deg,#22c55e 0%, #06b6d4 100%);
  color: #052026;
  box-shadow: 0 8px 20px rgba(6,182,212,0.12), inset 0 -2px 0 rgba(255,255,255,0.06);
}
.btn-primary:hover{ transform: translateY(-4px); box-shadow: 0 18px 36px rgba(6,182,212,0.16); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover{ transform: translateY(-3px); box-shadow: 0 10px 20px rgba(2,6,23,0.35); }

/* Animaciones */
@keyframes float{
  0%{ transform: translateY(0) rotate(-2deg); opacity: 0.95; }
  50%{ transform: translateY(-10px) rotate(4deg); opacity: 1; }
  100%{ transform: translateY(0) rotate(-2deg); opacity: 0.95; }
}

@keyframes slideShine{
  0%{ background-position: -120% 0; }
  50%{ background-position: 50% 0; }
  100%{ background-position: 220% 0; }
}

/* Responsivo: columna única en móvil */
@media (max-width: 820px){
  .orl-hero__card{
    grid-template-columns: 1fr;
    padding: clamp(18px, 5vw, 28px);
    text-align: center;
  }
  .orl-icons{ left: unset; right: 8px; top: -36px; transform: rotate(0); }
  .orl-hero__content{ padding: 0; }
  .orl-title{ font-size: clamp(1.6rem, 6vw, 2rem); max-width: 70ch; }
  .orl-sub{ margin-left: 0; margin-right: 0; }
  .orl-cta{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
}

/* Pequeños ajustes de accesibilidad para contraste en pantallas pequeñas */
@media (prefers-reduced-motion: reduce){
  .orl-icon, .orl-title__accent{ animation: none; }
  .btn{ transition: none; }
}

.orl-sections {
  padding: 60px 0;
}

.orl-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.orl-card:hover {
  transform: translateY(-6px);
}

.orl-card__icon i {
  font-size: 40px;
  color: #133e9f;
  margin-bottom: 15px;
}

.orl-card__tag {
  font-size: 14px;
  font-weight: bold;
  color: #26aa0b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.orl-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 0;
  color: #133e9f;
}

.orl-card__list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.orl-card__icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  color: #133e9f;
}

.orl-card__text {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.orl-card__cta .btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: #13939f;
  color: #fff;
}

.btn-primary:hover {
  background: #1d7d09;
}

.highlight {
  border: 2px solid #133e9f;
}

.accent {
  color: #13939f;
  font-weight: 600;
}

/*secion de aseguradoras*/
.carrusel {
  width: 100%;
  margin: 91px auto;
  text-align: center;
  color: #27a90c;
}

.carrusel-contenedor {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 136px; /* << importante: da altura al contenedor */
}

/* Estado por defecto: fuera de pantalla a la derecha y oculto */
.carrusel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72%;
  transform: translateX(100%); /* por defecto fuera a la derecha */
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  z-index: 1;
}

/* Visible */
.carrusel-item.activo {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

/* Salida (cuando la slide sale) */
.salir-izquierda {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.salir-derecha {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

/* Preparar slide entrante: lo colocamos fuera (antes de añadir .activo) */
.preparar-izquierda {
  transform: translateX(-100%);
  opacity: 0;
}

.preparar-derecha {
  transform: translateX(100%);
  opacity: 0;
}

.carrusel-item img {
  /* usar altura del contenedor para que no colapse */
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.carrusel-item p {
  font-size: 20px;
  margin-top: 3px;
  color: #133e9f;
}

.carrusel-controles {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anterior, .siguiente {
  background-color: #13939f;
  color: #fff;
  border: none;
  padding: 8px 11px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.anterior:hover, .siguiente:hover {
  background-color: #26aa0b;
}

.anterior { margin-right: 20px; }
.siguiente { margin-left: 20px; }

.anterior::before { content: "\2190"; font-size: 24px; }
.siguiente::after  { content: "\2192"; font-size: 24px; }



/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 691px) {

  /* Navbar */
  .navbar .nav-link {
    margin-right: 0;
    display: block;
    padding: 10px;
    text-align: center;
  }

  .navbar-brand img {
    max-height: 117px;
  }

  /* Banner */
  .banner {
    height: auto; /* dejar que el contenido defina la altura */
    padding: 60px 30px;
    text-align: center;
    background-size: cover;
    background-position: center;
  }
  .banner h1 { font-size: 1.8rem; }
  .banner span { font-size: 0.9rem; }
  
  /* Banner About */
  .about {
    height: auto; /* dejar que el contenido defina la altura */
    padding: 60px 30px;
    background-size: cover;
    background-position: center;
  }
  /* Banner servicios */
  .servicios {
    height: auto; /* dejar que el contenido defina la altura */
    padding: 60px 30px;
    background-size: cover;
    background-position: center;
  }
  /* Banner blog */
  .blog {
    height: auto; /* dejar que el contenido defina la altura */
    padding: 60px 30px;
    background-size: cover;
    background-position: center;
  }
  /* Banner contacto */
  .banner-contacto {
    height: auto; /* dejar que el contenido defina la altura */
    padding: 60px 30px;
    background-size: cover;
    background-position: center;
  }
  
  /* Features */
  .features {
    padding: 40px 10px;
  }
  .feature-item {
    flex-basis: 100%; /* que las tarjetas se apilen */
    margin: 10px 0;
    padding: 25px 20px;
  }

  /* Appointment */
  .appoinment {
    padding: 40px 20px;
    text-align: center;
  }
  .appoinment-img img {
  margin-right: -48px;
    margin-top: 20px;
  }

  /* Carrusel aseguradoras */
  .carrusel {
    margin: 84px auto;
  }
  .carrusel-contenedor{
  height: 187px; 
}
  .carrusel-item img {
    height: 61px;
    max-width: 100%;
  }
  .carrusel-item p {
    font-size: 20px;
  }
  
  .carrusel-controles {
  margin-top: -13px;
  display: flex;
  justify-content: center;
  align-items: center;
}

  /* Footer */
  .footer {
    padding: 40px 20px;
    text-align: center;
  }
  .footer .logo img {
    max-width: 160px;
  }
  
  .footer .list-inline {
    justify-content: center;
  }
  .footer-btm {
    flex-direction: column;
    font-size: 16px;
  }
  .widget-contact h4 {
  justify-content: center;

}
  
  .footer-contact-block .p {
    justify-content: center;
}
   .footer > .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  .footer .list-inline {
    justify-content: center;
  }

  
  .icofont-navigation-menu{
  color: aliceblue;
}
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.77) !important;
    padding: 20px;
    border-radius: 0 0 87px 87px;
  }

  .navbar-nav .nav-link {
    color: #fff !important;
  }
  
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.77) !important;
    padding: 20px;
    border-radius: 0 0 87px 87px;
  }

  .navbar-nav .nav-link {
    color: #fff !important;
  }
}


/*/estilos de sobre mi*/
/*SECCIÓN PERFIL DOCTOR*/
.doctor-profile {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eaf5fa 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-card {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  max-width: 1200px;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 1px solid rgba(19,147,159,0.2);
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
}

/* --- LADO FOTO --- */
.doctor-photo {
  position: relative;
  background: linear-gradient(135deg, #13939f 0%, #26aa0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.doctor-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.04);
}

/* --- LADO INFO --- */
.doctor-info {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #133e9f;
  margin-bottom: 8px;
}

.doctor-info h4 {
  font-size: 1.1rem;
  color: #13939f;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.doctor-bio {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* --- LISTA CV con íconos --- */
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.cv-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
  color: #333;
}

.cv-list li i {
  font-size: 18px;
  color: #13939f;
  margin-right: 12px;
}

/* --- BOTONES --- */
.doctor-actions {
  margin-top: 10px;
}

.doctor-actions .btn {
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  margin-right: 15px;
  transition: all 0.3s ease;
}


.doctor-actions .btn-outline {
  border: 2px solid #13939f;
  color: #13939f;
  background: transparent;
}

.doctor-actions .btn-outline:hover {
  background: #13939f;
  color: #fff;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 891px) {
  .doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-photo {
    padding: 20px;
  }

  .doctor-photo img {
    max-width: 260px;
    margin: auto;
    border-radius: 50%;
  }

  .doctor-info {
    padding: 30px 20px;
  }

  .cv-list li {
    justify-content: center;
  }

  .doctor-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* ===== SECCIÓN ÁREAS ===== */
.areas {
  padding: 43px 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f2faff 100%);
  text-align: center;
}

.areas-container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #133e9f;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 50px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

.area-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(19,147,159,0.15);
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(19,147,159,0.25);
}

.area-card i {
  font-size: 3rem;
  color: #13939f;
  margin-bottom: 20px;
}

.area-card h3 {
  font-size: 1.3rem;
  color: #133e9f;
  margin-bottom: 12px;
}

.area-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .areas-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}


/* ====== SECCIÓN ¿QUÉ ES LA OTORRINOLARINGOLOGÍA? ====== */
.about-orl {
  padding: 4px 20px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eaf5fa 100%);
}

.about-orl__card {
  max-width: 1100px;
  margin: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(19,147,159,0.15);
  text-align: center;
}

.about-orl__card h2 {
  font-size: 20px;
  font-weight: 652;
  color: #133e9f;
  margin-bottom: 39px;
}

.about-orl__card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 25px;
}

.about-orl__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
  margin: 40px 0;
}

.orl-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  border: 1px solid rgba(19,147,159,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.orl-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(19,147,159,0.25);
}

.orl-box h3 {
  font-size: 1.2rem;
  color: #133e9f;
  margin-bottom: 12px;
}

.orl-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.about-orl__goal {
  margin-top: 30px;
  padding: 20px 30px;
  background: #f9fdfd;
  border-left: 6px solid #13939f;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .about-orl__grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .about-orl__grid {
    grid-template-columns: 1fr;
  }
}


/*  ESTILOS GENERALES ======== */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/*  SECCIÓN DE TÍTULO */
.page-title {
  position: relative;
  background: url('images/banner-bg.jpg') center center/cover no-repeat;
  padding: 120px 0;
}


/* ======== SECCIÓN DE SERVICIOS ======== */
.section.service-2 {
  padding: 80px 0;
  background-color: #f9fbfc;
}

.service-block {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-block img {
  width: 125%;
  height: 194px;
  object-fit: cover;
  transition: transform 0.5s ease;
  text-align: center;
  
}

.service-block:hover img {
  transform: scale(1.05);
}

.service-block .content {
  padding: 25px;
  text-align: center;
}

.service-block h4 {
  color: #26aa0b;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-block p {
  color: #555;
  font-size: 0.95rem;
}

/* ======== SECCIÓN CTA ======== */
.cta-page {
  background: linear-gradient(135deg, #13939f 0%, #26aa0b 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-page::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.divider {
  width: 60px;
  height: 4px;
  background: #fff;
  margin-bottom: 25px;
  border-radius: 2px;
}

/* ======== BOTONES ======== */
.btn-main-2 {
  background-color: #13939f;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-main-2:hover {
  background-color: #133e9f;
  color: #fff;
  border-color: #133e9f;
  transform: scale(1.05);
}

/* responsivo de servicios */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 2rem;
  }

  .service-block img {
    height: 200px;
  }

  .cta-content h2 {
    font-size: 1.3rem;
  }
}

/* Contenedor general */
.blog-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}


/* Sección de artículos centrada */
.articulos {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center; /* centra las tarjetas horizontalmente */
  gap: 2rem;
  padding: 2rem 0;
}

.articulos h1 {
  text-align: center;
  color: #26aa0b;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

/* Tarjetas centradas y con ancho máximo */
.articulo-card {
  background: linear-gradient(145deg, #ffffff, #e6f7e6);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  cursor: pointer;
  border-left: 6px solid #13939f;
  width: 100%;
  max-width: 700px; /* ancho máximo para que no se estire demasiado */
}

.articulo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  background: linear-gradient(145deg, #f0fff0, #d4ffd4);
}

.articulo-titulo {
  color: #0074b7;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
}

.articulo-titulo::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #26aa0b;
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Contenido colapsable */
.articulo-contenido {
  display: none;
  margin-top: 1rem;
  line-height: 1.7;
  color: #333;
  transition: all 0.4s ease;
}

.articulo-card.active .articulo-contenido {
  display: block;
}

/* Listas dentro de artículos */
.articulo-contenido ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .articulos {
    padding: 1rem 0;
  }
  .articulo-card {
    max-width: 100%;
  }
}

/* ======== SECCIÓN DE CONTACTO ======== */

/* ======== ESTRUCTURA BASE ======== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======== SECCIÓN DE CONTACTO ======== */
.contact-info {
  padding: 70px 0;
  background-color: #f7f9fc;
  text-align: center;
}

.contact-block {
  background: #fff;
  border-radius: 18px;
  padding: 42px 34px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 46px;
  margin-block: 37px;
 
 
}

.contact-block:hover {
  transform: translateY(-6px);
}

.contact-block i {
  font-size: 40px;
  color: #13939f;
  margin-bottom: 15px;
}

.contact-block h5 {
  font-size: 1.2rem;
  color: #133e9f;
  margin-bottom: 8px;
}

.contact-block p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ======== FORMULARIO + MAPA ======== */
.appoinment {
  padding: 75px 0;
  background: linear-gradient(rgba(0,0,50,0.7), rgba(0,0,50,0.7));
  color: #fff;
}

.appoinment .row.align-items-center {
  display: flex;
  flex-wrap: wrap; /* ← ahora se adapta correctamente */
  align-items: stretch;
  gap: 40px;
}

.appoinment .col-lg-6 {
  flex: 1 1 50%;
  max-width: 50%;
}

.appoinment .appoinment-wrap {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.appoinment .form-control {
  border-radius: 16px;
  border: none;
  padding: 10px 12px;
  width: 100%;
}

.btn-main {
  background: #13939f;
  color: #fff;
  border-radius: 16px;
  padding: 10px;
  transition: all 0.3s;
}

.btn-main:hover {
  background: #26aa0b;
}

.appoinment .appoinment-img iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: none;
}

/* ======== MEDIA QUERIES ======== */

/* Tablets */
@media (max-width: 991px) {
  /* Contacto */
  .contact-info .row {
    justify-content: center;
  }

  .contact-info .col-lg-4,
  .contact-info .col-md-6,
  .contact-info .col-sm-6 {
    flex: 1 1 80%;
    max-width: 80%;
    margin-bottom: 25px;
  }

  .contact-block i {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .contact-block h5 {
    font-size: 1.1rem;
  }

  .contact-block p {
    font-size: 0.9rem;
  }

  /* Formulario + mapa */
  .appoinment .row.align-items-center {
    flex-direction: column;
    gap: 30px;
  }

  .appoinment .col-lg-6 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .appoinment .appoinment-img iframe {
    min-height: 350px;
  }
}

/* Móviles */
@media (max-width: 576px) {
  .contact-info {
    padding: 50px 0;
  }

  .contact-block {
    padding: 25px 18px;
  }

  .contact-block i {
    font-size: 28px;
  }

  .contact-block h5 {
    font-size: 1rem;
  }

  .contact-block p {
    font-size: 0.85rem;
  }

  h2.title-color {
    font-size: 1.4rem;
    text-align: center;
  }

  .appoinment-form input,
  .appoinment-form textarea {
    width: 100%;
  }

  .btn-main {
    width: 100%;
  }

  .appoinment .appoinment-img iframe {
    min-height: 300px;
  }
}
/* Desktop: formulario + mapa lado a lado */
@media (min-width: 992px) {
  .appoinment .row.align-items-center { 
    display: flex; 
    flex-wrap: nowrap;
    /* mantiene mapa al lado */ 
    align-items: stretch; 
    gap: 40px; 
  }
}

/* ==== BOTÓN FLOTANTE WHATSAPP ==== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;       
  right: 25px;        
  z-index: 1000;     
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.whatsapp-icon {
  width: 130px;       
  height: 130px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}


@media (max-width: 576px) {
  .whatsapp-icon {
  width: 90px;       
  height: 90px;
  }
  
  }
