/*
Theme Name: Villa Ignacia
Theme URI: https://villaignacia.com
Description: Child theme de Hello Elementor para Villa Ignacia
Author: Villa Ignacia
Template: hello-elementor
Version: 2.0.0
Text Domain: villa-ignacia
*/

/* Ocultar el contenedor del script */
.script-container {
  display: none;
}

/* ===== VARIABLES ===== */
:root {
  /* Corporativos */
  --verde-ingles: #1B3629;
  --gris-pizarra: #3A3F42;
  --oro-viejo: #C8A870;
  --blanco-piedra: #F2F0EB;
  --terracota: #C4785A;

  /* Derivados (hover, sombras) */
  --verde-oscuro: #0F2119;
  --oro-claro: #e2c67d;
  --terracota-claro: #D49A82;
  --gris-claro: #6B7075;
  --sombra-olivo: rgba(27, 54, 41, 0.15);
}

/* ===== TEXTURAS DE FONDO CON CSS ===== */

body {
  background-color: var(--blanco-piedra);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  /* Scroll suave nativo */
  scroll-behavior: smooth;
}

.seccion-manifiesto {
  background-color: var(--blanco-piedra);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
}

.seccion-footer {
  background-color: var(--verde-ingles);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
}

.seccion-hero {
  background: transparent;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gris-pizarra);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

body, p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.manifiesto-texto p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 300;
  line-height: 1.8;
  max-width: 60%;
}

.btn-villa {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== HEADER ===== */
.header-villa {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  transition: background 0.4s ease;
}

.header-villa.scrolled, body:not(.home) .header-villa {
  background-color: var(--verde-ingles);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.10'/%3E%3C/svg%3E");
  backdrop-filter: blur(10px);
  padding: 0px 30px;
  align-items: center;
}

/* Menú 2 líneas imperfectas */
.menu-hamburguesa {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  margin-top: 0;
  transition: margin-top 0.3s ease;
}

.header-villa.scrolled .menu-hamburguesa, body:not(.home) .menu-hamburguesa {
  margin-top: 3px;
}

.menu-linea {
  height: 1px;
  background: var(--oro-viejo);
  transition: all 0.3s ease;
}

.menu-linea:first-child {
  width: 24px;
  transform: rotate(-0.5deg);
}

.menu-linea:last-child {
  width: 20px;
  transform: rotate(0.8deg);
  margin-left: 2px;
}

.menu-hamburguesa:hover .menu-linea {
  background: var(--oro-claro);
}

/* Isotipo central */
.header-isotipo {
  display: flex;
  align-items: center;
}

.header-villa.scrolled .header-isotipo img, body:not(.home) .header-isotipo img {
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
}

.header-isotipo img {
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  transition: width 0.3s ease, height 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
}

/* Botón RESERVAR */
.btn-reservar-header {
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro-viejo);
  text-decoration: none;
  position: relative;
  margin-top: 0;
  transition: margin-top 0.3s ease;
}

.header-villa.scrolled .btn-reservar-header, body:not(.home) .btn-reservar-header {
  margin-top: 5px;
}

.btn-reservar-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--oro-viejo);
}

/* ===== Botón Flotante RESERVAR ===== */
.btn-flotante-reservar {
  text-align: center;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 14px 40px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blanco-piedra);
  background: var(--verde-ingles);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(27, 54, 41, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-flotante-reservar:hover {
  background: var(--verde-oscuro);
  transform: translateX(-50%) translateY(-2px);
}

/* ===== MENÚ FULLSCREEN ===== */
.menu-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--verde-ingles);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.10'/%3E%3C/svg%3E");
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding-top: 12vh;
}

.menu-fullscreen.active {
  opacity: 1;
  visibility: visible;
}

.menu-cerrar {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 28px;
  color: var(--blanco-piedra);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.menu-cerrar:hover {
  opacity: 1;
}

.menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-nav li {
  list-style: none;
  margin: 20px 0;
}

.menu-nav li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 300;
  color: var(--blanco-piedra);
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.menu-nav li a:hover {
  color: var(--oro-viejo);
  opacity: 1;
}

.menu-nav .sub-menu {
  list-style: none;
  padding: 10px 0 0 0;
}

.menu-nav .sub-menu li a {
  font-size: clamp(18px, 3vw, 24px);
  opacity: 0.6;
}

.menu-contacto {
  position: absolute;
  bottom: 35px;
  text-align: center;
}

.menu-contacto::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 30px;
}

.menu-contacto a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--blanco-piedra);
  opacity: 0.6;
  text-decoration: none;
  margin: 10px 0;
  transition: opacity 0.3s ease;
}

.menu-contacto a:hover {
  opacity: 1;
}


/* =========================================================
   EFECTO STICKY — SECCIONES APILADAS 
   =========================================================
   
   CRITICAL: position:sticky se rompe si CUALQUIER ancestro
   tiene overflow:hidden/auto/scroll. Elementor Flexbox 
   containers (.e-con) y el wrapper principal (.elementor)
   suelen tenerlo → hay que forzar overflow:visible.
   
   → Añade "villa-sticky" como CSS class en cada contenedor
     de Elementor (Avanzado → CSS Classes).
   ========================================================= */

/* Wrapper principal de Elementor */
.elementor {
  overflow: visible !important;
}

