* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
  }
  body {
    background: #ffffff;
    color: #333;
  }
  header {
    background: url('https://source.unsplash.com/1600x600/?machu-picchu,peru') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
  }
  nav {
    display: flex;
    justify-content: center;
    background-color: #800000;
    padding: 15px;
  }
  nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
  }
  nav a:hover {
    text-decoration: underline;
  }
  .welcome {
    padding: 40px 20px;
    text-align: center;
  }
  .destinos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 20px;
  }
  .card {
    background: rgb(255, 255, 255);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .card h3 {
    padding: 15px;
  }
  footer {
    background: #222;
    color: rgb(187, 187, 187);
    padding: 20px;
    margin-top: 40px;
  }
  
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .footer-left p, .footer-right {
    text-align: center;
  }
  .footer-left p {
    font-size: 12px;
  }
  .footer-awards {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .footer-awards img {
    width: 35px; /* Ajusta el tamaño de los premios */
    margin: 0 14px 0 22px ;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 0.8rem;
  }
  
  footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  header.hero {
    /*background: url('../IMAGENES/atractivos.jpg') no-repeat center center/cover;*/
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: zoomLoop 5s ease-in-out infinite alternate;
  }
  
  /* Animación de acercamiento y regreso */
  @keyframes zoomLoop {
    from {
      background-size: 100%;
    }
    to {
      background-size: 110%;
    }
  }
 
  header .overlay {
    background-color: rgba(0, 0, 0, 0.4); /* oscurece la imagen para que el texto destaque */
    padding: 40px;
    border-radius: 15px;
    color: white;
  }
  
  header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  header p {
    font-size: 1.5rem;
    font-weight: 400;
  }

  /* Estilo del nav transparente al inicio */
  nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    padding: 15px 0;
    transition: background-color 1s ease, box-shadow 1s ease;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
  }
  
  /* Estilo de enlaces del nav al inicio */
  nav.main-nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 570;
    transition: color 0.5s ease;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;  /* Cambia por 'Bebas Neue' si usas esa */

  }
  
  /* Hover verde */
  nav.main-nav a:hover {
    color: #064d2c; /* Verde como el del sitio de Perú Travel */
  }
  
  /* Al hacer scroll */
  nav.main-nav.scrolled {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Cambia color de texto al hacer scroll */
  nav.main-nav.scrolled a {
    color: #444; /* Gris oscuro */
  }
  
  /* Hover sigue verde al hacer scroll */
  nav.main-nav.scrolled a:hover {
    color: #00a859;
  }
  

  /*ESTILO PARA CATEGORIAS*/
  .categorias {
  background: white;
  padding: 40px 20px;
  text-align: center;
}
.categorias-titulo {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 600;
}
.categorias-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 40px;
}
.categoria-item {
  cursor: pointer;
  padding: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}
.categoria-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.categoria-item p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
  }
