@charset "utf-8";
/* ==========================================================================
   Casa Rural Villa Vilo — hoja de estilos única
   Réplica estática del sitio villavilo.com (sin WordPress, sin Elementor)
   ========================================================================== */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/IBMPlexSerif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/IBMPlexSerif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/IBMPlexSerif-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/IBMPlexSerif-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter es fuente variable: un único fichero cubre 100–900 */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/Poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/Poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/Poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/Poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --verde: #324E39;        /* marca: botones, títulos de footer */
  --verde-hover: #263c2c;
  --oliva: #495338;        /* fondo de la sección CTA */
  --azul-suave: #E7F6FF;   /* fondo de la sección «Entorno» */
  --verde-claro: rgba(50, 78, 57, .33);  /* verde de marca al 33 %, como en Sostenibilidad */
  --tinta: #0F172A;        /* títulos sobre fondo claro */
  --texto: #364151;        /* cuerpo */
  --azul-nav: #324A6D;     /* enlaces del menú y lema del footer */
  --gris-menu: #8F8F8F;    /* menú del footer */
  --gris-barra: #C8D5DC;   /* texto de la barra inferior */
  --claro: #F0F0F0;
  --whatsapp: #25D366;

  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ui: 'Poppins', var(--sans);

  --ancho: 1140px;
  --header-h: 100px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--tinta); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--verde); color: #fff; padding: 12px 20px;
}
.saltar:focus { left: 0; }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
}

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.cabecera__interior {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: clamp(20px, 8vw, 115px);
}

.logo img { width: 206px; max-width: 40vw; }

.nav-principal ul { display: flex; align-items: center; gap: 30px; }

.nav-principal a {
  font-family: var(--sans);
  font-size: 18px; font-weight: 600; line-height: 1;
  color: var(--azul-nav);
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-principal a:hover { color: var(--verde); }
.nav-principal a[aria-current="page"] { border-bottom-color: var(--azul-nav); }

.cabecera__acciones { display: flex; align-items: center; gap: 16px; }

/* Selector de idioma: bandera + sigla. La bandera es el reclamo visual y la sigla
   la que de verdad identifica el idioma (una bandera es un país, no una lengua).
   El idioma activo no es un enlace, es un <span>, para que no se pueda pulsar la
   página en la que ya estás. */
.idiomas {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--ui);
  font-size: 14px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.idiomas__op {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 999px;
}
.idiomas__op + .idiomas__op { position: relative; margin-left: 5px; }
.idiomas__op + .idiomas__op::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: #cfd6da;
}
.idiomas__bandera {
  display: block; width: 20px; height: 14px; flex: none;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .15);
}
.idiomas__bandera svg { display: block; width: 100%; height: 100%; }
.idiomas span.idiomas__op { color: var(--verde); background: rgba(50, 78, 57, .09); }
.idiomas a.idiomas__op { color: var(--gris-menu); transition: color .2s, background .2s; }
.idiomas a.idiomas__op:hover, .idiomas a.idiomas__op:focus-visible {
  color: var(--verde); background: rgba(50, 78, 57, .09);
}
.idiomas a.idiomas__op .idiomas__bandera { opacity: .75; transition: opacity .2s; }
.idiomas a.idiomas__op:hover .idiomas__bandera { opacity: 1; }

/* Botón hamburguesa (solo móvil) */
.hamburguesa {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--verde);
}
.hamburguesa svg { width: 28px; height: 28px; margin-inline: auto; }
.hamburguesa .icono-cerrar { display: none; }
.hamburguesa[aria-expanded="true"] .icono-abrir { display: none; }
.hamburguesa[aria-expanded="true"] .icono-cerrar { display: block; }

/* ==========================================================================
   Botones
   ========================================================================== */