/* Elementor a veces añade overflow en el body o html */
html, body {
  overflow-x: hidden; /* solo ocultar desbordamiento horizontal */
}

/* Contenedores padre de Elementor Flexbox */
.e-con.e-parent:not(.villa-sticky) {
  overflow: visible !important;
}

/* El propio contenedor padre de la página */
[data-elementor-type="wp-page"],
[data-elementor-type="wp-post"] {
  overflow: visible !important;
}

/* ── Secciones sticky ── */
.villa-sticky {
  position: -webkit-sticky !important; /* Safari */
  position: sticky !important;
  top: 0;
  min-height: 100vh;
  overflow: hidden; /* solo el contenido interno se oculta */
  z-index: 1;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0);
  transition: box-shadow 0.6s ease;
}

/* z-index incremental con counter CSS (funciona con cualquier cantidad) */
.villa-sticky:nth-child(1)  { z-index: 1; }
.villa-sticky:nth-child(2)  { z-index: 2; }
.villa-sticky:nth-child(3)  { z-index: 3; }
.villa-sticky:nth-child(4)  { z-index: 4; }
.villa-sticky:nth-child(5)  { z-index: 5; }
.villa-sticky:nth-child(6)  { z-index: 6; }
.villa-sticky:nth-child(7)  { z-index: 7; }
.villa-sticky:nth-child(8)  { z-index: 8; }
.villa-sticky:nth-child(9)  { z-index: 9; }
.villa-sticky:nth-child(10) { z-index: 10; }

/* Sombra de profundidad cuando la sección entra en vista */
.villa-sticky.in-view {
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.12);
}

/* Última sección (footer): no sticky, fluye normal */
.villa-sticky:last-child {
  position: relative !important;
}


/* ===== Ken Burns - zoom suave ===== */
.ken-burns {
  overflow: hidden;
  /*position: relative;*/
}

.ken-burns::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.ken-burns > * {
  position: relative;
  z-index: 1;
}

/* ===== Parallax CSS ===== */
.parallax-villa {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .parallax-villa {
    background-attachment: scroll;
  }
}

/* ===== Animaciones Fade-In al Scroll ===== */
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Secciones sticky con contenido largo (más de 100vh)
   ─ Siguen siendo sticky para el efecto de apilamiento
   ─ El top negativo se calcula con JS para revelar todo el contenido
   ─ Al hacer scroll: primero ves la parte superior, la sección "sube"
     progresivamente hasta mostrar la parte inferior, y entonces
     la siguiente sección la cubre */
.villa-sticky-tall {
  min-height: auto !important;
  overflow: visible !important;
  /* top se calcula dinámicamente con JS */
}

/* ===== Sección Hero — El Puente ===== */
/* (Indicador antiguo eliminado — ahora usa .scroll-gold-* en su lugar) */

/* Hero — altura dinámica para móvil */
.seccion-hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .manifiesto-texto {
    max-width: 75%;
    margin-left: 5%;
  }
  .seccion-manifiesto::after {
    opacity: 0.2;
    width: 200px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .manifiesto-texto {
    max-width: 90%;
    margin-left: 5%;
  }
  .seccion-manifiesto::after {
    display: none;
  }
  .story-thumb {
    width: 60px; height: 60px;
  }
  .btn-flotante-reservar {
    bottom: 20px;
    padding: 12px 30px;
    width: 59%;
  }
  .habitacion-imagen-principal {
    max-width: 95%;
  }
  .parallax-villa {
    background-attachment: scroll;
  }
}

/* ===== VIDEO RÍO ===== */
#rio-seccion {
  position: sticky !important; /* Mantener sticky aunque tenga position: relative del vídeo */
  top: 0 !important;
}

@media (max-width: 767px) {
  #rio-seccion > .elementor-container,
  #rio-seccion > .e-con-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }
}

/* ===== SECCIÓN RÍO — Overlay + legibilidad ===== */

#rio-seccion::after, .seccion-habitaciones::after, .seccion-entorno::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 16, 12, 0.5) 0%,
    rgba(20, 16, 12, 0.2) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

#rio-seccion .elementor-widget, .seccion-habitaciones .elementor-widget, .seccion-entorno .elementor-widget, .seccion-lacalma .elementor-widget {
  position: relative;
  z-index: 2;
}

#rio-seccion .elementor-icon-box-content, .seccion-habitaciones .elementor-icon-box-content, .seccion-entorno .elementor-icon-box-content, .seccion-lacalma .elementor-icon-box-content {
  position: relative;
  padding-left: 1.2rem !important;
}

#rio-seccion .elementor-icon-box-content::before, .seccion-habitaciones .elementor-icon-box-content::before, .seccion-entorno .elementor-icon-box-content::before, .seccion-lacalma .elementor-icon-box-content::before{
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(193, 167, 120, 0.6) 20%,
    rgba(193, 167, 120, 0.6) 80%,
    transparent
  );
  z-index: 3;
}

#rio-seccion .elementor-icon-box-title span, .seccion-habitaciones .elementor-icon-box-title span, .seccion-entorno .elementor-icon-box-title span, .seccion-lacalma .elementor-icon-box-title span{
  color: var(--oro-claro) !important;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 1),
    2px 2px 4px rgba(0, 0, 0, 0.9),
    3px 3px 6px rgba(0, 0, 0, 0.6)
}

