/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

/* =========================
   BANNER PEDIATRA
========================= */
.banner-pediatra {
  position: relative;
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
}

.banner-pediatra-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.banner-pediatra-fondo .svg-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-top-text {
  margin-bottom: 20px;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
}

.banner-top-text h2 {
  font-weight: 800;
  font-size: clamp(24px, 5vw, 38px);
}

.banner-top-text h2 span {
  color: #ff8a00; /* naranja Ninnus (igual que .text-primary-orange) */
}

.banner-top-text p {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 500;
}

.banner-white-card {
  background-color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.banner-card-text p {
  color: #0093ff; /* azul Ninnus */
  font-weight: 600;
}

.img-doctor {
  max-width: 80%;
  height: auto;
}

.text-primary-blue {
  color: #0093ff; /* azul Ninnus */
}

.text-primary-orange {
  color: #ff8a00; /* naranja Ninnus */
}

/* =========================
   SERVICIOS HIGHLIGHTS
========================= */
.card-servicio-highlight {
  background: #fff;
  border-radius: 20px;
  padding: 20px 15px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 147, 255, 0.1);
}

.card-servicio-highlight h4 {
  color: #676767;
  font-weight: 700;
}

.card-servicio-highlight p {
  color: #777;
  font-size: 14px;
}

.icon-circle {
  width: 55px;
  height: 55px;
  background-color: #0093ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.icon-circle img {
  width: 28px;
  filter: brightness(0) invert(1);
}

/* =========================
   SUCURSALES
========================= */
.sucursal-carrusel-section {
  position: relative;
  padding: 40px 0; /* ⬅️ ALTURA DEL FONDO */
  overflow: hidden;
}

.sucursal-texto h2 {
  color: #0093ff; /* AZUL ORIGINAL */
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 15px;
}

.sucursal-texto h2 span {
  color: #ff8a00; /* naranja Ninnus (igual que .text-primary-orange) */
}

.sucursal-texto p {
  color: #555;
  font-size: 17px;
  max-width: 90%;
}

/* =========================
   IMÁGENES SUCURSAL
========================= */
.img-wrapper-25 {
  width: 35%;
  display: flex;
  justify-content: center;
}

/* La altura sale de la proporción real de las fotos: se ven completas, sin recortes */
.img-infra {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1213;
  object-fit: cover;
  border-radius: 40px 5px 40px 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Las tarjetas de sucursal son verticales e incluyen dirección y botón de Maps */
#carouselSucursales .img-infra {
  aspect-ratio: 2433 / 4375;
}

/* =========================
   CARRUSELES: DESLIZAMIENTO SUAVE
   (tiempo entre cambios: data-bs-interval en el HTML)
========================= */
#carouselInfraestructura .carousel-item,
#carouselMascotas .carousel-item,
#carouselSucursales .carousel-item {
  transition: transform 1.5s ease-in-out;
}

/* Mascotas: todas las tarjetas miden lo mismo (la del texto más largo),
   así la página no "brinca" al cambiar de mascota */
#carouselMascotas .carousel-inner {
  display: flex;
}

#carouselMascotas .carousel-item {
  display: block;
  flex: 0 0 100%;
  visibility: hidden;
}

#carouselMascotas .carousel-item.active,
#carouselMascotas .carousel-item-next,
#carouselMascotas .carousel-item-prev {
  visibility: visible;
}

#carouselMascotas .mascota-card {
  height: 100%;
}

/* =========================
   INFRAESTRUCTURA
========================= */
.infraestructura-carrusel-section {
  position: relative;
  padding: 30px 0; /* ⬅️ ALTURA DEL FONDO */
  overflow: hidden;
}

.infraestructura-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.infraestructura-fondo .svg-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infraestructura-texto h2 {
  color: #ffffff;
  font-size: 34px;
  margin-bottom: 10px;
}

.infraestructura-texto h2 span {
  color: #ff8a00; /* naranja Ninnus (igual que .text-primary-orange) */
}

.infraestructura-texto p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

/* =========================
   CARRUSEL MASCOTAS
========================= */
.img-wrapper-mascota {
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.img-wrapper-mascota img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   FAMILIA NINNUS
========================= */
.familia-ninnus-section {
  position: relative;
  padding: 50px 0;
  overflow: hidden;
}

.familia-fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.familia-slide {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.familia-slide .banner-img {
  max-height: 70px;
  object-fit: contain;
}

/* =========================
   SOLUCIONES DIGITALES
========================= */
.titulo-soluciones {
  font-weight: 800;
  color: #0093ff;
  font-size: 32px;
  text-transform: uppercase;
}

.titulo-soluciones span {
  color: #ff8a00;
}

.solucion-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.solucion-icono {
  width: 80px;
  height: 80px;
  background-color: #ff8a00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.solucion-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.solucion-texto h4 {
  color: #676767;
  font-size: 18px;
  font-weight: 700;
}

.solucion-texto p {
  color: #777;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
  .sucursal-texto,
  .infraestructura-texto {
    text-align: center;
  }

  .img-wrapper-25 {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .sucursal-carrusel-section {
    padding: 25px 0;
  }

  .sucursal-texto h2 {
    font-size: 24px;
  }

  .sucursal-texto p {
    font-size: 14px;
  }

  .infraestructura-carrusel-section {
    padding: 20px 0;
  }

  .infraestructura-texto h2 {
    font-size: 22px;
  }

  .infraestructura-texto p {
    font-size: 14px;
  }

  .img-wrapper-mascota {
    width: 200px;
    height: 200px;
  }

  .familia-slide {
    gap: 15px;
  }
}
