:root {
    /* Colores base */
    --bg-main:       #faf8f2;  /* crema general */
    --bg-white:      #ffffff;  /* cajas, formularios, galerías */
    --green-main:    #4A7C43;  /* verde principal */
    --green-hover:   #3a6335;  /* hover botones */
    --green-soft:    #789d6a;  /* detalles suaves */
    --text-main:     #3b3b3b;  /* texto principal */

    --primary: #DD946F ;
    --primary-hover: #CD7D7C;                
    --background: #261E5A;
    --navbar-height: 60px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Poppins; */
}
/* Estilos generales */
html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Georgia', serif; /* Tipografía elegante y acogedora */
    background-color: var(--bg-main);
    color: var(--text-main);
    width: 100%;
  }
  
  header {
    background-image: url('../img/header-bg.jpg'); /* Imagen de fondo */
    background-size: cover; /* Escala la imagen manteniendo proporciones */
    background-position: center; /* Centra la parte más importante de la imagen */
    background-attachment: fixed; /* Efecto parallax */
    background-repeat: no-repeat; /* Evita repetir la imagen */
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */

    position: relative;
  }
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
    z-index: 1; /* Coloca esta capa debajo del texto */
  }
  header h1, header p, .hero-actions {
    position: relative; /* Mantiene el texto sobre el overlay */
    z-index: 2;
  }

  header h1 {
    color: #fff; /* Blanco */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra oscura */
}
  header p {
    font-size: 1.2rem;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: #fff;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  .hero-btn--primary {
    background: #4CAF50;
    color: #fff;
  }

  .hero-btn--primary:hover {
    background: #3f9644;
    color: #fff;
  }

  .hero-btn--secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #283820;
  }

  .hero-btn--secondary:hover {
    background: #fff;
    color: #283820;
  }
  
/***FOOTER***/
/* ===== Footer mejorado ===== */

.footer {
    text-align: center;
    padding: 25px 10px;
    color: #ddd;
    font-size: 0.9rem;
    background-color: #000; /* o tu color actual */
}

.footer a {
    color: #d9a066;  /* tono cálido elegante */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer__top {
    margin-bottom: 8px;
}

.footer__links a {
    margin: 0 4px;
}

.footer__bottom {
    margin-top: 5px;
    opacity: 0.8;
    font-size: 0.85rem;
}

/***FIN FOOTER***/

    /**SECCIONES GENERAL**/
/* Secciones generales */
section {
    padding: 60px 20px;
    text-align: center;
  }
  
  /* Títulos de las secciones */
  section h2 {
    font-size: 2.5rem;
    color: var(--color-primario); /* Título destacado */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  /* Párrafos */
  section p {
    font-size: 1rem;
    color: #555; /* Color gris para los textos */
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Espaciado uniforme */
  section ul {
    list-style: none;
    padding-left: 0;
  }
  
  section li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
    /****FIN SECCIONES***/

  /**BOTONES Y ENLACES***/
  /* Enlaces */
a {
    text-decoration: none;
    color: var(--color-primario);
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: var(--color-secundario); /* Amarillo cálido al pasar el ratón */
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid #d9a066;
    outline-offset: 3px;
  }

  /* Botones */
  button, .btn {
    background-color: #4CAF50; /* Verde principal */
    color: #fff; /* Texto blanco */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button:hover, .btn:hover {
    background-color: #45a049; /* Verde más oscuro al pasar el ratón */
  }
  
  /**FIN BOTONES Y ENLACES**/



/***Contenedores y Ajustes de Layout***/

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--color-primario);
  }

  
/**FIN CONTENEDORES**/


@media (max-width: 780px) {
  header {
    min-height: 300px;
    padding: 82px 18px 54px;
    background-attachment: scroll;
  }

  header h1 {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.6rem, 7.2vw, 2.05rem);
    line-height: 1.25;
  }

  header p {
    margin-top: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-btn {
    min-height: 44px;
    padding: 11px 17px;
    font-size: 0.92rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }

}

#map{
  height: 400px;
  /* margin-left: 5vw; */
  z-index: 0;
}

section:not(#header) {
  border-top: 2px solid #ddd; /* Separador sutil */
}







/* Estilo general */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #F9F9F9; /* Fondo general claro */
  color: #333; /* Texto principal */
}

/* Encabezados */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #4CAF50; /* Verde musgo */
  margin-bottom: 10px;
}

/* Colores de fondo de las secciones */

.section:nth-child(even) {
  background-color: #FFFFFF; /* Blanco limpio */
}

.section:nth-child(odd) {
  background-color: #F9F9F9; /* Gris claro */
}

/* Tarjetas */
.card {
  background-color: #fff; /* Blanco limpio */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  padding: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

/* Tipografía secundaria */
p {
  color: #666; /* Gris oscuro para texto secundario */
  font-size: 1rem;
  margin-bottom: 20px;
}
/* Textos largos mejor alineados a la izquierda */
section p {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 850px; /* para que no se hagan líneas demasiado largas */
}

/* Navegación */
nav {
  background-color: #4CAF50; /* Fondo verde del menú */
  padding: 10px 20px;
}

nav a {
  color: #fff; /* Texto blanco */
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #F9F9F9; /* Gris claro al pasar el ratón */
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Bordes redondeados para las imágenes */
}




@media (max-width: 768px) {
  /* Botones de navegación más grandes en pantallas pequeñas */
  button.prev, button.next {
    font-size: 1rem;
    padding: 7px;
  }  
  button.prev {
    left: 10px;
  }
  
  button.next {
    right: 10px;
  }
  .close-lightbox {
      top: -20px;
      right: -20px;
      font-size: 1.5rem;        
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