#rio-seccion .elementor-icon-box-description, .seccion-habitaciones .elementor-icon-box-description, .seccion-entorno .elementor-icon-box-description, .seccion-lacalma .elementor-icon-box-description{
  color: rgba(245, 240, 232, 0.75) !important;
  font-style: italic;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 0, 0, 0.5);
}

#rio-seccion .elementor-button {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER — Hello Elementor override ===== */

/* Fondo verde inglés + textura encalado oscuro */
.site-footer,
footer.site-footer {
    background-color: var(--verde-ingles) !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.10'/%3E%3C/svg%3E") !important;
    color: var(--blanco-piedra) !important;
    padding: 60px 40px 30px !important;
    position: relative;
}

/* Logo del footer en dorado */
.site-footer .site-logo img,
.site-footer .custom-logo {
    filter: brightness(0) saturate(100%)
            invert(72%) sepia(30%) saturate(500%)
            hue-rotate(10deg) brightness(95%) contrast(90%);
    /* Si tu logo ya es dorado en SVG, quita el filter y usa: */
    /* opacity: 1; */
    max-width: 120px;
}

/* Frase "No contamos los días..." */
.site-footer .site-description,
.site-footer p.site-description {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 300 !important;
    font-style: italic;
    color: var(--oro-claro) !important;
    letter-spacing: 0.02em;
    margin-top: 10px;
}

/* Copyright */
.site-footer .copyright,
.site-footer .site-info {
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(242, 240, 235, 0.35) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Links dentro del footer */
.site-footer a {
    color: var(--blanco-piedra) !important;
    text-decoration: none !important;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.site-footer a:hover {
    color: var(--oro-viejo) !important;
}

/* ===== Bloque contacto inyectado ===== */
.villa-footer-contacto {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 60px;
}

.villa-footer-linea-decorativa {
    width: 60px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(200, 168, 112, 0.4),
        transparent
    );
    margin: 0 auto 30px;
}

.villa-footer-datos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.villa-footer-dato {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(242, 240, 235, 0.55) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a.villa-footer-dato:hover {
    color: var(--oro-viejo) !important;
}

.villa-footer-sep {
    color: rgba(200, 168, 112, 0.3);
    margin: 0 14px;
    font-size: 10px;
}

/* Instagram */
.villa-footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(242, 240, 235, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.villa-footer-instagram:hover {
    color: var(--oro-viejo) !important;
}

.villa-footer-instagram svg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.villa-footer-instagram:hover svg {
    opacity: 1;
}

/* Coordenadas GPS */
.villa-footer-coordenadas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(242, 240, 235, 0.3) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.villa-footer-coordenadas:hover {
    color: rgba(242, 240, 235, 0.6) !important;
}

.villa-footer-coordenadas svg {
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.villa-footer-coordenadas:hover svg {
    opacity: 0.7;
}

/* ===== Línea dorada scroll indicator (reutilizable) ===== */
.villa-scroll-indicator {
  position: relative;
}

.scroll-gold-line {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--oro-viejo));
  animation: drawLine 2s ease-out 1s forwards;
  z-index: 5;
  transition: opacity 0.5s ease;
  overflow: visible;
}

/* Punta de flecha al final de la línea */
.scroll-gold-line::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--oro-viejo);
  opacity: 0;
  animation: arrowIn 0.4s ease 2.8s forwards;
}

/* Gota acumulándose en la punta antes de caer */
.scroll-gold-line::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 35%, #ede0c8, var(--oro-viejo));
  border-radius: 50%;
  opacity: 0;
  animation: formDrop 3.2s ease 2.5s infinite;
  z-index: 6;
}

/* Texto encima de la línea — el contenido va en el HTML para traducción */
.scroll-gold-text {
  position: absolute;
  bottom: 210px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro-claro);
  white-space: nowrap;
  opacity: 0;
  animation: scrollTextAppear 0.6s ease 2s forwards;
  z-index: 5;
  transition: opacity 0.5s ease;
}

/* Gota con forma real de lágrima (clip-path) */
.scroll-gold-trail {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(circle at 40% 45%, #ede0c8, var(--oro-viejo));
  clip-path: path('M6 0 C6 0 0 10 0 13 C0 15.76 2.69 18 6 18 C9.31 18 12 15.76 12 13 C12 10 6 0 6 0Z');
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(200, 168, 112, 0.5));
  animation: trailFall 3.2s cubic-bezier(0.22, 0, 0.9, 0.4) 2.5s infinite;
}

/* Ondas de impacto */
.scroll-gold-ripple {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 2px;
  border: 1.2px solid var(--oro-viejo);
  border-radius: 50%;
  opacity: 0;
  z-index: 5;
  animation: ripple1 3.2s ease-out 2.5s infinite;
}
.scroll-gold-ripple:nth-child(3) {
  animation: ripple2 3.2s ease-out 2.5s infinite;
}
.scroll-gold-ripple:nth-child(4) {
  animation: ripple3 3.2s ease-out 2.5s infinite;
  border: none;
}

/* Partículas de splash */
.scroll-gold-ripple:nth-child(4)::before,
.scroll-gold-ripple:nth-child(4)::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--oro-viejo);
  border-radius: 50%;
  opacity: 0;
}
.scroll-gold-ripple:nth-child(4)::before {
  animation: splashL 3.2s ease-out 2.5s infinite;
}
.scroll-gold-ripple:nth-child(4)::after {
  animation: splashR 3.2s ease-out 2.5s infinite;
}