.categoria-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
.categoria-item.active p {
  color: #064d2c;
}
.categoria-item.active {
  border-bottom: 2px solid #064d2c;
}
.contenido-dinamico {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
.categoria-item img {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  
  .categoria-item:hover img,
  .categoria-item.active img {
    /* Verde #064d2c aplicado con filtros a íconos en negro puro */
    filter: invert(19%) sepia(11%) saturate(1602%) hue-rotate(108deg) brightness(91%) contrast(98%);
    transform: scale(1.05);
  }


  /*ESTILOS PARA LAS MINICATEGORIAS*/
  .bloque-dinamico {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
  }
  .contenido-cabecera {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .bloque-dinamico h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }  
  .bloque-dinamico p {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .btn-vermas {
    background: #e60000;
    color: white;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
  }
  .tarjetas {
    display: flex;
    justify-content: center; /* Centra las tarjetas */
    gap: 40px; /* Espacio controlado entre tarjetas */
    flex-wrap: wrap;
  }  
  .pepito-tarjetaz {
    display: flex;
    justify-content: center; /* Centra las tarjetas */
    gap: 40px; /* Espacio controlado entre tarjetas */
    flex-wrap: wrap;
    width: 100%;
  }
  
  .pepito-tarjeta {
    width: 100%; /* Ajusta el tamaño del contenedor para la imagen */
    height: auto;
    display: flex;
    justify-content: center;
  }
  
  .pepito {
    object-fit: contain; /* Mantiene la imagen completa dentro del contenedor */
    width: 80%;         /* Agranda la imagen al 200% del contenedor */
    height: auto;        /* Mantiene la proporción de la imagen */
    padding: 50px;       /* Añade espacio alrededor de la imagen */
  }
  
  
  
  .tarjeta {
    background: rgba(0, 0, 0, 0.6); /* Fondo negro semi-transparente */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 20px);
    text-align: center;
    position: relative; /* Asegura que los elementos dentro de esta tarjeta se posicionen correctamente */
  }
  
  .tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Añade transición suave al zoom de la imagen */
  }
  .tarjeta:hover img {
    transform: scale(1.09); /* Efecto de zoom pequeño */
  }
  
  .tarjeta h4, .tarjeta p {
    position: absolute; /* Esto permite que los textos se ubiquen encima de la imagen */
    left: 10px; /* Añade espacio desde el lado izquierdo */
    right: 10px; /* Añade espacio desde el lado derecho */
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro para el texto */
    padding: 10px;
    margin: 10;
  }
  
  .tarjeta h4 {
    font-size: 1.2rem;
    font-weight: bold;
    top: 10px; /* Coloca el título más cerca de la parte superior */
  }
  
  /* Estilos para los textos (descripción) que estarán inicialmente ocultos */
.tarjeta p {
  position: absolute;
  bottom: 10px; /* Asegura que el texto esté en la parte inferior */
  left: 10px;
  right: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro para el texto */
  padding: 10px;
  margin: 10px;
  visibility: hidden; /* Hacer que el texto sea invisible por defecto */
  opacity: 0;
  transition: opacity 0.3s ease; /* Transición suave para la visibilidad */
}

/* Mostrar la descripción cuando el mouse pase sobre la tarjeta */
.tarjeta:hover p {
  visibility: visible;
  opacity: 1;
}  
  .btn-vermas {
    background: #e60000;
    color: white;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
  }
  
/* Estilo para la sección de destinos */
.destinos {
  display: flex; /* Usamos flex para controlar el diseño de las imágenes */
  flex-direction: column; /* Apilar las imágenes verticalmente */
  align-items: center; /* Centrar las imágenes */
  gap: 30px; /* Espacio entre las imágenes */
  padding: 40px 20px;
  background-color: #ffffff;
}

.destinos h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.destino {
  width: 93%; /* Ocupa todo el ancho disponible */
  height: 210px; /* Ajusta la altura para hacer las imágenes rectangulares */
  margin-bottom: 30px; /* Espaciado entre las imágenes */
}

.destino-img {
  height: 100%; /* La imagen ocupa toda la altura del contenedor */
  background-size: cover; /* La imagen cubre el contenedor */
  background-position: center; /* La imagen está centrada */
  position: relative;
  transition: transform 0.3s ease; /* Transición para el efecto de zoom */
  border-radius: 100px;
}

.destino-info {
  position: absolute;
  right: 0; /* Pegado al lado derecho */
  top: 50%; /* Centrado verticalmente */
  transform: translateY(-50%); /* Alinea verticalmente con el centro de la imagen */
  color: white;
  padding: 20px;
  text-align: right; /* Asegura que el texto esté alineado a la derecha */
  visibility: visible; /* Siempre visible */
  opacity: 1; /* Siempre visible */
}

.destino:hover .destino-img {
  transform: scale(1.05); /* Efecto de zoom en la imagen */
}

.destino h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.destino p {
  font-size: 1.2rem;
}


/* Estilo para la sección del mapa */
.mapa {
  background-color: #ffffff;
  padding: 40px 100px;
}

.mapa-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mapa-texto {
  flex: 1;
  max-width: 60%; /* Limita el ancho máximo del texto */

  text-align: left;
  padding-right: 20px; /* Añade espacio entre el texto y el mapa */
}

.mapa-texto h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  max-width: 60%; /* Limita el ancho máximo del texto */
  color: #000000;
  line-height: 1.3; /* Mejora la legibilidad aumentando el espacio entre las líneas */
}

.mapa-texto p {
  font-size: 13px; /* Tamaño de fuente adecuado para que no quede tan grande */
  white-space: pre-wrap; /* Mantiene los saltos de línea y ajusta el texto al contenedor */
  word-wrap: break-word; /* Asegura que el texto largo se divida correctamente */
  font-weight: bold; /* Aplica negrita al texto */
  line-height: 1.4; /* Ajusta el espacio entre las líneas */
  text-align: left; /* Alinea el texto a la izquierda */
  color: #6d6c6c; /* Color de texto */
  max-width: 60%; /* Limita el ancho máximo del texto */
}


.mapa-contenedor {
  flex: 1;
  position: relative;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

#iconos-reseñas {
  position: fixed;
  top: 300px; /* Ajusta la posición vertical según sea necesario */
  right: 10px; /* Ajusta la posición horizontal según sea necesario */
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Coloca los íconos en columna */
  align-items: center; /* Alinea los íconos al centro */
  gap: 10px; /* Espacio entre los íconos */
  transition: all 0.3s ease;
}

