* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;/*Para que vaya suave el scroll a la posición del menú*/
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #A8C3A0;
  color: #4A4A4A;
  line-height: 1.6;
}

#reseñas {
  background: linear-gradient(to bottom, #ffffff 0%, #f4f8f2 30%, #e2eddb 60%, #A8C3A0 100%);
  padding: 4rem 1rem;
  text-align: center;
}

#reseñas h2 {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  /*color: #4A4A4A; /* gris oscuro elegante */
  margin: 2.5rem 0 1.5rem 0; /* arriba y abajo espacioso */
  line-height: 1.3;
  font-size: 2rem;
  color: #2e472c;
  margin-bottom: 2rem;
}

#reseñas img {
  display: none; /* Ocultar el logo EmbedSocial */
}

/* NAV FIJO Y TRANSLÚCIDO */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 245, 245, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil en la parte inferior */
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* un poco menos que antes para que quede más compacto */
  text-decoration: none; /* quita subrayado por defecto */
  color: inherit; /* que tome el color del texto original */
  cursor: pointer; /* para que cambie a puntero */
}

/* Logo imagen */
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Texto del logo */
.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #4A4A4A;
  white-space: nowrap; /* para que no se divida */
}

/* Efecto hover para todo el enlace */
.logo-link:hover .logo-text,
.logo-link:focus .logo-text {
  color: #3E4D1F; /* color que destaque al pasar el cursor */
}


.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu li a {
  text-decoration: none;
  color: #4A4A4A;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 20px;
}

.menu li a:hover {
  color: #6B8E23;
}

.menu li a.active {
  color: #6B8E23;
  border-bottom: 2px solid #6B8E23;
}


/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* Pantalla completa */
  overflow: hidden; /* Evita que las imágenes sobresalgan */
}

.slider-image{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider-image.show-after::after{
  opacity: 1;
} 

/* ===============================
   SLIDER CINEMATOGRÁFICO 4 LADOS
================================ */

/* ===== SLIDER SUAVE PREMIUM (SIN PAM) ===== */

.slider-image{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider-image::before,
.slider-image::after{
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

/* Capa activa */
.slider-image::before{
  opacity: 1;
  z-index: 1;
}

/* Capa entrante */
.slider-image::after{
  z-index: 2;
}


.slider-image.enter-from-top::after{
  transform: translate3d(0,-12vh,0);
}

.slider-image.enter-from-bottom::after{
  transform: translate3d(0,12vh,0);
}

.slider-image.enter-from-left::after{
  transform: translate3d(-12vw,0,0);
}

.slider-image.enter-from-right::after{
  transform: translate3d(12vw,0,0);
}

.slider-image.show-after::after{
  opacity: 1;
  transform: translate3d(0,0,0);
}

.slider-image.hide-before::before{
  opacity: 0;
}

.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  text-shadow:
    -1px -1px 2px rgba(0, 0, 0, 0.7),
     1px -1px 2px rgba(0, 0, 0, 0.7),
    -1px  1px 2px rgba(0, 0, 0, 0.7),
     1px  1px 2px rgba(0, 0, 0, 0.7);
}
/*Esto es para la animación ligera de aparición*/
@keyframes fadeInText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  .slider-text h2 {
    font-size: 2.2rem;
    opacity: 0;/*Esto es para la animación ligera de aparición PRIMERO esto*/
  	transform: translateY(-10px);
  	animation: fadeInText 1s ease-out forwards;
  	animation-delay: 0.6s;
  }
  .slider-text p {
    font-size: 1.2rem;
    opacity: 0;/*Esto es para la animación ligera de aparición SEGUNDO esto*/
  	transform: translateY(-10px);
  	animation: fadeInText 1s ease-out forwards;
  	animation-delay: 1.2s;
}

/* Para TELÉFONOS la cabecera de 3 imágenes "Parallax"*/
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh; /* Altura razonable */
    padding: 0;   /* Aseguramos sin padding */
    margin: 0;    /* Aseguramos sin margen */
  }

  .slider-image {
    background-attachment: scroll; /* Sin parallax en móvil */
    background-size: cover;
    background-position: center center !important; /* Forzamos centrado vertical */
    top: 0;
    left: 0;
  }

  /* Opcional: asegúrate que no haya espacios que empujen hacia abajo */
  .slider-image:nth-child(1) {
    background-position: center center !important;
  }

  .slider-text h2 {
    font-size: 1.6rem;
  }

  .slider-text p {
    font-size: 1rem;
  }
}




#galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
  margin: 0;
}

/* Estilo de las imágenes en la galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: white;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;/*Borde redondeado de cada foto*/
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.08); /* Aumento de la imagen al pasar el ratón */
}

/*Sección del CALENDARIO*/
.contenedorCalendario{ 
  padding: 2rem 0; /* solo padding vertical */
  text-align: center;
  background-color: white;
  width: 100%;
  height: auto;
}


/* El apartado de SERVICIOS*/

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.servicio {
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio .icono {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  color: #6b8e23;
}

.servicio h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #334422;
}

.servicio p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.icono-espaciado {
  display: block;
  margin-bottom: 0.3em; /* o cualquier valor */
}

.icono-servicio {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* ✅ ARREGLO OVERFLOW SERVICIOS EN MÓVIL */
@media (max-width: 480px){
  .grid-servicios{
    grid-template-columns: 1fr;   /* una sola columna real */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .servicio{
    width: 100%;
    max-width: 100%;
  }
}



/*Contenedor del google Maps*/
.iframe-container {
  width: 100%; /* 60% del viewport width */
  height: 40vw;
  margin: 0 auto;
}
.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*Responsive para el gmaps más alto*/
@media (max-width: 880px) {
  .iframe-container {
    height: 70vh; /* Un poco más baja en móvil si lo prefieres */
  }
}


/* Estilo base para ambos iconos tipo app */
.wh-fixed,
.ig-fixed {
  position: fixed;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 22% / 30%; /* estilo "squircle" */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.airbnb-fixed {
  position: fixed;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 22% / 30%; /* squircle, igual que los otros */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 10px;
  bottom: 120px; /* colocado por encima de WhatsApp (65px) e Instagram (10px) */
  transition: transform 0.3s ease;
}

/* Específicos de ubicación */
.wh-fixed {
  bottom: 65px;
  right: 10px;
}

.ig-fixed {
  bottom: 10px;
  right: 10px;
}

/* Imágenes internas */
.wh-fixed img {
  width: 116%;
  height: 116%;
  object-fit: contain;
}
.airbnb-fixed img{
  width: 102%;
  height: 102%;
  object-fit: contain;
}
.ig-fixed img {
  width: 104%;
  height: 104%;
  object-fit: contain;
}

/* Efecto al pasar el cursor */
.wh-fixed:hover,
.airbnb-fixed:hover,
.ig-fixed:hover {
  transform: scale(1.08);
}

/* 🔁 Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .wh-fixed,
  .airbnb-fixed,
  .ig-fixed {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  }

  /* posiciones en columna */
  .airbnb-fixed { bottom: 118px; right: 6px; }
  .wh-fixed    { bottom:  64px; right: 6px; }
  .ig-fixed    { bottom:  10px; right: 6px; }

  /* mismo tamaño visual para las 3 imágenes en móvil */
  .wh-fixed img,
  .airbnb-fixed img,
  .ig-fixed img {
    width: 118%;
    height: 118%;
    object-fit: contain; /* o cover si prefieres */
  }

  /* (opcional) si ves Airbnb aún más pequeño por su margen, solo para él: */
  /* .airbnb-fixed img { width: 122%; height: 122%; } */
}


main {
  background-color: #D4E8D4;
}


footer {
  background-color: #3E4D1F; /* verde original */
  color: #F7F9F2;
  padding: 1rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  user-select: none;
}

footer .copyright {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  /*display: flex;
  justify-content: center;  Para que los enlaces se agrupen y centren 
  gap: 0.15rem;  Espacio entre enlaces */
}

footer nav {
  font-size: 0.75rem; /* más pequeño para los links legales */
  font-weight: 500;
  margin-top: 0.2rem;
  white-space: nowrap;
  display: flex;
  justify-content: center; /* centra los enlaces */
  gap: 1.6rem; /* controla el espacio entre ellos */
}

footer nav a {
  color: #d3e8d1; /* un verde claro para destacar */
  text-decoration: none;
  margin: 0 !important;
  display: inline-block; /* o inline */
}

footer nav a:hover,
footer nav a:focus {
  color: #7A8F56;
  text-decoration: underline;
  outline: none;
}

/* Responsive para móviles */
@media (max-width: 480px) {
  footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
  }
}


@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}