/* Ya no se usa la flecha */
.scroll-gold-arrow {
  display: none;
}

.scroll-gold-text,
.scroll-gold-line,
.scroll-gold-ripple {
  cursor: pointer;
}

@keyframes drawLine {
  to { height: 100px; }
}

@keyframes scrollTextAppear {
  to { opacity: 1; }
}

@keyframes arrowIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes formDrop {
  0%   { transform: translateX(-50%) scale(0); opacity: 0; }
  5%   { transform: translateX(-50%) scale(0.3); opacity: 0.6; }
  10%  { transform: translateX(-50%) scale(0.85); opacity: 1; }
  13%  { transform: translateX(-50%) scale(1.05); opacity: 1; }
  15%  { transform: translateX(-50%) scale(0.15); opacity: 0; }
  100% { transform: translateX(-50%) scale(0); opacity: 0; }
}

@keyframes trailFall {
  0%  {
    transform: translateX(-50%) translateY(0) scale(0.6);
    opacity: 0;
  }
  2%  {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
  48% {
    transform: translateX(-50%) translateY(32px) scale(1);
    opacity: 1;
  }
  58% {
    transform: translateX(-50%) translateY(38px) scaleX(1.1) scaleY(0.85);
    opacity: 0.9;
  }
  65% {
    transform: translateX(-50%) translateY(40px) scaleX(1.6) scaleY(0.3);
    opacity: 0;
  }
  66% {
    transform: translateX(-50%) translateY(0) scale(0);
    opacity: 0;
  }
  100% { opacity: 0; }
}

@keyframes ripple1 {
  0%, 58% { width: 4px; height: 2px; opacity: 0; }
  60%     { width: 6px; height: 3px; opacity: 0.8; border-width: 1.5px; }
  82%     { width: 70px; height: 18px; opacity: 0; border-width: 0.4px; }
  100%    { opacity: 0; }
}

@keyframes ripple2 {
  0%, 62% { width: 4px; height: 2px; opacity: 0; }
  65%     { width: 5px; height: 3px; opacity: 0.55; border-width: 1px; }
  85%     { width: 48px; height: 14px; opacity: 0; border-width: 0.4px; }
  100%    { opacity: 0; }
}

@keyframes ripple3 {
  0%, 66% { width: 2px; height: 1px; opacity: 0; }
  69%     { width: 3px; height: 2px; opacity: 0.3; }
  88%     { width: 30px; height: 10px; opacity: 0; }
  100%    { opacity: 0; }
}

/* Partículas splash */
@keyframes splashL {
  0%, 58% { opacity: 0; transform: translate(0, 0); width: 3px; height: 3px; }
  60%     { opacity: 0.8; transform: translate(0, 0); }
  78%     { opacity: 0; transform: translate(-16px, -22px); width: 2px; height: 2px; }
  100%    { opacity: 0; }
}

@keyframes splashR {
  0%, 59% { opacity: 0; transform: translate(0, 0); width: 3px; height: 3px; }
  61%     { opacity: 0.7; transform: translate(0, 0); }
  76%     { opacity: 0; transform: translate(13px, -19px); width: 1.5px; height: 1.5px; }
  100%    { opacity: 0; }
}

@keyframes rippleExpand {
  0%, 43% { width: 4px; height: 2px; opacity: 0; }
  45% { width: 4px; height: 2px; opacity: 0.6; }
  70% { width: 38px; height: 10px; opacity: 0; }
  100% { opacity: 0; }
}

/* Ocultar cuando la sección ya no está visible */
.indicator-hidden .scroll-gold-text,
.indicator-hidden .scroll-gold-line,
.indicator-hidden .scroll-gold-trail,
.indicator-hidden .scroll-gold-ripple,
.indicator-hidden .scroll-gold-arrow {
  opacity: 0;
  pointer-events: none;
}

/* Indicador scroll — ajuste móvil (por encima del botón fijo) */
@media (max-width: 768px) {
  .scroll-gold-text  { bottom: 240px; }
  .scroll-gold-line   { bottom: 141px; }
  .scroll-gold-ripple { bottom: 100px; }
}

/* ===== FOOTER MÓVIL ===== */
@media (max-width: 768px) {

    .site-footer {
        padding: 35px 25px 25px !important;
    }

    /* Footer inner: todo centrado en columna */
    .site-footer .footer-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    /* Branding centrado */
    .site-footer .site-branding {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Logo centrado y más pequeño */
    .site-footer .site-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .site-footer .site-logo img,
    .site-footer .custom-logo {
        max-width: 70px !important;
        width: 70px !important;
        height: auto !important;
    }

    /* Frase compacta */
    .site-footer .site-description {
        font-size: 17px !important;
        line-height: 1.4;
        margin-top: 8px;
        text-align: center;
    }

    /* Copyright muy discreto */
    .site-footer .copyright,
    .site-footer .copyright p {
        font-size: 8px !important;
        letter-spacing: 0.12em;
        opacity: 0.8;
        margin-top: 6px;
        text-align: center;
    }

    /* Línea decorativa */
    .villa-footer-linea-decorativa {
        width: 40px;
        margin: 0 auto 18px;
    }

    /* Bloque contacto */
    .villa-footer-contacto {
        margin-top: 25px;
        width: 100%;
    }

    .villa-footer-datos {
        flex-direction: column;
        gap: 6px;
    }

    .villa-footer-sep {
        display: none;
    }

    .villa-footer-dato {
        font-size: 11.5px;
    }

    .villa-footer-coordenadas {
        margin-top: 12px;
        font-size: 9.5px;
    }

    .villa-footer-instagram {
        margin-top: 14px;
        font-size: 11.5px;
    }
}

/* ===== GALERÍA DE MOMENTOS ===== */
.galeria-momentos {
  overflow: hidden !important;
}

/* Subtítulo */
.galeria-subtitulo, .galeria-subtitulo .elementor-heading-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: #3a3f42 !important;
  text-align: center;
}

/* Contenedor scroll horizontal */
.galeria-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
  padding: 0 60px 20px !important;
  gap: 24px !important;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.galeria-scroll::-webkit-scrollbar {
  display: none;
}

.galeria-scroll:active {
  cursor: grabbing;
}

/* Cada tarjeta */
.galeria-card {
  flex: 0 0 320px !important;
  min-width: 320px !important;
  height: 420px !important;
  min-height: 420px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  position: relative !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.3s ease;
}

/* Ken Burns al hover */
.galeria-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 5s ease;
  z-index: 0;
}

