/* =========================
   TRANSICIÓN ENTRE PÁGINAS
   Entrada: la página aparece subiendo suavemente.
   Salida: main.js agrega .pagina-saliendo al hacer clic en un enlace interno.
   Para cambiar la velocidad ajusta los segundos (y SALIDA_MS en main.js).
========================= */

body {
  animation: pagina-entrada 0.6s ease-out backwards;
}

@keyframes pagina-entrada {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.pagina-saliendo {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease-in, transform 0.35s ease-in;
}

/* Respeta a quien desactivó las animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
  body,
  body.pagina-saliendo {
    animation: none;
    transition: none;
  }
}

/* =========================
   NAVBAR
========================= */

.navbar {
  background-color: #fff !important;
  padding: 20px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.navbar-nav {
  margin: 0 auto;
  gap: 10px;
}

.navbar-brand img {
  height: 60px;
  margin: 40px;
}

.navbar-nav .nav-link {
  color: #0093ff !important;
  font-size: 18px;
  font-family: "Inter Tight", sans-serif;
  padding: 13px 20px;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
}

.btn-cita {
  background-color: #ff8a00;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  padding: 12px 26px;
  margin: 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn-cita:hover {
  background-color: #e67c00;
  color: #fff;
}

/* =========================
   CARRUSEL
========================= */

.carousel-item img {
  max-width: 99%;
  height: auto;
  margin: 0 auto;
}

/* =========================
   CARD AGENDA CITA
========================= */

.card-agenda {
  max-width: 1200px;
  margin: 80px auto 100px;
  padding: 40px 50px;
  background: #fff;
  border-radius: 30px;
  box-shadow:
    0 0 0 3px #cfeaff,
    0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.card-agenda-text {
  text-align: center;
  flex: 1;
}

.card-agenda-text h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 26px;
  color: #0093ff;
  margin-bottom: 10px;
}

.card-agenda-text h4 {
  font-family: "Inter Tight", sans-serif;
  font-size: 24px;
  color: #ff8a00;
  margin: 0;
}

.card-agenda-btn {
  flex-shrink: 0;
}

.card-agenda-btn a {
  background-color: #ff8a00;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.card-agenda-btn a:hover {
  background-color: #e67c00;
  color: #fff;
}

/* =========================
   SECCIÓN HORARIOS
========================= */

.section-horarios {
  margin: 80px auto;
  text-align: center;
}

.section-horarios h2 {
  font-family: "Inter Tight", sans-serif;
  font-size: 36px;
  margin-bottom: 60px;
}

.section-horarios h2 span.blue {
  color: #0093ff;
}

.section-horarios h2 span.orange {
  color: #ff8a00;
}

/* =========================
   CARDS SUCURSALES
========================= */

.cards-sucursales {
  display: flex;
  justify-content: center;
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  flex-wrap: nowrap;
}

/* El enlace es el elemento de la fila: todas las tarjetas miden lo mismo */
.cards-sucursales .card-link {
  flex: 0 1 230px;
  display: flex;
}

.card-sucursal {
  width: 100%;
  min-height: 360px;
  background: #fff;
  border-radius: 28px;
  padding: 30px 20px;
  text-align: center;
  box-shadow:
    0 0 0 3px #cfeaff,
    0 12px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

/* ICONO */
.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #0093ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon img {
  width: 36px;
  height: 36px;
}

/* TEXTO */
.card-sucursal h4 {
  font-family: "Inter Tight", sans-serif;
  font-size: 18px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.card-sucursal p {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

strong {
  font-weight: 800 !important;
}

.card-agenda-text strong,
.card-sucursal strong,
.section-horarios strong {
  font-weight: 800 !important;
}

/* =========================
   SECCIÓN VIDEO
========================= */

.section-video {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-video video {
  width: 100%;
  border-radius: 28px;
  box-shadow:
    0 0 0 3px #cfeaff,
    0 12px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* =========================
   SERVICIOS
========================= */

.section-servicios {
  max-width: 1300px;
  margin: 100px auto;
  padding: 0 40px;
}

.titulo-servicios {
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 36px;
  margin-bottom: 60px;
}

.titulo-servicios .blue {
  color: #0093ff;
}
.titulo-servicios .orange {
  color: #ff8a00;
}

/* CONTENEDOR */
.servicios-container {
  display: flex;
  gap: 50px;
  align-items: center;
}

/* LISTA */
.servicios-lista {
  position: relative; /* referencia para el indicador deslizante */
  list-style: none;
  padding: 0;
  margin: 0;
  width: 300px;
}

.servicios-lista li {
  position: relative;
  z-index: 1; /* el texto va encima del indicador */
  padding: 16px 25px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.35s ease;
}

.servicios-lista li.activo {
  color: #fff;
}

/* Pastilla azul que se desliza hasta el servicio activo (la mueve inicio.js) */
.servicios-lista li.servicios-indicador {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: linear-gradient(90deg, #0093ff, #7cc9ff);
  pointer-events: none;
}

.servicios-indicador.animado {
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .servicios-indicador.animado {
    transition: none;
  }
}

/* CARD */
.servicio-card {
  flex: 1;
  background: #fff;
  border-radius: 32px;
  padding: 25px;
  display: flex;
  gap: 30px;
  align-items: center;

  box-shadow:
    0 0 0 3px #cfeaff,
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.servicio-card img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.servicio-info h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.servicio-info p {
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* =========================
   CARRUSEL GENERAL
========================= */

.carousel-item img {
  max-width: 99%;
  height: auto;
  margin: 0 auto;
}

/* =========================
   SEGUNDO CARRUSEL - BORDE AZUL TIPO GLOW
========================= */
.segundo-carrusel-container {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
}

.segundo-carrusel-container .carousel-azul {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #cfeaff,
    0 0 0 6px #e8f4ff,
    0 8px 30px rgba(0, 147, 255, 0.15);
  background-color: #fff;
  position: relative;
}

.segundo-carrusel-container .carousel-azul::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 15px rgba(0, 147, 255, 0.1);
  pointer-events: none;
  z-index: 1;
}

.segundo-carrusel-container .carousel-azul .carousel-inner {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.segundo-carrusel-container .carousel-azul .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.segundo-carrusel-container .carousel-azul img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background-color: #fff;
  padding: 20px;
}

.segundo-carrusel-container .carousel-azul .carousel-control-prev,
.segundo-carrusel-container .carousel-azul .carousel-control-next {
  display: none !important;
}

.segundo-carrusel-container .carousel-azul .carousel-indicators {
  display: none !important;
}

/* Responsive para el segundo carrusel */
@media (max-width: 768px) {
  .segundo-carrusel-container {
    max-width: 90%;
    margin: 60px auto;
  }

  .segundo-carrusel-container .carousel-azul {
    box-shadow:
      0 0 0 2px #cfeaff,
      0 0 0 4px #e8f4ff,
      0 6px 20px rgba(0, 147, 255, 0.12);
    border-radius: 15px;
  }

  .segundo-carrusel-container .carousel-azul::after {
    border-radius: 15px;
  }

  .segundo-carrusel-container .carousel-azul .carousel-inner,
  .segundo-carrusel-container .carousel-azul img {
    border-radius: 15px;
  }

  .segundo-carrusel-container .carousel-azul img {
    height: 300px;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .segundo-carrusel-container {
    margin: 40px auto;
    padding: 0 15px;
  }

  .segundo-carrusel-container .carousel-azul img {
    height: 250px;
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .segundo-carrusel-container .carousel-azul img {
    height: 200px;
    padding: 10px;
  }
}

/* =========================
   TERCER CARRUSEL
========================= */

.tercer-carrusel-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0093ff, #7cc9ff);
}

.carrusel-fondo {
  position: absolute;
  inset: 0;
}

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

.tercer-carrusel-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.carrusel-titulo {
  text-align: center;
  margin-bottom: 60px;
}

.carrusel-titulo h2 {
  font-size: 42px;
  color: #fff;
}

.carousel-azul {
  background: #fff;
  border-radius: 30px;
  padding: 40px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 🔥 FIX CRÍTICO */
.carrusel-3-imagenes.desktop-version .carousel-item {
  width: 100%;
}

/* Deslizamiento suave de 1.5s (tiempo entre cambios: data-bs-interval en el HTML) */
#carouselTercerDesktop .carousel-item,
#carouselTercerMobile .carousel-item {
  transition: transform 1.5s ease-in-out;
}

.carrusel-3-imagenes.desktop-version .imagenes-grupo {
  display: flex;
  width: 100%;
  gap: 30px;
}

.imagen-item {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.imagen-item:hover {
  transform: translateY(-8px);
}

.imagen-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

/* MOBILE */
.carrusel-3-imagenes.mobile-version img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 20px;
}

/* VISIBILIDAD */
@media (min-width: 769px) {
  .desktop-version {
    display: block;
  }
  .mobile-version {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-version {
    display: none;
  }
  .mobile-version {
    display: block;
  }
}

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

/* Tablets y laptops pequeñas */
@media (max-width: 1200px) {
  .card-agenda {
    max-width: 95%;
    padding: 35px 40px;
  }

  /* 3 arriba y 2 centradas abajo */
  .cards-sucursales {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 800px;
  }

  .tercer-carrusel-container {
    max-width: 95%;
    padding: 0 30px;
  }

  .carrusel-3-imagenes.desktop-version .imagen-item img {
    height: 250px;
  }

  .carrusel-3-imagenes.mobile-version img {
    height: 350px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .navbar-brand img {
    height: 50px;
    margin: 20px;
  }

  .btn-cita {
    margin: 20px;
    padding: 10px 22px;
    font-size: 15px;
  }

  .card-agenda {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 30px;
  }

  .section-horarios h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .servicios-container {
    flex-direction: column;
    gap: 30px;
  }

  .servicios-lista {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .servicios-lista li {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-bottom: 10px;
  }

  .servicio-card {
    flex-direction: column;
    text-align: center;
  }

  .segundo-carrusel-container {
    max-width: 90%;
  }

  .carousel-azul img {
    height: 350px;
  }

  .carrusel-titulo h2 {
    font-size: 36px;
  }

  .carrusel-3-imagenes.desktop-version {
    padding: 30px;
  }

  .carrusel-3-imagenes.desktop-version .imagenes-grupo {
    gap: 20px;
  }

  .carrusel-3-imagenes.desktop-version .imagen-item {
    max-width: calc(33.333% - 14px);
    padding: 15px;
  }

  .carrusel-3-imagenes.desktop-version .imagen-item img {
    height: 220px;
  }

  .carrusel-3-imagenes.mobile-version img {
    height: 300px;
  }
}

/* =========================
   MEDIA QUERIES PARA CAMBIAR VERSIONES DEL TERCER CARRUSEL
========================= */

/* Desktop: mostrar versión 3 imágenes, ocultar versión móvil */
@media (min-width: 769px) {
  .carrusel-3-imagenes.desktop-version {
    display: block;
  }

  .carrusel-3-imagenes.mobile-version {
    display: none;
  }
}

/* Móvil: mostrar versión 1 imagen, ocultar versión desktop */
@media (max-width: 768px) {
  .carrusel-3-imagenes.desktop-version {
    display: none;
  }

  .carrusel-3-imagenes.mobile-version {
    display: block;
  }

  /* Ajustes para móvil */
  .tercer-carrusel-section {
    padding: 60px 0;
  }

  .tercer-carrusel-container {
    padding: 0 20px;
  }

  .carrusel-titulo {
    margin-bottom: 40px;
  }

  .carrusel-titulo h2 {
    font-size: 32px;
  }

  .carrusel-3-imagenes.mobile-version .carousel-azul {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.3),
      0 0 0 4px rgba(255, 255, 255, 0.1),
      0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
  }

  .carrusel-3-imagenes.mobile-version .carousel-inner,
  .carrusel-3-imagenes.mobile-version img {
    border-radius: 15px;
  }

  .carrusel-3-imagenes.mobile-version img {
    height: 300px;
    padding: 15px;
  }

  /* Segundo Carrusel en móvil */
  .segundo-carrusel-container {
    max-width: 90%;
    margin: 60px auto;
  }

  .carousel-azul {
    box-shadow:
      0 0 0 2px #cfeaff,
      0 0 0 4px #e8f4ff,
      0 6px 20px rgba(0, 147, 255, 0.12);
    border-radius: 15px;
  }

  .carousel-azul::after {
    border-radius: 15px;
  }

  .carousel-azul .carousel-inner,
  .carousel-azul img {
    border-radius: 15px;
  }

  .carousel-azul img {
    height: 300px;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .segundo-carrusel-container {
    margin: 40px auto;
    padding: 0 15px;
  }

  .carousel-azul img {
    height: 250px;
  }

  /* Tercer Carrusel móvil */
  .tercer-carrusel-section {
    padding: 40px 0;
  }

  .tercer-carrusel-container {
    padding: 0 15px;
  }

  .carrusel-titulo h2 {
    font-size: 28px;
  }

  .carrusel-3-imagenes.mobile-version img {
    height: 250px;
    padding: 12px;
  }

  .carrusel-3-imagenes.mobile-version .carousel-azul {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.3),
      0 0 0 3px rgba(255, 255, 255, 0.1),
      0 4px 15px rgba(0, 0, 0, 0.12);
  }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
  .carousel-azul img {
    height: 200px;
  }

  .tercer-carrusel-section {
    padding: 30px 0;
  }

  .carrusel-titulo h2 {
    font-size: 24px;
  }

  .carrusel-3-imagenes.mobile-version img {
    height: 220px;
    padding: 10px;
  }
}

/* =========================
   FAMILIA NINNUS - CORREGIDO
========================= */

.familia-ninnus-section {
  position: relative;
  padding: 60px 0; /* Un poco menos de padding para móvil */
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}

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

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

.familia-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Gap reducido para mayor flexibilidad */
  padding: 20px;
}

/* Deslizamiento suave de 1.5s entre grupos de logos
   (el tiempo entre cambios se define con data-bs-interval en el HTML) */
#carouselFamiliaNinnus .carousel-item {
  transition: transform 1.5s ease-in-out;
}

/* Todos los logos ocupan la misma caja; object-fit los ajusta sin deformarlos */
.familia-slide .banner-img {
  width: 220px;
  height: 90px;
  max-width: 28%; /* En pantallas angostas la caja se reduce igual para todos */
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Ajustes para Tablets y Móviles */
@media (max-width: 768px) {
  .familia-ninnus-section {
    padding: 40px 0;
  }

  .familia-slide {
    gap: 20px;
    /* Si los logos siguen viéndose mal en horizontal, 
       descomenta la siguiente línea para ponerlos uno sobre otro: */
    /* flex-direction: column; */
  }

  .familia-slide .banner-img {
    height: 60px;
    max-width: 30%;
  }
}

/* Ajustes para móviles muy pequeños (iPhone SE, etc) */
@media (max-width: 480px) {
  .familia-slide {
    gap: 15px;
  }

  .familia-slide .banner-img {
    height: 50px;
    max-width: 30%;
  }
}

/* =========================
   FOOTER NINNUS - DISEÑO FINAL
========================= */

.main-footer {
  position: relative;
  padding: 80px 40px;
  font-family: "Inter Tight", sans-serif;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

/* Capa de fondo HTML */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.footer-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenedor de información */
.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr; /* Proporción similar a la imagen */
  gap: 40px;
  width: 100%;
}

/* Estilos Columna 1 */
.footer-logo {
  height: 85px; /* Tamaño un poco más grande para destacar */
  margin-bottom: 20px;
}

.footer-info-img {
  width: 280px; /* Ajuste para que se vea como el badge naranja */
  height: auto;
  margin-bottom: 20px;
}

.slogan {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
}

/* Redes Sociales SVG */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a img {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.social-links a:hover img {
  transform: translateY(-3px);
}

/* Estilos de Texto Sucursales */
.footer-col h4 {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-col p {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.footer-col strong {
  font-weight: 700;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .footer-info-img,
  .social-links {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}
.carousel-link {
  display: block;
  cursor: pointer;
}

.carousel-link img {
  pointer-events: none; /* evita conflictos con el swipe */
}

/* =========================
   TARJETA MASCOTAS - CORREGIDO
========================= */

.mascota-card {
  background: #fff;
  border-radius: 36px;
  padding: 36px;
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 900px; /* Más ancho para acomodar mejor el contenido */
  margin: 0 auto;
  box-shadow:
    0 0 0 4px #cfeaff,
    0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Imagen - Ajustada para que sea más grande como en la referencia */
.mascota-img {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 28px; /* Bordes más redondeados */
  overflow: hidden;
  background: #eaf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #cfeaff; /* Borde azul suave */
}

.mascota-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cambiado de cover a contain para ver toda la mascota */
  padding: 14px;
  border-radius: 24px;
}

/* Texto - Ajustado para coincidir con la segunda imagen */
.mascota-info {
  flex: 1;
}

.mascota-info h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #ff8a00;
  margin-bottom: 15px;
  line-height: 1.1;
  text-transform: uppercase;
}

.mascota-info h3 span {
  display: block; /* Para que "EL JAGUAR" vaya en línea separada */
  font-size: 26px;
  color: #0093ff;
  margin-top: 5px;
}

.mascota-info p {
  font-family: "Inter Tight", sans-serif;
  font-size: 16px; /* Un poco más grande para mejor lectura */
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* Controles del carrusel */
#carouselMascotas .carousel-control-prev,
#carouselMascotas .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 147, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#carouselMascotas .carousel-control-prev:hover,
#carouselMascotas .carousel-control-next:hover {
  background-color: rgba(0, 147, 255, 0.4);
  opacity: 1;
}

/* Espacio reservado: a los lados para las flechas (no tapan la tarjeta ni el texto
   de al lado) y arriba/abajo para que el borde y la sombra no se recorten */
#carouselMascotas .carousel-item {
  padding: 10px 60px 40px;
}

#carouselMascotas .carousel-control-prev {
  left: 0;
}

#carouselMascotas .carousel-control-next {
  right: 0;
}

#carouselMascotas .carousel-control-prev-icon,
#carouselMascotas .carousel-control-next-icon {
  width: 25px;
  height: 25px;
}

/* =========================
   RESPONSIVE TARJETA MASCOTAS
========================= */

/* Laptops pequeñas y tablets: imagen arriba y texto abajo (lado a lado no cabe) */
@media (max-width: 1199px) {
  .mascota-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 560px;
    padding: 30px;
    gap: 24px;
  }

  .mascota-img {
    width: 230px;
    height: 230px;
    margin: 0 auto;
  }

  .mascota-info h3 {
    font-size: 28px;
  }

  .mascota-info h3 span {
    font-size: 24px;
  }

}

@media (max-width: 768px) {
  .mascota-card {
    padding: 25px;
    border-radius: 28px;
    max-width: 500px;
  }

  .mascota-img {
    width: 220px;
    height: 220px;
  }

  .mascota-info h3 {
    font-size: 24px;
  }

  .mascota-info h3 span {
    font-size: 20px;
  }

  .mascota-info p {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .mascota-card {
    padding: 20px;
    max-width: 400px;
  }

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

  .mascota-info h3 {
    font-size: 22px;
  }

  .mascota-info h3 span {
    font-size: 18px;
  }

  #carouselMascotas .carousel-control-prev,
  #carouselMascotas .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #carouselMascotas .carousel-item {
    padding: 8px 46px 30px;
  }

  #carouselMascotas .carousel-control-prev-icon,
  #carouselMascotas .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 400px) {
  .mascota-card {
    padding: 15px;
    max-width: 320px;
  }

  .mascota-img {
    width: 180px;
    height: 180px;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  text-decoration: none;
}
/* =========================
   AJUSTE SUCURSALES MÓVIL
========================= */
@media (max-width: 768px) {
  .cards-sucursales {
    display: flex;
    flex-direction: column; /* Apila las tarjetas */
    align-items: center; /* Las centra en pantalla */
    gap: 20px;
    padding: 0 15px;
  }

  .cards-sucursales .card-link {
    flex: none; /* En columna no aplica el ancho base de escritorio */
    display: flex; /* Importante: permite que el hijo crezca */
    width: 100%; /* Ocupa el ancho disponible */
    max-width: 340px; /* Controla el ancho máximo de la tarjeta */
    text-decoration: none;
  }

  .card-sucursal {
    width: 100%;
    /* Definimos una altura mínima para que todas sean iguales 
       aunque una tenga 2 líneas de texto y otra 4 */
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    padding: 30px 20px;
    margin: 0 auto; /* Asegura el centrado */
  }

  .card-sucursal p {
    margin-bottom: 0; /* Evita espacios extraños al final */
    flex-grow: 1; /* Hace que el texto intente ocupar el espacio central */
    display: flex;
    align-items: center; /* Centra el texto del párrafo internamente */
    justify-content: center;
  }
}
