/* ========== RESET y TIPOGRAFÍA ========== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* ========== HEADER (tipo Stripe, color verde) ========== */
.stripe-header {
  background-color: #ffffff; /* Fondo verde */
  color: #fff;
  position: relative;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #218838; /* Sutil borde */
}

/* Logo grande */
.stripe-header .logo-img {
  height: 180px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.stripe-header .logo-img:hover {
  transform: translateX(-5px) scale(1.05);
}
.click-anim {
  animation: pop 0.4s forwards;
}
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Enlaces del header */
.stripe-header .nav-links .nav-item-link {
  color: #000000;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  justify-content: center;
  align-items: center;
}
.stripe-header .nav-links .nav-item-link:hover {
  color: #5fe442;
  transform: scale(1.05);
}

/* Iconos a la derecha */
.stripe-header .icon-group .nav-icon-link {
  color: #000000;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.stripe-header .icon-group .nav-icon-link:hover {
  color: #5fe442;
  transform: scale(1.1);
}

/* Interfaz desplegable de inicio de sesión */
.login-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  animation: fadeIn 0.4s forwards;
  z-index: 999;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.login-dropdown form label {
  font-weight: 500;
  color: #333;
}
.login-dropdown form .btn-login {
  background: #28a745;
  color: #fff;
  border: none;
  width: 100%;
  transition: background 0.3s ease;
}
.login-dropdown form .btn-login:hover {
  background: #218838;
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.5s ease;
}
#preloader img {
  width: 400px;
  height: auto;
  animation: spin 6s infinite linear;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#preloader.fade-out {
  opacity: 0;
}

/* ========== COOKIE NOTICE ========== */
#cookieNotice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(40,167,69,0.9);
  color: #fff;
  padding: 1rem;
  display: none;
  z-index: 9998;
  font-family: 'Poppins', sans-serif;
}
#cookieNotice .cookie-text {
  margin: 0;
  padding-right: 1rem;
  font-size: 0.95rem;
}
#cookieNotice a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
#acceptCookiesBtn {
  margin-left: 1rem;
  border: none;
  background: #fff;
  color: #28a745;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
#acceptCookiesBtn:hover {
  background: #218838;
  color: #fff;
}

/* ========== BOTÓN FLOTANTE WHATSAPP ========== */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: #fff;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.btn-whatsapp:hover {
  background-color: #218838;
  color: #fff;
  text-decoration: none;
}

/* ========== CAROUSEL IMÁGENES/VIDEOS ========== */
.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 450px;
  object-fit: contain;
  background-color: #fff;
}
#campaignCarousel .carousel-item img {
  transition: transform 0.3s ease;
  cursor: pointer;
}
#campaignCarousel .carousel-item img:hover {
  transform: scale(1.05);
}