.galeria-card:hover::before {
  transform: scale(1.08);
}

/* Overlay degradado en la parte inferior */
.galeria-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 33, 25, 0.85) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Texto de la tarjeta */
.galeria-card-texto,
.galeria-card-texto .elementor-heading-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--blanco-piedra) !important;
}

.galeria-card .elementor-widget-heading {
  position: absolute !important;
  bottom: 25px !important;
  left: 24px !important;
  right: 24px !important;
  z-index: 2 !important;
}

/* ===== FLECHAS GALERÍA SCROLL — solo escritorio ===== */
@media (min-width: 769px) {
  .galeria-wrapper {
    position: relative;
  }

  .galeria-flecha {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--verde-ingles);
    border: 1px solid var(--oro-viejo);
    color: var(--oro-viejo);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  .galeria-flecha:hover {
    background: var(--verde-oscuro);
    color: var(--oro-claro);
  }

  .galeria-flecha--prev { left: 12px; }
  .galeria-flecha--next { right: 12px; }

  .galeria-flecha.oculta {
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .galeria-scroll {
    padding: 0 25px 16px !important;
    gap: 16px !important;
  }

  .galeria-card {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    height: 340px !important;
    min-height: 340px !important;
  }
}

/* Sección sonido del río */
.vi-rio-section {
  overflow: hidden;
  position: relative;
}

.vi-rio-section .elementor-widget.vi-quote {
  max-width: 700px !important;
  margin-left: auto;
  margin-right: auto;
}

/* ── Reproductor río ── */
.vi-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 32px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 60px;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s;
}
.vi-player-pill:hover {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}
.vi-pill-text {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  transition: color 0.3s;
}
.vi-pill-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}
.vi-pill-btn svg { fill: #f7f5f0; width: 14px; margin-left: 2px; }
.vi-player-pill:hover .vi-pill-btn { background: #1a1a1a; }

.vi-pill-btn .vi-pause { display: none; }
.vi-rio-playing .vi-pill-btn .vi-play { display: none; }
.vi-rio-playing .vi-pill-btn .vi-pause { display: block; }
.vi-rio-playing .vi-pill-text { color: #2a2a2a; }

.vi-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  margin-top: 10px;
  justify-content: center;
}
.vi-mini-bar {
  width: 2px;
  background: #c4a97d;
  border-radius: 1px;
  opacity: 0.25;
  height: 4px;
}
.vi-rio-playing .vi-mini-bar {
  opacity: 0.5;
  animation: viBarPulse 2s ease-in-out infinite;
}
@keyframes viBarPulse {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ── Onda SVG de fondo ── */
.vi-wave-bg {
  position: absolute;
  width: 120%;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.vi-wave-bg path {
  stroke: #c4a97d;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: viWaveDraw 8s ease-in-out forwards infinite alternate;
}
@keyframes viWaveDraw {
  to { stroke-dashoffset: 0; }
}
.vi-pill-btn svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px;
  display: block;
}

@media (max-width: 768px) {
  .vi-wave-bg {
    width: 300%;
    left: -100%;
  }
}
.vi-no-hay-section h2 em {
  font-style: italic;
  color: #c4a97d;
}
.vi-entorno-intro h2 em {
  font-style: italic;
  color: var(--oro-viejo);
}
.vi-entorno-intro .elementor-widget.vi-entorno-text {
  max-width: 550px !important;
  margin-left: auto;
  margin-right: auto;
}
.vi-entorno-cifras h2 em {
  font-style: italic;
  color: var(--oro-claro);
}
@media (max-width: 768px) {
  .vi-cifras-grid > .e-con-inner {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 40px 20px !important;
  }
  .vi-cifras-grid > .e-con-inner > .e-con {
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    flex-basis: calc(50% - 10px) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
}
.vi-ronda-section h2 em {
  font-style: italic;
  color: var(--oro-viejo);
}

.vi-ronda-section .elementor-widget.vi-ronda-text {
  max-width: 400px !important;
}
.vi-ronda-section > .e-con-inner > .e-con:first-child {
  position: relative;
}
.vi-ronda-section > .e-con-inner > .e-con:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
}
@media (max-width: 768px) {
  .vi-ronda-section > .e-con-inner {
    flex-direction: column !important;
  }
  .vi-ronda-section > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
  .vi-ronda-section > .e-con-inner > .e-con:first-child::after {
    display: none;
  }
  .vi-ronda-section > .e-con-inner > .e-con:last-child {
    min-height: 350px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
.vi-quehacer-section h2 em {
  font-style: italic;
  color: var(--oro-claro);
}
.vi-quehacer-card {
  transition: border-color 0.4s, background-color 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vi-quehacer-card:hover {
  border-color: rgba(200,180,150,0.2) !important;
  background-color: rgba(200,180,150,0.06) !important;
}
.vi-quehacer-card .elementor-widget.vi-quehacer-number {
  position: absolute !important;
  top: 16px;
  right: 20px;
}
.vi-quehacer-tag .elementor-heading-title {
  display: inline-block;
  border: 1px solid rgba(196,169,125,0.2);
  padding: 4px 12px;
  border-radius: 20px;
}
.vi-quehacer-grid > .e-con-inner {
  flex-wrap: wrap !important;
  flex-direction: row !important;
  gap: 24px !important;
}
.vi-quehacer-grid > .e-con-inner > .e-con {
  width: calc(33.33% - 16px) !important;
  max-width: calc(33.33% - 16px) !important;
  flex-basis: calc(33.33% - 16px) !important;
  flex-grow: 0 !important;
}
@media (max-width: 768px) {
  .vi-quehacer-grid > .e-con-inner {
    flex-direction: column !important;
  }
  .vi-quehacer-grid > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 400px !important;
    flex-basis: 100% !important;
    margin: 0 auto;
  }
}
.vi-pueblos-section h2 em {
  font-style: italic;
  color: var(--oro-claro);
}
/* ── Modal Calendario ── */
.vi-cal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.vi-cal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vi-cal-modal {
  background: var(--blanco-piedra);
  border-radius: 8px;
  padding: 50px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.vi-cal-overlay.active .vi-cal-modal {
  transform: translateY(0);
}

.vi-cal-cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--gris-pizarra);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  line-height: 1;
}
.vi-cal-cerrar:hover { opacity: 1; }

.vi-cal-kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--oro-viejo);
  margin-bottom: 10px;
}

.vi-cal-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 32px !important;
  font-weight: 300 !important;
  font-style: italic;
  color: var(--gris-pizarra) !important;
  margin-bottom: 30px;
}

.vi-cal-fields {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.vi-cal-field {
  flex: 1;
  text-align: left;
}

.vi-cal-field label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro-viejo);
  margin-bottom: 8px;
}

