/* === CONFIGURACIÓN GLOBAL Y VARIABLES === */
:root {
  --primary-color: #005a8d; /* Un azul lago profundo */
  --secondary-color: #e87a00; /* Un naranja atardecer/terracota */
  --light-color: #f8f9fa; /* Un blanco apenas grisáceo para fondos */
  --dark-color: #343a40; /* Un gris oscuro para texto, no negro puro */
  --grey-color: #6c757d; /* Un gris intermedio para subtítulos */
  --white-color: #ffffff;
  --success-color: #28a745; /* Un verde para los items de la lista */
}

/* === ESTILOS GENERALES Y RESETEO === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--white-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

img {
  max-width: 100%;
  display: block;
}

/* === HEADER Y NAVEGACIÓN (ESCRITORIO) === */
.main-header {
  background: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.logo img {
  height: 95px;
  width: auto;
  display: block;
}

.nav-links {
  display: contents; /* Desaparece el contenedor para alinear los hijos */
}

.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-grow: 1; /* Ocupa el espacio central */
}

.main-nav ul li {
  margin: 0 15px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 5px;
}

.main-nav ul li a:hover {
  color: var(--secondary-color);
}

.cta-button {
  background: var(--secondary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background: #d16c00;
}

.hamburger {
  display: none;
}

/* === SECCIÓN HÉROE (PÁGINA DE INICIO) === */
#hero {
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/fondo.jpeg") no-repeat center center/cover;
  color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

#hero h1 {
  font-family: "Lora", serif;
  font-weight: 500; /* Un grosor medio le sienta bien */
}

#hero p {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem; /* Las fuentes script necesitan ser más grandes */
  line-height: 1.4;
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.cta-button-hero {
  background: var(--secondary-color);
  color: var(--white-color);
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button-hero:hover {
  background: var(--white-color);
  color: var(--secondary-color);
}

/* === ESTILOS COMUNES DE SECCIONES === */
#features,
#cabana-details,
#testimonials,
#gallery-grid,
#contact-page,
#activities-page {
  padding: 5rem 0;
}

#cabana-details,
#activities-page {
  background: var(--light-color);
}

.section-subtitle {
  text-align: center;
  color: var(--grey-color);
  font-size: 1.1rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* === ESTILOS ESPECÍFICOS POR SECCIÓN === */

/* --- Sección Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --- Sección La Cabaña --- */
.cabana-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#cabana-details h2 {
  font-family: "Lora", serif;
  font-weight: 300; /* Un grosor medio le sienta bien */
}

.cabana-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-main-img {
  grid-column: 1 / -1;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-thumb-1,
.gallery-thumb-2 {
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.cabana-description h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-color);
}
.accordion {
  margin: 1.5rem 0;
  border-top: 1px solid #ddd;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.accordion-header:hover {
  background-color: #e9f3f8;
}
.accordion-header i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}
.accordion-header.active i {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--white-color);
}
.accordion-content p {
  padding: 0 0.5rem 1rem;
  color: var(--grey-color);
  line-height: 1.7;
}

/* === ESTILOS PARA LA SECCIÓN DE SERVICIOS DESTACADOS === */

#servicios-destacados {
  padding: 4rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

#servicios-destacados h2 {
  font-weight: 400;
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  /* En escritorio, hasta 4 columnas. En móvil, se ajustará solo. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--light-color);
  transition: all 0.3s ease;
}

.servicio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.servicio-item i {
  font-size: 2.5rem;
  color: var(--secondary-color); /* Usamos el color naranja para destacar */
  margin-bottom: 1rem;
}

.servicio-item span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-color);
}

/* --- Sección Testimonios --- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: 1.5rem;
  font-weight: 300;
  border-left: 3px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial cite {
  font-weight: 700;
  color: var(--grey-color);
}
.google-reviews-link-container {
  text-align: center;
  margin-top: 2.5rem;
}
.reviews-link {
  display: inline-flex;
  align-items: center;
  background-color: #4285f4;
  color: var(--white-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.reviews-link:hover {
  background-color: #357ae8;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.reviews-link i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* === AJUSTES PARA RESEÑAS 5 ESTRELLAS === */