/* Estilo para los iconos */
.icono {
  transition: transform 0.3s ease, opacity 0.3s ease; /* Agrega una transición suave */
  margin-bottom: 10px; /* Espacio entre los íconos */

}

/* Al pasar el cursor sobre el icono */
.icono:hover {
  transform: scale(1.1); /* Aumenta ligeramente el tamaño */
  opacity: 0.8; /* Hace que el icono se vea ligeramente opaco */
}


/* ─────────── Sección de Reseñas ─────────── */
#reseñas-section {
  background: #fff;
  padding: 50px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 40px auto;
}

/* Título centrado y destacado */
#reseñas-section h3 {
  font-size: 2.2rem;
  color: #064d2c;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Contenedor de items en grid para dos columnas en desktop */
#reseñas-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  #reseñas-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cada reseña como tarjeta */
.reseña-item {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reseña-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Cabecera: nombre a la izquierda, fecha a la derecha */
.reseña-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.reseña-nombre {
  font-weight: 600;
  color: #333;
}
.reseña-fecha {
  font-size: 0.9rem;
  color: #888;
}

/* Estrellas: tamaño y color */
.reseña-estrellas {
  font-size: 1.3rem;
  color: #f9d342;
  margin-bottom: 12px;
}

/* Comentario estilo cita */
.reseña-comentario {
  font-style: italic;
  color: #555;
  line-height: 1.4;
}


/* Cada reseña individual */
#reseñas-lista p {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Resaltado del nombre del usuario */
#reseñas-lista p strong {
  font-weight: 700;
  color: #064d2c; /* Color verde para el nombre */
}

/* Estrellas */
#reseñas-lista p .estrellas {
  color: #f9d342;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Botón "Ver Más" */
#ver-mas-btn {
  margin-top: 30px;
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #064d2c;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#ver-mas-btn:hover {
  background-color: #033e1f; /* Un verde más oscuro al pasar el ratón */
}

/* ────── Sección de Reseñas ────── */
#reseñas-section {
  background: #fff;
  padding: 50px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 40px auto;
}

/* Título */
#reseñas-section h3 {
  font-size: 2.2rem;
  color: #064d2c;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Contenedor de reseñas en grid */
#reseñas-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  #reseñas-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cada tarjeta de reseña */
.reseña-item {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.reseña-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Cabecera: nombre a la izquierda, fecha a la derecha */
.reseña-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.reseña-nombre {
  font-weight: 600;
  color: #333;
}
.reseña-fecha {
  font-size: 0.9rem;
  color: #888;
}

/* Estrellas */
.reseña-estrellas {
  font-size: 1.3rem;
  color: #f9d342;
  margin-bottom: 12px;
}

/* Comentario al final */
.reseña-comentario {
  font-style: italic;
  color: #555;
  line-height: 1.4;
  margin-top: auto; /* Esto asegura que el comentario siempre quede abajo */
}

/* Botón “Ver Más” */
#ver-mas-btn {
  display: block;
  margin: 30px auto 0;
  background: #064d2c;
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#ver-mas-btn:hover {
  background: #033e1f;
}



/* Formulario para registrar una nueva reseña */
#formulario-reseña {
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#formulario-reseña h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* Campos del formulario */
#formulario-reseña input,
#formulario-reseña textarea,
#formulario-reseña select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1.1rem;
  color: #333;
}

/* Estilo para el botón de enviar */
#formulario-reseña button {
  padding: 12px 20px;
  font-size: 1.2rem;
  background-color: #064d2c;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

#formulario-reseña button:hover {
  background-color: #02351a;
}

/* Estilo de error o mensaje después de enviar */
#formulario-reseña .mensaje {
  text-align: center;
  font-size: 1rem;
  margin-top: 15px;
  color: #e60000; /* Rojo para errores */
  font-weight: bold;
}
/* Estrellas interactivas en el formulario */
.star-rating {
  direction: rtl;
  display: inline-flex;
  font-size: 2rem;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f9d342; /* Amarillo */
}
/* Estrellas visuales en las reseñas mostradas */
.star-rating.display {
  direction: ltr;
  font-size: 1.5rem;
  margin: 10px 0;
}
.star-rating.display span {
  color: #ccc;
}
.star-rating.display .filled {
  color: #f9d342;
}

.mensaje {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 1s ease-out; /* Añadimos una transición para el efecto de desaparición */
  opacity: 1;
}

.mensaje.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.mensaje.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}