.vi-cal-field input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  background: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--gris-pizarra);
  transition: border-color 0.3s;
  cursor: pointer;
}
.vi-cal-field input[type="date"]:focus {
  outline: none;
  border-color: var(--oro-viejo);
}

.vi-cal-noches {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--oro-viejo);
  min-height: 24px;
  margin-bottom: 24px;
}

.vi-cal-btn {
  width: 100%;
  padding: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blanco-piedra);
  background: var(--verde-ingles);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}
.vi-cal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.vi-cal-btn:not(:disabled):hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27,54,41,0.3);
}

@media (max-width: 480px) {
  .vi-cal-modal { padding: 40px 24px; }
  .vi-cal-fields { flex-direction: column; gap: 12px; }
}

/*PARA LA CARGA DEL CALENDARIO NATIVO DEL NAVEGADOR
.vi-cal-field input[type="date"] {
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C8A870' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.vi-cal-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}*/
/* ── Inputs calendario ── */
.vi-cal-field input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  background: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--gris-pizarra);
  transition: border-color 0.3s;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C8A870' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.vi-cal-field input:focus {
  outline: none;
  border-color: var(--oro-viejo);
}

/* ── Flatpickr personalizado Villa Ignacia ── */
.flatpickr-calendar {
  background: var(--blanco-piedra) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
  font-family: 'Manrope', sans-serif !important;
  padding: 8px !important;
}

/* Flechas navegación */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--oro-viejo) !important;
  fill: var(--oro-viejo) !important;
  padding: 8px 12px !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--gris-pizarra) !important;
}

/* Mes y año */
.flatpickr-current-month {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  color: var(--gris-pizarra) !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  background: transparent !important;
  color: var(--gris-pizarra) !important;
}
.numInputWrapper input {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  color: var(--gris-pizarra) !important;
}

/* Días de la semana */
.flatpickr-weekdays {
  background: transparent !important;
}
span.flatpickr-weekday {
  font-family: 'Manrope', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--oro-viejo) !important;
  font-weight: 400 !important;
  background: transparent !important;
}

/* Días */
.flatpickr-day {
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  color: var(--gris-pizarra) !important;
  border-radius: 6px !important;
  border: none !important;
  transition: all 0.2s !important;
  max-width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}

/* Hover */
.flatpickr-day:hover {
  background: rgba(200,168,112,0.12) !important;
  border: none !important;
}

