html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 20px;
  }
}

@media screen and (max-width: 992px) {
  html {
    font-size: 18px;
  }
  .carousel-item h6 {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  html {
    font-size: 15px;
  }
  nav .brand-logo {
    font-size: 1em; 
  }
  .carousel-item h6 {
    display: none;
  }
}

/* 📱 Móviles pequeños */


.carousel-item {
  position: relative;
}

.carousel-item h6 {
  display: none;
}

.carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-item a img {
  width: 100%;
  height: auto;
  display: block;
}


/* 📱 Móviles medianos */
@media screen and (min-width: 100px) and (max-width: 600px) {
  .carousel-item h6 {
    display: none;
  }
    nav .brand-logo {
    font-size: 1em; 
  }
}
@media (min-width: 1200px) {
  .carousel-item h6 {
    display: inline-block;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #212121;
    background-color: rgba(255, 255, 255, 0.60);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    z-index: 10;
    Width: 40%;
    line-height: 1.4;
  }
}

.hero-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding-top: 5vh; /* Ajusta verticalmente */
      text-align: center;
      color: white;
    }
    .hero-content h1 {
      font-size: 4rem;
      padding-top: 25vh; 
      font-weight: bold;
      text-shadow: 2px 2px 4px #000;
    }
    .hero-content p {
      font-size: 2.5rem;
      margin-bottom: 3.5rem;
      margin-left: 3rem;
      margin-right: 3rem;
      text-shadow: 1px 1px 2px #000;
    }


.hero-image {
  animation: pulse 3s infinite;
  padding-top: 4vh; 
}


@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}



.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.parallax-container {
  position: relative;
  height: 105vh;
}

.parallax-container .container {
  position: relative;
  z-index: 2;
}

.parallax-container .row {
  margin-bottom: 0;
}

.parallax img {
  opacity: 0.6;
  object-fit: cover;   /* mantiene proporción y llena */
  object-position: center; /* centra la parte importante */
  width: 100%;
  height: auto; 
} 

.parallax-content {
  position: absolute;
  bottom: 20rem;       /* distancia desde el borde inferior */
  left: 50%;
  padding: 0.5rem 1rem;
  text-align: center;
  width: 80%;            /* evita que se corte en pantallas pequeñas */
  max-width: 90%;      /* límite para que no se expanda demasiado */
}



.parallax-content h1 {
  margin:0 0 10px 0;
  padding-bottom: 5%;
}

.parallax-content .btn {
  margin-top: 10px;
}

.parallax-button {
  position: absolute;
  bottom: -10rem;       /* distancia desde el borde inferior */
  right: 5%;
  transform: translateX(-50%); /* centra horizontalmente */
}



nav ul li a {
  font-size: 1.2rem; 
}

.justificado {
  text-align: justify;
}



/*cookies*/
/* Banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--color-bg-light, #f9f9f9);
  border-top: 1px solid var(--color-border, #ccc);
  padding: 1rem 1rem 1.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.cookie-banner p {
  margin: 0;
  color: var(--color-text, #333);
}



.cookie-banner .btn-group {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner .btn-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  height: auto; /* evita altura fija que desplace el texto */
  line-height: 1.2;
  box-sizing: border-box;
}


.cookie-banner .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Modal de configuración */
#cookie-settings {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.cookie-modal {
  background: white;
  padding: 2rem;
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-heading, #212121);
}

.cookie-modal label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text, #333);
}

.cookie-modal .btn {
  margin-top: 1rem;
}

.cookie-modal .modal-content {
  max-height: 70vh;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--color-text, #333);
}

.cookie-modal h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cookie-modal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Centrado vertical del modal de política */
#cookie-policy-modal.modal {
  top: 25% !important;
  transform: translateY(-50%) !important;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10010; /* superior al banner y otros modales */
}

/* Card personalizada para opiniones */
.opiniones-card {
  margin: 2rem auto;
  max-width: 600px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.opiniones-card .card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

#graficoOpiniones {
  max-width: 100%;
  height: 220px;
  margin-top: 1rem;
  padding-inline: 1rem;
}