.boton {
  display: inline-block;
  font-family: var(--ui);
  font-size: 16px; font-weight: 600; line-height: 1.5;
  text-transform: capitalize;
  padding: 16px 45px;
  border-radius: 100px;
  border: 1px solid var(--verde);
  background: var(--verde);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.boton:hover { background: var(--verde-hover); border-color: var(--verde-hover); }

/* Botones cuadrados del hero y del CTA parallax */
.boton-lin {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 40px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  transition: background-color .2s, color .2s;
}
.boton-lin:hover { background: #fff; color: var(--verde); }

.boton-lin--solido { background: #fff; color: var(--verde); }
.boton-lin--solido:hover { background: transparent; color: #fff; }

.boton-claro {
  display: inline-block;
  font-family: var(--ui);
  font-size: 16px; font-weight: 500;
  padding: 14px 22px;
  background: var(--claro);
  color: var(--tinta);
  transition: background-color .2s, color .2s;
}
.boton-claro:hover { background: #fff; }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.seccion { padding-block: 100px; }
.seccion--azul { background: var(--azul-suave); }

.titulo-seccion {
  font-size: 28px; line-height: 1.3;
  margin-bottom: 40px;
}
.titulo-seccion--centro { text-align: center; }
.titulo-seccion--min { text-transform: lowercase; }

/* ==========================================================================
   Hero de portada
   ========================================================================== */
.hero {
  position: relative;
  min-height: 900px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  background-image: url(../img/Villa_Vilo_vista_aerea-1536x864.jpg);
  background-size: cover;
  background-position: 50% 0;
  text-align: center;
}
@media (min-width: 1600px) { .hero { background-image: url(../img/Villa_Vilo_vista_aerea.jpg); } }
@media (max-width: 860px)  { .hero { background-image: url(../img/Villa_Vilo_vista_aerea-1024x576.jpg); } }

/* Velo oscuro suave: la foto es muy clara y el texto blanco se perdía */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(24, 32, 24, .3);
}
.hero h1 {
  position: relative;
  max-width: 700px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero__acciones {
  position: relative;
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}

/* Hero corto de las páginas interiores */
.hero-pagina {
  min-height: 390px;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background-size: cover;
  background-position: 50% 50%;
  text-align: center;
}
.hero-pagina h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.4;
  letter-spacing: 2.5px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-pagina--galeria,
.hero-pagina--reservas  { background-image: url(../img/Villa_Vilo_piscina-1536x1022.jpg); }
.hero-pagina--servicios { background-image: url(../img/orche_lateral_02.jpg); }
@media (max-width: 860px) {
  .hero-pagina--galeria,
  .hero-pagina--reservas  { background-image: url(../img/Villa_Vilo_piscina-1024x682.jpg); }
  .hero-pagina--servicios { background-image: url(../img/orche_lateral_02-1024x680.jpg); }
}

/* ==========================================================================
   Tres tarjetas de portada
   ========================================================================== */
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tarjeta {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  flex-direction: column;
  min-height: 346px;
  padding: 60px 50px 40px;
  background-size: cover; background-position: center;
  overflow: hidden;
}
/* Velo verde de marca al 25 %, que se retira al pasar el ratón */
.tarjeta::after {
  content: ""; position: absolute; inset: 0;
  background: var(--verde);
  opacity: .25;
  transition: opacity .3s;
}
.tarjeta:hover::after, .tarjeta:focus-visible::after { opacity: 0; }
.tarjeta h2 {
  position: relative; z-index: 1;
  font-size: 35px; line-height: 1.3;
  text-transform: lowercase;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
/* Las tarjetas nunca superan los ~380 px de ancho: basta la variante de 768 px */
.tarjeta--servicios { background-image: url(../img/piscina_04-768x510.jpg); }
.tarjeta--galeria   { background-image: url(../img/orche_delantero_02-768x510.jpg); }
.tarjeta--reservas  { background-image: url(../img/dormitorio_2_01-768x510.jpg); }

/* ==========================================================================
   Bloque de texto a dos columnas
   ========================================================================== */
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.dos-columnas h2 { margin: 0; }

/* ==========================================================================
   Franja con imagen fija (efecto parallax) + botón
   ========================================================================== */
.franja {
  position: relative;
  min-height: 466px;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
  background-image: url(../img/Villa_Vilo_piscina-1536x1022.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 860px) { .franja { background-image: url(../img/Villa_Vilo_piscina-1024x682.jpg); } }
/* Velo radial verde, como en el original */
.franja::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at center center, #324E39 0%, #324E3930 100%);
  opacity: .6;
}
.franja > * { position: relative; }
@media (hover: none) {
  /* background-attachment: fixed rinde mal en móvil */
  .franja { background-attachment: scroll; }
}

/* ==========================================================================
   Galerías
   ========================================================================== */
.galeria-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.galeria-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dfe6ea;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.galeria-rejilla .galeria-item { aspect-ratio: 3 / 2; }
.galeria-item:hover img { transform: scale(1.05); }

.galeria-item__pie {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(50, 78, 57, .55);
  color: #fff;
  font-weight: 700; text-align: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.galeria-item:hover .galeria-item__pie,
.galeria-item:focus-visible .galeria-item__pie { opacity: 1; }

/* Filtros de la galería */
.filtros {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-bottom: 30px;
}
.filtros button {
  font-family: var(--sans);
  font-size: 16px; color: var(--texto);
  padding: 7px 14px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.filtros button:hover { color: var(--verde); }
.filtros button[aria-pressed="true"] { color: var(--verde); border-bottom-color: var(--verde); font-weight: 600; }

/* Mosaico tipo masonry de la página Galería */
.mosaico { columns: 4; column-gap: 10px; }
.mosaico .galeria-item { margin-bottom: 10px; break-inside: avoid; }
.mosaico .galeria-item img { height: auto; }
.galeria-item[hidden] { display: none; }

/* ==========================================================================
   Visor de imágenes (lightbox)
   ========================================================================== */
.visor {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 14, 10, .94);
  padding: 60px 20px;
}
.visor[open], .visor.abierto { display: flex; }
.visor img {
  max-width: min(1400px, 92vw); max-height: 80vh;
  width: auto; object-fit: contain;
  margin-inline: auto;
}
.visor__pie {
  position: absolute; left: 0; right: 0; bottom: 24px;
  text-align: center; color: #fff; padding-inline: 80px;
}
.visor__pie strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.visor__pie span { font-size: 15px; color: #d8e0d8; }

.visor button {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background-color .2s;
}
.visor button:hover { background: rgba(255, 255, 255, .25); }
.visor svg { width: 24px; height: 24px; }
.visor__cerrar { top: 20px; right: 20px; }
.visor__ant { left: 20px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Bloques de la página Servicios
   ========================================================================== */
.bloque-servicio {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  margin-bottom: 80px;
}
.bloque-servicio:last-of-type { margin-bottom: 0; }
.bloque-servicio--invertido .bloque-servicio__texto { order: 2; }

.bloque-servicio__texto { padding: 10px 20px; }
.bloque-servicio__icono { color: var(--verde); margin-bottom: 18px; }
.bloque-servicio__icono svg { width: 58px; height: 58px; }
.bloque-servicio h2 {
  font-size: 22px; line-height: 1.3;
  margin-bottom: 20px;
}
.bloque-servicio ul li { margin-bottom: 4px; padding-left: 14px; position: relative; }
.bloque-servicio ul li::before {
  content: "–"; position: absolute; left: 0; color: var(--verde);
}

/* La franja de sostenibilidad va a sangre, con fondo verde claro */
.sostenibilidad {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--verde-claro);
  margin-bottom: 80px;
}
.sostenibilidad img { width: 100%; height: 100%; object-fit: cover; }
.sostenibilidad__texto { padding: 40px; text-align: center; }
.sostenibilidad__texto h2 { font-size: 28px; margin-bottom: 20px; }
.sostenibilidad__texto ul li { margin-bottom: 6px; }
.sostenibilidad__icono { color: var(--verde); }
.sostenibilidad__icono svg { width: 66px; height: 66px; margin: 0 auto 12px; }

/* Rejillas de establecimientos / restaurantes / distancias */
.fichas { display: grid; gap: 30px; margin-bottom: 60px; }
.fichas--3 { grid-template-columns: repeat(3, 1fr); }
.fichas--4 { grid-template-columns: repeat(4, 1fr); }
.ficha { text-align: center; }
.ficha img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.ficha h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.ficha p { font-size: 15px; }

/* ==========================================================================
   Página Reservas
   ========================================================================== */
.tarifas { max-width: 760px; margin-inline: auto; }
.tarifas ul { margin-bottom: 24px; }
.tarifas ul li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.tarifas ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--verde);
}
.tarifas strong { color: #008000; font-weight: 600; }
.tarifas h3 {
  font-size: 20px; text-transform: lowercase; letter-spacing: 1px;
  margin: 32px 0 16px;
}
.tarifas hr { border: 0; border-top: 1px solid #e2e8f0; margin: 32px 0; }
.tarifas .notas li::before { background: #94a3b8; }

/* Aviso: no hay formulario, se reserva por teléfono o WhatsApp */
.aviso-contacto {
  background: var(--verde-claro);
  padding: 40px;
  display: grid; gap: 24px;
}
.aviso-contacto h2 { font-size: 28px; }
.aviso-contacto p { max-width: 60ch; }
.aviso-contacto__botones { display: flex; flex-wrap: wrap; gap: 14px; }

.boton-contacto {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ui); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 100px;
  background: var(--verde); color: #fff;
  transition: background-color .2s;
}
.boton-contacto:hover { background: var(--verde-hover); }
.boton-contacto svg { width: 20px; height: 20px; }
.boton-contacto--wa { background: var(--whatsapp); }
.boton-contacto--wa:hover { background: #1da851; }

.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contacto h2 { font-size: 28px; margin-bottom: 24px; }
.contacto h3 {
  font-size: 22px; text-transform: lowercase; letter-spacing: 2.5px;
  margin: 28px 0 12px;
}
.contacto h3:first-of-type { margin-top: 0; }
.contacto li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.contacto li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--verde); }
.contacto a:hover { color: var(--verde); text-decoration: underline; }

/* Mapa de situación: captura de Google Maps servida desde el propio dominio.
   No es un iframe, así que no hay ninguna petición a terceros y se ve igual con
   bloqueadores de contenido. Al pulsar se abre Google Maps en otra pestaña.
   La proporción es la de la captura (8:5): así no se recorta nada. */
.mapa {
  display: block; position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 8 / 5;
  border: 1px solid #dfe4e6;
}
.mapa img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15);
  transition: transform .4s ease, filter .3s ease;
}
.mapa:hover img, .mapa:focus-visible img { transform: scale(1.04); filter: grayscale(0); }

.mapa__rotulo {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: #fff; color: var(--verde);
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; line-height: 1;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .22);
}
.mapa:hover .mapa__rotulo, .mapa:focus-visible .mapa__rotulo {
  background: var(--verde); color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .mapa img { transition: none; }
  .mapa:hover img, .mapa:focus-visible img { transform: none; }
}

.mapa-bloque { margin: 0; }
/* La atribución va dentro de la captura, como pide Google, pero a este tamaño no
   se lee: se repite debajo en un cuerpo legible. */
.mapa-credito {
  margin-top: 6px;
  font-family: var(--ui); font-size: 11.5px; line-height: 1.4; color: #7c8791;
}

/* ==========================================================================
   Llamada a la acción final
   ========================================================================== */
.cta {
  display: grid; grid-template-columns: 60% 40%;
  background: var(--oliva);
  min-height: 450px;
}
.cta__texto {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  align-items: flex-start;
  margin: 60px 0;
  padding: 0 15% 0 5%;
  border: 1px solid var(--claro);
  border-left: 0;
}
.cta h2 {
  font-size: clamp(30px, 3.4vw, 45px); line-height: 1.1;
  text-transform: lowercase;
  color: var(--claro);
}
.cta h3 {
  font-size: 24px; line-height: 1.3; letter-spacing: -.13px;
  color: var(--claro);
}
.cta__imagen {
  background-image: url(../img/CTA-1024x680.jpg);
  background-size: cover; background-position: center;
  border-block: 1px solid var(--claro);
}
@media (max-width: 860px) { .cta__imagen { background-image: url(../img/CTA-768x510.jpg); } }

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal-cabecera {
  background: var(--verde);
  padding: 64px 0 56px;
  text-align: center;
}
.legal-cabecera h1 {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.3;
  letter-spacing: 1.5px; color: #fff;
}
.legal-cabecera p {
  margin: 14px 0 0; font-family: var(--ui); font-size: 15px; color: var(--gris-barra);
}

.legal { max-width: 820px; }
.legal h2 {
  font-size: 26px; line-height: 1.35; color: var(--tinta);
  margin: 46px 0 16px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--ui); font-size: 19px; font-weight: 600; color: var(--verde);
  margin: 30px 0 12px;
}
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 20px; }
.legal ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--verde);
}
.legal a { color: var(--azul-nav); text-decoration: underline; }
.legal a:hover { color: var(--verde); }