.rating-stars {
  color: var(--secondary-color); /* Usamos el color naranja para que resalten */
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.google-rating-summary {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.rating-stars-small {
  color: var(--secondary-color);
  font-size: 1rem;
  display: flex; /* Para que las estrellas no tengan espacio extra */
  gap: 2px;
}

/* === ESTILOS DE PÁGINAS INTERNAS (GALERÍA, ACTIVIDADES, CONTACTO) === */
.page-header {
  background-color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: "Lora", serif;
  font-weight: 500; /* Un grosor medio le sienta bien */
}
.page-header p {
  font-size: 1.2rem;
  color: var(--grey-color);
}

/* --- Galería --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  cursor: pointer;
}
.photo-item img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img {
  transform: scale(1.1);
}
.photo-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white-color);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.photo-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Contacto --- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 3rem;
}
.contact-form-container h2,
.contact-info-container h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--grey-color);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-group-row {
  display: flex;
  gap: 1rem;
}
.form-group-row .form-group {
  flex: 1;
}
.map-container {
  width: 100%;
  height: 300px;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.contact-details {
  margin-top: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.contact-info-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 25px;
}

/* === FOOTER === */
.main-footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 0 0;
  border-top: 1px solid #444;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-column h4 {
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.social-icons a {
  color: var(--white-color);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.social-icons a:hover {
  opacity: 1;
}

/* --- ESTILOS PARA EL FOOTER BOTTOM --- */
.footer-bottom {
  background: #222;
  color: var(--grey-color); /* Color general del texto del footer bottom */
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap; /* Permite que se apilen si no hay espacio */
  gap: 1rem; /* Espacio entre elementos cuando se apilan */
}

.copyright-text {
  margin: 0;
}

.created-by {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Espacio entre "Creada por" y el logo */
  color: var(
    --grey-color
  ); /* Aseguramos que el texto "Creada por" tenga color */
}

.created-by a {
  display: inline-block;
}

.created-by img {
  height: 25px; /* Altura del logo de tu emprendimiento */
  width: auto;
  filter: invert(
    70%
  ); /* Invierte el color del logo para que se vea bien en fondo oscuro */
  transition: filter 0.3s ease;
}

.created-by a:hover img {
  filter: invert(100%); /* Se pone más blanco al pasar el mouse */
}

/* === RESPONSIVE DESIGN Y MENÚ HAMBURGUESA === */
@media (max-width: 768px) {
  /* --- Estilos Generales --- */
  h2 {
    font-size: 2rem;
  }
  #hero h1 {
    font-size: 2.5rem;
  }

  /* --- Padding para Secciones en Móvil --- */
  #features.container,
  #contact-page.container,
  #gallery-grid.container,
  #activities-page.container,
  #testimonials.container,
  #servicios-destacados.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cabana-layout,
  .footer-container,
  .contact-layout,
  .activities-grid,
  .photo-grid,
  .features-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    text-align: center;
  }

  .footer-bottom {
    text-align: center; /* Centra el contenido del footer bottom */
    flex-direction: column; /* Apila los elementos en móvil */
    align-items: center; /* Centra los elementos horizontalmente */
  }

  .form-group-row {
    flex-direction: column;
    gap: 0;
  }
  .form-group-row .form-group {
    margin-bottom: 1.5rem;
  }

  /* --- Estilos del Menú Hamburguesa --- */
  .main-nav ul,
  .main-nav > .cta-button {
    display: none;
  }
  .hamburger {
    display: block;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .nav-links ul li a {
    color: var(--white-color);
  }
  .nav-links .nav-cta-button {
    display: inline-block;
    margin-top: 2rem;
  }
}

/* === Estilos para intercambiar íconos Hamburguesa/Cerrar === */
.hamburger .icon-close {
  display: none;
}
.hamburger.active .icon-close {
  display: block;
}
.hamburger.active .icon-hamburger {
  display: none;
}

/* === RESPONSIVE DESIGN Y MENÚ HAMBURGUESA (UNIFICADO) === */
@media (max-width: 768px) {
  /* --- Estilos Generales para Móvil --- */
  h2 {
    font-size: 2rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .cabana-layout,
  .footer-container,
  .contact-layout,
  .activities-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    text-align: center;
  }

  /* ... otras reglas responsivas ... */
  .footer-container,
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center; /* Centra los items del footer-bottom */
  }

  /* --- Estilos del Menú Hamburguesa --- */
  .main-nav ul,
  .main-nav .nav-cta-button {
    display: none;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links ul li {
    margin: 1.5rem 0;
  }

  .nav-links ul li a {
    color: var(--white-color);
    font-size: 1.5rem;
  }

  .nav-links .nav-cta-button {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 12px 25px;
  }

  /* Arreglo para dar 'aire' a la sección de testimonios */
  #testimonials.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Arreglo para dar 'aire' a los costados en móvil */
  #contact-page,
  #gallery-grid,
  #activities-page {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  /* Arreglo para el formulario de contacto en móviles */
  .form-group-row {
    flex-direction: column;
    gap: 0;
  }
  .form-group-row .form-group {
    margin-bottom: 1.5rem; /* Para que no queden pegados */
  }
}

/* === Estilos para intercambiar íconos Hamburguesa/Cerrar === */
.hamburger .icon-close {
  display: none;
}
.hamburger.active .icon-close {
  display: block;
}
.hamburger.active .icon-hamburger {
  display: none;
}