/* ========== FOOTER VERDE (another-footer) ========== */
.another-footer {
  background-color: #28a745;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.footer-section {
  color: #fff;
}
.footer-logo img.footer-img {
  max-height: 120px;
  margin-right: 1rem;
}
.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.footer-description {
  font-size: 0.95rem;
  color: #ffffffcc;
}
.footer-heading {
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #5fe442;
  text-decoration: underline;
}
.hr-light {
  border-color: rgba(255,255,255,0.2);
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.footer-social-icon {
  color: #fff;
  font-size: 1.6rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-social-icon:hover {
  transform: scale(1.2);
  color: #c62f8a;
}
.footer-social-icon:hover {
  transform: scale(1.2);
  color: #39c62f;
}
.another-footer {
  background-color: #28a745;
  color: #fff;
  width: 100%;
  margin: 0 auto;
}
.another-footer {
  padding-left: 100px;
}

/* ========== Contacto ========== */
.card {
  border-radius: 10px;
  overflow: hidden;
}
.card .card-body {
  padding: 2rem;
}
.btn.btn-success {
  background-color: #28a745;
  border: none;
  transition: background-color 0.3s ease;
}
.btn.btn-success:hover {
  background-color: #218838;
}
.fw-bold,
.fw-semibold {
  font-weight: 600;
}

/* ========== INDEX ACTU ========== */
/* ================= Horario ================= */
.horario-container {
  background-color: #ffffff;
  border-radius: 8px;
}
.horario-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #28a745;
}
.horario-table tbody tr:hover {
  background-color: #f1f1f1;
}
.highlight-day td {
  background-color: #eaffea;
  border-left: 4px solid #28a745;
}

/* Ajustes para la imagen del header */
.stripe-header .logo-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.stripe-header .logo-img:hover {
  transform: scale(1.05);
}

/* Ajuste de la sección de reseñas */
.bg-light {
  background-color: #f8f9fa !important;
}
.display-4 {
  font-size: 2.5rem;
}
.progress-bar.bg-warning {
  background-color: #ffc107 !important;
}

/* cerrar sesion animación */
@keyframes logoutAnimation {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* lectura */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
#content {
  flex: 1 0 auto;
}
.another-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* icons */
.footer-social-icon.instagram:hover {
  color: #ee83a7; /* Instagram */
}
.footer-social-icon.whatsapp:hover {
  color: #76e69f; /* WhatsApp */
}
.footer-social-icon.tiktok:hover {
  color: #95eada; /* TikTok */
}

/* Estilos de animación flash */
.flash-animate {
  animation: fadeBounce 1s ease-in-out forwards;
}
@keyframes fadeBounce {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.flash-fadeout {
  animation: fadeOut 1s ease forwards;
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* =============================
   SECCIÓN SERVICIOS (CARDS)
   ============================= */
.service-card {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #dcdcdc;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
  text-align: center;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: scale(1.05);
}
.card-img-container {
  position: relative;
  width: 100%;
  height: 450px; /* Aumenta la altura para ver más grande el video */
  background-color: #f8f9fa;
  overflow: hidden;
  border-radius: 20px;
}
.card-img-container video,
.card-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.service-title {
  font-weight: 600;
  margin-top: 0.5rem;
  color: #28a745;
}

/* ================================
   MEDIA QUERIES / RESPONSIVE
   ================================ */
@media (max-width: 576px) {
  .header-flash-container {
    position: static !important;
    transform: none !important;
    margin-top: 1rem;
  }
  .nav-links {
    margin-top: 1rem;
  }
  .icon-group {
    margin-top: 1rem;
    justify-content: center;
  }
  .ms-auto, .me-md-4 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}
/*--------------------------------------------------
  Responsive: Ajustes para pantallas menores a 768px
--------------------------------------------------*/
@media (max-width: 767.98px) {
  /* Ajustar los contenedores para un padding adecuado */
  .container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header: Apilar los elementos (logo, flash, usuario) */
  header.stripe-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Agrandar la imagen del header solo en móviles/tabletas */
  header.stripe-header a img {
    max-width: 350px;
    height: auto;
  }

  /* Navbar: Disponer los enlaces en columna, ocupando todo el ancho */
  nav.nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }
  nav.nav-links a {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Ocultar los iconos de iniciar sesión y cerrar sesión en móviles/tabletas */
  #userIcon,
  #logoutLink {
    display: none !important;
  }

  /* Ocultar la columna introductoria del footer */
  .footer-intro {
    display: none !important;
  }

  /* Footer: Reorganizar las columnas en vertical y alinear a la izquierda */
  footer.another-footer .row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Ajustar la sección de redes sociales */
  footer.another-footer .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 5rem;
    margin-bottom: 1rem;
    transform: translateX(-10px);
  }

  /* Ajustar el bloque de texto */
  footer.another-footer .text-center {
    font-size: 0.85rem;
    text-align: left !important;
    margin: 0;
    transform: translateX(-20px);
  }

  /* Ocultar carrusel principal en móviles */
  #heroCarousel {
    display: none !important;
  }

  /* Preloader: Centrarlo en dispositivos móviles */
  #preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }
  #preloader img {
    max-width: 300px;
    height: auto;
  }
}