.legal__datos {
  display: grid; grid-template-columns: minmax(180px, auto) 1fr;
  gap: 8px 24px;
  margin: 0 0 24px;
  padding: 24px 26px;
  background: var(--claro);
  border-left: 4px solid var(--verde);
}
.legal__datos dt { font-family: var(--ui); font-weight: 600; color: var(--tinta); }
.legal__datos dd { margin: 0; }

/* ==========================================================================
   Pie
   ========================================================================== */
.pie { padding: 53px 0; background: #fff; }
.pie__interior {
  width: 100%; max-width: 1166px; margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
  display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px;
}
.pie img.pie__logo { width: 178px; margin-bottom: 16px; }
.pie__registro { font-weight: 700; color: var(--verde); margin-bottom: 4px; }
.pie__lema { font-family: var(--ui); color: var(--azul-nav); line-height: 1.4; margin-bottom: 20px; }
.pie hr { border: 0; border-top: 1px solid #d7dee2; margin: 0 0 20px; max-width: 180px; margin-left: 0; }
.pie__datos li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pie__datos a { font-weight: 600; color: var(--verde); }
.pie__datos a:hover { text-decoration: underline; }
.pie__datos svg { width: 16px; height: 16px; color: var(--verde); flex: none; }
.pie h2 {
  font-family: var(--ui); font-size: 22px; font-weight: 600;
  color: var(--verde); margin-bottom: 14px;
}
.pie__menu a {
  font-family: var(--ui); font-size: 16px; font-weight: 500;
  color: var(--gris-menu); line-height: 1.5;
  display: block; padding: 2px 0;
  transition: color .2s;
}
.pie__menu a:hover, .pie__menu a[aria-current="page"] { color: var(--verde); }

.pie-barra {
  min-height: 45px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 22px;
  padding: 10px 20px;
  background: var(--verde);
}
.pie-barra p {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--gris-barra); text-align: center;
}
.pie-barra__legal ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
}
.pie-barra__legal a {
  font-size: 14px; color: #E1E9ED;
  transition: color .2s;
}
.pie-barra__legal a:hover,
.pie-barra__legal a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  flex-direction: row-reverse;
}
.wa-flotante__boton {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-flotante__boton:hover { transform: scale(1.07); }
.wa-flotante__boton svg { width: 34px; height: 34px; }
.wa-flotante__globo {
  background: #fff; color: var(--texto);
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
  font-size: 14px; line-height: 1.35;
  max-width: 230px;
}
.wa-flotante__globo strong { display: block; font-weight: 600; color: var(--tinta); }
@media (max-width: 900px) { .wa-flotante__globo { display: none; } }

/* ==========================================================================
   Adaptación a pantallas menores
   ========================================================================== */
@media (max-width: 1024px) {
  .seccion { padding-block: 70px; }
  .mosaico { columns: 3; }
  .fichas--4 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta__imagen { min-height: 260px; order: -1; }
  .cta__texto { margin: 40px 20px; padding: 32px; border-left: 1px solid rgba(255,255,255,.45); }
  .pie__interior { grid-template-columns: 1fr 1fr; }
  .pie__mapa { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hamburguesa { display: grid; place-items: center; }

  .legal-cabecera { padding: 48px 0 40px; }
  .legal__datos { grid-template-columns: 1fr; gap: 2px; padding: 20px 22px; }
  .legal__datos dd { margin-bottom: 12px; }
  .legal__datos dd:last-child { margin-bottom: 0; }

  .nav-principal {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-top: 1px solid #e5eaed;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    padding: 10px 24px 24px;
    display: none;
  }
  .nav-principal.abierto { display: block; }
  .nav-principal ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-principal a {
    display: block; padding: 14px 0; font-size: 17px;
    border-bottom: 1px solid #eef2f4;
  }
  .nav-principal a[aria-current="page"] { color: var(--verde); }

  .cabecera__acciones .boton { padding: 12px 24px; font-size: 15px; }

  .tarjetas { grid-template-columns: 1fr; }
  .tarjeta { min-height: 240px; }
  .dos-columnas { grid-template-columns: 1fr; gap: 20px; }
  .galeria-rejilla { grid-template-columns: repeat(2, 1fr); }
  .mosaico { columns: 2; }
  .bloque-servicio { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .bloque-servicio--invertido .bloque-servicio__texto { order: 0; }
  .bloque-servicio__imagen { order: 2; }
  .sostenibilidad { grid-template-columns: 1fr; }
  .fichas--3 { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; gap: 32px; }
  .pie__interior { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .visor__ant { left: 8px; }
  .visor__sig { right: 8px; }
  .visor__pie { padding-inline: 20px; }
}

@media (max-width: 560px) {
  .seccion { padding-block: 52px; }
  .aviso-contacto { padding: 26px 20px; }
  .fichas--4 { grid-template-columns: 1fr; }
  .cabecera__interior { padding-inline: 16px; }
  .logo img { max-width: 33vw; }
  .cabecera__acciones { gap: 6px; }
  .cabecera__acciones .boton { padding: 10px 18px; font-size: 14px; }
  /* En móvil no caben cuatro elementos en la cabecera: del selector se deja solo
     el enlace al otro idioma, que es lo único sobre lo que se puede actuar. */
  .idiomas { font-size: 13px; gap: 0; }
  .idiomas__op { padding: 6px 8px; gap: 5px; }
  .idiomas__bandera { width: 18px; height: 13px; }
  .idiomas span.idiomas__op,
  .idiomas__op + .idiomas__op::before { display: none; }
  .idiomas__op + .idiomas__op { margin-left: 0; }
}


/* ==========================================================================
   Versión inglesa
   ==========================================================================
   El diseño heredado de Elementor fuerza varios títulos a minúscula. En español
   funciona como recurso gráfico; en inglés choca con la capitalización esperada,
   así que en /en/ se respeta el texto tal y como está escrito en datos_en.py. */
html[lang="en"] .titulo-seccion--min,
html[lang="en"] .tarjeta h2,
html[lang="en"] .tarifas h3,
html[lang="en"] .contacto h3,
html[lang="en"] .cta h2 { text-transform: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .cabecera, .wa-flotante, .visor, .franja, .cta__imagen { display: none !important; }
  body { color: #000; }
}