/* Día seleccionado */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--verde-ingles) !important;
  color: var(--blanco-piedra) !important;
  border: none !important;
}
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--verde-oscuro) !important;
}

/* Hoy */
.flatpickr-day.today {
  border: 1px solid var(--oro-viejo) !important;
}
.flatpickr-day.today:hover {
  background: rgba(200,168,112,0.12) !important;
}

/* Días deshabilitados */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(58,63,66,0.2) !important;
}

/* Quitar sombra por defecto */
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none !important;
}

.vi-cal-modal {
  overflow: visible !important;
}
.vi-cal-modal {
  max-width: 520px;
  overflow: visible !important;
}
.vi-cal-overlay {
  overflow-y: auto;
}
.vi-cal-field {
  position: relative;
}
.vi-cal-modal {
  max-width: 520px !important;
  min-width: 380px;
  overflow: visible !important;
}

.flatpickr-calendar {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  z-index: 400 !important;
}

.flatpickr-calendar {
  z-index: 400 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  right: auto !important;
  bottom: auto !important;
  width: 330px !important;
  min-width: 330px !important;
}

.vi-inmersiones-section h2 em {
  font-style: italic;
  color: var(--oro-viejo);
}

.vi-exp h2 em {
  font-style: italic;
  color: var(--oro-viejo);
}

/* Villa Ignacia · CTA La Calma · texto decorativo de fondo */
#vi-calma-bg, #vi-llegar-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.vi-lacalma-section h2 em, .vi-llegar-section h2 em{
  font-style: italic;
  color: var(--oro-viejo);
}

/* =============================================
   VILLA IGNACIA · Tarjetas Experiencias La Calma
   ============================================= */

@keyframes vi-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — Grid overflow visible — */
.vi-exp-grid > .e-con-inner {
  overflow: visible !important;
  align-items: stretch !important;
}

/* — Wrappers altura completa + animación — */
.vi-card-wrap {
  opacity: 0;
  animation: vi-fadeUp 0.6s ease forwards 0.6s;
  height: auto !important;
}
.vi-card-wrap:nth-child(2) { animation-delay: 0.75s; }
.vi-card-wrap:nth-child(3) { animation-delay: 0.9s; }

/* — e-con-inner del wrapper ocupa toda la altura — */
.vi-card-wrap > .e-con-inner {
  height: 100% !important;
  align-items: stretch !important;
}