#ocupacion {
  background: linear-gradient(to bottom, #f4f8f2 0%, #ffffff 100%);
  padding: 3rem 0 2rem;
  color: #3a4a18; /* Verde oscuro elegante */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Texto de explicación con ancho máximo y centrado */
.info-reservas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.info-card {
  flex: 1 1 280px;
  background: #f9fdf3;
  border-left: 4px solid #6B8E23;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-card .icono {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #6B8E23;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #6B8E23;
}

.info-card p {
  margin: 0;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

.info-label {
  font-weight: 700;
  color: #6B8E23; /* verde principal */
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-family: 'Segoe UI Semibold', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

/* El calendario debe seguir al 100% de ancho sin restricciones */
.contenedorCalendario {
  padding: 2rem 0;
  text-align: center;
  background-color: white;
  width: 100%;
  height: auto;
}

/*Sección de CONTACTO*/
#contacto {
  background: linear-gradient(to bottom, #A8C3A0 0%, #e2eddb 40%, #f4f8f2 70%, #ffffff 100%);
  padding: 4rem 1rem;
}
/*Botón de la sección*/
.telefono-contacto {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.telefono-contacto a {
  display: flex;
  align-items: center;
  background-color: #6B8E23;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1248px; /* 999px + 25% = 1248px*/ 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.telefono-contacto a:hover {
  background-color: #A8C3A0;
}

.telefono-contacto .icono {
  font-size: 1.75rem;
  margin-right: 0.75rem;
}
/*Todo el CSS del formulario*/
/* Estilo del contenedor del formulario */
.form-container {
  background-color: white;
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Estilo general del formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Etiquetas */
form label {
  font-weight: bold;
  color: #4A4A4A;
}

/* Campos de texto, email, número, etc. */
form input,
form select,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  background-color: #fdfdfd;
  transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #6B8E23;
  outline: none;
}

/* Campo de fecha moderno */
input[type="date"] {
  background-color: #fff;
  color: #4A4A4A;
  border: 1px solid #ccc;
}

/* Área de texto */
form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Botón de envío */
form button[type="submit"] {
  background-color: #6B8E23;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #557A1F;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

.checkbox-container label {
  font-size: 0.95em;
  color: #4A4A4A;
}

.checkbox-container a {
  text-decoration: none;
  color: #6B8E23; /* O el color de tu marca */
}

.checkbox-container a:hover {
  text-decoration: underline;
}


/* Mensaje de error o validación */
.error-message {
  color: red;
  font-size: 0.9rem;
}

/* Google reCAPTCHA centrado */
.g-recaptcha {
  margin: 1rem 0;
}



/* Responsive para el Formulario*/
@media (max-width: 768px) {
  .form-container {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
}

/*CSS de las COOKIES*/
.cookie-consent {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: 25px;
  max-width: 400px;
  background-color: #e6f0ea; /* verde muy suave */
  color: #2f4f4f; /* verde oscuro para texto */
  padding: 15px 20px;
  border-radius: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none; /* oculto por defecto */
  align-items: center;
  justify-content: space-between;
  z-index: 99999;
  line-height: 1.4;
}

.cookie-consent p {
  margin: 0;
  flex: 1;
}

.cookie-consent a {
  color: #3b7766; /* tono verde para enlaces */
  text-decoration: underline;
}

.cookie-consent button {
  background-color: #3b7766;
  color: #fff;
  border: none;
  padding: 8px 18px;
  margin-left: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.cookie-consent button:hover {
  background-color: #2e5b4d;
}

@media (max-width: 600px) {
  .cookie-consent {
    left: 10px;
    right: 70px;      /* deja ~50px libres para los botones fijos */
    max-width: none;  /* que no se limite el ancho */
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    max-width: 90%;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }
  .cookie-consent button {
    margin: 12px 0 0 0;
    width: 100%;
  }
}

/*Para que no se salga el calendario en 
Pantallas de teléfono móvil*/

/* Marco del calendario: centrado en desktop, sin desbordes */
.cal-embed{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;  /* un poco más de aire lateral */
  background: #fff;
  border-radius: 1.2rem;
  overflow: visible;  /* permite que las flechas respiren */
  box-sizing: border-box;
}

.cal-embed iframe{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
}

/* =========================================================
   FICHA VILLA + SERVICIOS INTEGRADOS (VERSIÓN PULIDA)
========================================================= */

#servicios{
  background: linear-gradient(to bottom, #ffffff 0%, #f4f8f2 100%);
  padding: 4rem 1.5rem;
}

.villa-card{
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.6rem;
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* Parte superior ficha */
.villa-main{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.villa-meta h3{
  font-size: 2rem;
  color: #2e472c;
  margin-bottom: 0.3rem;
}

.villa-location{
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 1.6rem;
}

.villa-features{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 2;
}

.villa-description h4{
  font-size: 1.4rem;
  color: #6B8E23;
  margin-bottom: 1rem;
}

.villa-description p{
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #4A4A4A;
  text-align: justify;
}

/* Título de servicios */
.servicios-titulo{
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #2e472c;
}

/* Servicios dentro de la ficha */
.villa-card .grid-servicios{
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px){
  .villa-main{
    grid-template-columns: 1fr;
  }

  .villa-card{
    padding: 2rem;
  }
}

/* =========================================================
   BOTÓN "MOSTRAR DESCRIPCIÓN COMPLETA" (VERDE CORPORATIVO)
========================================================= */

.villa-more-btn{
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #6B8E23;
  background: linear-gradient(135deg, #6B8E23, #7fa933);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.villa-more-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
  background: linear-gradient(135deg, #5e7e1e, #6f9a2a);
}

.villa-more-btn:active{
  transform: translateY(0);
}


/* =========================================================
   MODAL DESCRIPCIÓN VILLA (DIFUMINADO CLARO + PREMIUM)
========================================================= */

.villa-modal{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55);   /*  CLARO, NO NEGRO */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 99999;
}

.villa-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Caja del modal */
.villa-modal-dialog{
  position: relative;
  background: #ffffff;
  border-radius: 1.6rem;
  max-width: 780px;
  width: calc(100% - 2rem);
  max-height: 85vh;
  padding: 2.4rem 2.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.20);
  transform: scale(.94);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;  /* respeta el radius del scroll */
}

.villa-modal.is-open .villa-modal-dialog{
  transform: scale(1);
}

.villa-modal-title{
  font-size: 1.8rem;
  font-weight: 700;
  color:#2e472c;
  margin-bottom: 1.2rem;
}

/* Scroll interno del texto */
.villa-modal-body{
  overflow-y: auto;
  padding-right: 0.6rem;
}

.villa-modal-body p{
  font-size: 1rem;
  line-height: 1.75;
  color:#4A4A4A;
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* Botón de cierre */
.villa-modal-close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.villa-modal-close:hover{
  background: #6B8E23;
  color: #fff;
  transform: scale(1.05);
}

/* Responsive modal */
@media (max-width: 600px){
  .villa-modal-dialog{
    width: 92vw;
    padding: 1.6rem 1.4rem;
    border-radius: 1.2rem;
  }
}

/*Para los "emojis" de las caracteristicas de la Villa*/
.villa-features li{
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-feature{
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  flex-shrink: 0;
}

.form-msg{
  margin: 2rem auto;
  padding: 1.4rem 1.8rem;
  border-radius: 16px;
  max-width: 700px;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeMsg 0.45s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;   /*  CENTRADO REAL */
  justify-content: center;
  gap: 1.2rem;
}

.form-msg.ok{
  background: linear-gradient(135deg, #eaf6ea, #f4fbf4);
  color:#2e472c;
  border:1px solid #6B8E23;
}

.form-msg.error{
  background: linear-gradient(135deg, #fbeaea, #fff4f4);
  color:#9E2A2B;
  border:1px solid #9E2A2B;
}

.form-reopen-btn{
  margin-top: 0.6rem;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #6B8E23;
  background: linear-gradient(135deg, #6B8E23, #7fa933);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  transition: all 0.25s ease;
}

.form-reopen-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  background: linear-gradient(135deg, #5e7e1e, #6f9a2a);
}

@keyframes fadeMsg{
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* ===============================
   HEADER + MENÚ + IDIOMAS LIMPIO
================================ */

/* Estado base (escritorio grande) */
.menu-icon{
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#menu-toggle{
  display: none;
}

.menu{
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* -------- IDIOMAS DESKTOP (BANDERAS) -------- */

.lang-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch img{
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.lang-switch a.activo img{
  opacity: 1;
  transform: scale(1.1);
}

.lang-switch img:hover{
  opacity: 1;
  transform: scale(1.1);
}

/* Nunca usaremos banderas dentro del menú */
.lang-switch-in-menu{
  display: none !important;
}

/* SELECT IDIOMA (oculto por defecto) */
.lang-switch-mobile{
  display: none;
  margin-left: 0.75rem;
}

/* ========== TABLET Y MENOR (≤1024px)
   → Menú sigue horizontal
   → Banderas fuera
   → Selector SIEMPRE a la derecha DEFINITIVA
==================================== */
@media (max-width: 1024px){

  nav{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  /* El menú YA NO empuja nada */
  .menu{
    margin-left: 0;            /* quitamos el empuje mal puesto */
  }

  .lang-switch{
    display: none !important;
  }

  /* AHORA SÍ: el selector es quien se va al extremo derecho */
  .lang-switch-mobile{
    display: flex;
    align-items: center;
    margin-left: auto;          /* ESTE es el empuje correcto */
    flex-shrink: 0;
  }

  .lang-switch-mobile select{
    background:
      rgba(255,255,255,0.95)
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236B8E23' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
      no-repeat right 10px center;
    background-size: 10px 6px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 14px;
    padding: 6px 30px 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #2e472c;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    height: 34px;
    text-align: center;
    text-align-last: center;
  }
}


/* ========== MÓVIL (≤840px)
   → Aparece hamburguesa
   → Menú colapsado
   → ☰ a la derecha del todo
   → Selector justo a su izquierda
==================================== */
@media (max-width: 840px){

  nav{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }

  .menu-icon{
    display: block;
    margin-left: auto;        /* ☰ SIEMPRE A LA DERECHA */
    margin-right: 0.6rem;
    z-index: 1100;
  }

  .lang-switch-mobile{
    order: 3;                 /* después del ☰ */
    margin-left: 0;
  }

  .menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(245,245,245,0.97);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.05);
    flex-direction: column;
    gap: 1rem;
    max-height: 65vh;
    overflow-y: auto;
    display: none;           /* SIEMPRE cerrado */
    z-index: 1000;
  }

  #menu-toggle:checked ~ .menu{
    display: flex;
  }
}

@media (max-width: 768px){
  .slider-image::before,
  .slider-image::after{
    background-attachment: scroll !important;
    background-position: center center !important;
  }

  .slider-image.offset-down::before,
  .slider-image.offset-down::after{
    background-position: center center !important;
  }
}

body{
  overflow-x: hidden;
}

/* =========================================
   SECCIÓN ENTORNO · BOUTIQUE PREMIUM
========================================= */

#entorno{
  background: linear-gradient(to bottom, #ffffff 0%, #f4f8f2 100%);
  padding: 4rem 1.5rem 5rem;
}

/* --- BLOQUE 1 · DRON --- */
.entorno-hero{
  position: relative;
  max-width: 1400px;
  margin: 0 auto 4rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

.entorno-hero img{
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
}

.entorno-tag{
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(255,255,255,0.88);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2e472c;
  letter-spacing: 0.03em;
}

/* --- BLOQUE 2 · EDITORIAL --- */
.entorno-editorial{
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.entorno-texto h3{
  font-size: 2rem;
  color: #2e472c;
  margin-bottom: 1rem;
}

.entorno-texto p{
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4A4A4A;
  text-align: justify;
}

.entorno-foto-secundaria{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
}

.entorno-foto-secundaria img{
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* --- BLOQUE 3 · MAPA --- */
.entorno-mapa-card{
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;
}

.mapa-label{
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.92);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2e472c;
  z-index: 2;
}

.mapa-wrapper iframe{
  width: 100%;
  height: 480px;
  border: 0;
}

/* --- BLOQUE 4 · DISTANCIAS --- */
.entorno-distancias{
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  text-align: center;
}

.distancia-item{
  background: #ffffff;
  padding: 1rem 0.8rem;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #3a4a18;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px){
  .entorno-editorial{
    grid-template-columns: 1fr;
  }

  .entorno-foto-secundaria img{
    height: 320px;
  }

  .entorno-hero img{
    height: 55vh;
  }
}

@media (max-width: 600px){
  #entorno{
    padding: 3rem 1rem 4rem;
  }

  .mapa-wrapper iframe{
    height: 360px;
  }
}



/* Colores sugeridos Fondo ppal, Verde salvia: #A8C3A0 Fondo secundario, Verde menta: #D4E8D4 Texto ppal, gris pizarra: 4A4A4A Texto sec, gris claro: 7D7D7D Botones y enlaces, verde bosque: 6B8E23 Fondo encabezado, blanco humo: F5F5F5 Fondo pie de pag, verde musgo: 556B2F */