/* — Tarjeta ocupa toda la altura del wrapper — */
.vi-card {
  height: 100% !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.vi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* — e-con-inner de la tarjeta en columna ocupando todo — */
.vi-card > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* — Descripción (text-editor sin clase) crece y empuja precio y botón abajo — */
.vi-card > .e-con-inner > .elementor-widget-text-editor:not(.vi-card-precio) {
  flex-grow: 1 !important;
}

/* — Etiqueta tipo — */
.vi-card-tipo .elementor-heading-title {
  font-size: 0.52rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
}

/* — Botón Descubrir — */
.vi-card-link .elementor-button {
  background: transparent !important;
  border: none !important;
  color: #c9a96e !important;
  font-size: 0.6rem !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  transition: opacity 0.3s ease !important;
}
.vi-card-link .elementor-button:hover {
  opacity: 0.6 !important;
}
/* — Descripción crece y empuja el footer al fondo — */
.vi-card > .e-con-inner > .elementor-widget-text-editor {
  flex-grow: 1 !important;
}

/* — Footer siempre al fondo — */
.vi-card-footer {
  margin-top: auto !important;
}

/* — Badge llaves (derecha) — */
.vi-card-llaves .elementor-heading-title {
  font-size: 0.52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2a2520;
  background: #c9a96e;
  padding: 5px 12px;
  border-radius: 20px;
}

/* — Imagen — */
.vi-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* — Pill tag combínalo — */
.vi-card-tag .elementor-heading-title {
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a7345;
  border: 1px solid rgba(201,169,110,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

.vi-card-img img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
}

/* — Badge tipo (HABITACIÓN / DÚPLEX) — */
.vi-card-tipo-llaves .elementor-heading-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: #2a2520;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* — Badge llaves (2 llaves / 3 llaves) — */
.vi-card-llaves .elementor-heading-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: #c9a96e;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
}
.vi-card-footer.e-con > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.vi-card-footer .vi-card-precio,
.vi-card-footer .vi-card-link {
  width: auto !important;
  flex: 0 0 auto !important;
}
/* — Footer fila — */
.vi-card-footer.e-con-full {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.descubre-rio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2c67d;
  padding: 8px 16px;
  background: rgba(0,0,0,0.40);
  border-radius: 2px;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
.descubre-rio::before {
  content: '←';
  font-size: 13px;
  transition: transform 0.3s ease;
  display: inline-block;
}
.descubre-rio:hover {
  color: #e2c67d;
}
.descubre-rio:hover::before {
  transform: translateX(-4px);
}
.mapa-full-height {
  align-self: stretch;
}
.mapa-full-height .elementor-widget-google_maps,
.mapa-full-height .elementor-widget-container,
.mapa-full-height .elementor-custom-embed {
  height: 100%;
}
.mapa-full-height iframe {
  height: 100% !important;
  min-height: 400px;
  display: block;
}
@media (max-width: 768px) {
  .mapa-full-height {
    align-self: auto;
    height: auto;
  }

  .mapa-full-height .elementor-widget-google_maps,
  .mapa-full-height .elementor-widget-container,
  .mapa-full-height .elementor-custom-embed {
    height: auto;
  }

  .mapa-full-height iframe {
    height: 300px !important;
  }
}
.card-b-body-vi {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.card-b-bottom-vi {
  margin-top: auto !important;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 14px;
  width: 100%;
}
/*GRID DE FOTOS*/
.foto-grid-vi .e-con-inner {
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 200px);
  gap: 8px;
  width: 100%;
  padding: 0 !important;
}

.foto-grande-grid-vi {
  grid-row: 1 / 4 !important;
  grid-column: 1 !important;
  position: relative !important;
}

.foto-grande-grid-vi .elementor-widget-container {
  position: absolute !important;
  inset: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.foto-grande-grid-vi .elementor-image,
.foto-grande-grid-vi .elementor-image a {
  display: block !important;
  height: 100% !important;
}

.foto-grande-grid-vi img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
}

/* Fotos pequeñas */
.foto-grid-vi .elementor-widget-container,
.foto-grid-vi .elementor-image,
.foto-grid-vi .elementor-image a,
.foto-grid-vi figure {
  height: 100% !important;
  margin: 0 !important;
  display: block !important;
}

.foto-grid-vi img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
}

.foto-grid-vi .e-con-inner .elementor-widget:not(.foto-grande-grid-vi) {
  height: 200px !important;
  overflow: hidden !important;
}

/* Móvil */
@media (max-width: 768px) {
  .foto-grid-vi .e-con-inner {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(2, 180px) !important;
  }

  .foto-grande-grid-vi {
    grid-row: auto !important;
    grid-column: auto !important;
    position: relative !important;
    margin-bottom: 0 !important;
    height: 180px !important;
  }

  .foto-grande-grid-vi .elementor-widget-container {
    position: relative !important;
    height: 180px !important;
    inset: auto !important;
  }

  .foto-grande-grid-vi img {
    object-position: center top !important;
  }

  /* Forzar todas las celdas al mismo alto */
  .foto-grid-vi .e-con-inner .elementor-widget {
    height: 180px !important;
    overflow: hidden !important;
    align-self: start !important;
  }
  .foto-grid-vi .elementor-widget-image a {
    display: contents !important;
  }
}
/*Mostrar flechas en el lightbox de las imagenes*/
.elementor-lightbox .elementor-swiper-button-next,
.elementor-lightbox .elementor-swiper-button-prev {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.elementor-lightbox .elementor-swiper-button-next {
  right: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-prev {
  left: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-next svg,
.elementor-lightbox .elementor-swiper-button-prev svg {
  width: 20px !important;
  height: 20px !important;
  fill: white !important;
  color: white !important;
}
@media (max-width: 768px) {
  .elementor-lightbox .elementor-swiper-button-next,
  .elementor-lightbox .elementor-swiper-button-prev {
    display: none !important;
  }
}
/*FIN DE GRID DE FOTOS*/
/*TAGS EN LA PÁGINA DE 7 LLAVES*/
.tags-vi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags-vi span {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a09888;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 12px;
  border-radius: 20px;
}

.tags-vi--claro span {
  color: #5a5045;
  border-color: rgba(0,0,0,0.12);
}

.btn-full-vi,
.btn-full-vi .elementor-widget-container,
.btn-full-vi .elementor-button-wrapper,
.btn-full-vi .elementor-button {
  width: 100% !important;
  display: block !important;
}

/*IDIOMAS*/
/* Selector de idiomas */
.header-idiomas {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  list-style: none;
  padding: 0;
  gap: 0;
}

.header-idiomas .lang-item {
  display: flex;
  align-items: center;
  list-style: none;
}

/* Separador · entre idiomas */
.header-idiomas .lang-item:not(:last-child)::after {
  content: '·';
  color: #b5a48a;
  opacity: 0.4;
  font-size: 0.7rem;
  margin: 0 0.4rem;
}

.header-idiomas .lang-item a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5a48a;
  text-decoration: none;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.header-idiomas .lang-item a:hover {
  opacity: 0.6;
}

/* Idioma activo en blanco crema */
.header-idiomas .current-lang a {
  color: #F2EDE7;
}

/* Isotipo centrado — sin tocar position:fixed del header */
.header-isotipo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px; /* alineado con el padding inicial */
}

.header-villa.scrolled .header-isotipo,
body:not(.home) .header-isotipo {
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Idiomas pegados a la derecha */
.header-idiomas {
  margin-left: auto;
}

.header-villa.scrolled,
body:not(.home) .header-villa {
  min-height: 70px;
}

@media (max-width: 768px) {
  .header-idiomas {
    display: none;
  }
}

.menu-idiomas-mobile {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
}

.menu-idiomas-mobile .lang-item {
  list-style: none;
}

.menu-idiomas-mobile .lang-item:not(:last-child)::after {
  content: '·';
  color: #b5a48a;
  opacity: 0.4;
  font-size: 0.7rem;
  margin: 0 0.5rem;
}

.menu-idiomas-mobile .lang-item a {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b5a48a;
  text-decoration: none;
}

.menu-idiomas-mobile .current-lang a {
  color: #F2EDE7;
}
