/* --- 1. Variables & Reset --- */
:root {
    --color-primary: #2E7D32;
    --color-primary-dark: #1B5E20;
    --color-accent: #66BB6A;
    --color-bg: #FCFDF5;
    --color-bg-light: #E8F5E9;
    --color-text: #37474F;
    --color-text-light: #607D8B;
    --color-white: #FFFFFF;
    
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    --radius-card: 12px;
    --radius-btn: 6px;
    /* NUEVA VARIABLE PARA EL HEADER REDONDEADO */
    --radius-header: 50px; 
    --shadow-card: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-header: 0 8px 24px rgba(0,0,0,0.08);
    
    /* Altura base del header (aumentada para el logo nuevo) */
    --header-height: 90px; 
    --sidebar-width: 320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* --- 2. Typography --- */
h1, h2, h3 { color: var(--color-primary-dark); line-height: 1.2; margin-bottom: var(--spacing-sm); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

.text-link { color: var(--color-primary); font-weight: 600; border-bottom: 2px solid transparent; }
.text-link:hover { border-bottom-color: var(--color-primary); }

/* --- 3. Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-1px); }
.btn-secondary { background-color: var(--color-bg-light); color: var(--color-primary-dark); }
.btn-secondary:hover { background-color: #C8E6C9; }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: var(--color-white); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.full-width { width: 100%; }

/* --- 4. Layout Grid --- */
.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- 5. Header "Cápsula" Flotante (CAMBIOS IMPORTANTES AQUÍ) --- */
.site-header {
    /* El contenedor padre ahora es transparente y solo sirve para el posicionamiento sticky */
    position: sticky;
    top: 15px; /* Espacio superior para que "flote" */
    z-index: 1000;
    padding: 0 var(--spacing-sm);
    pointer-events: none; /* Permite hacer clic a través de las áreas transparentes */
}

.header-container {
    /* El contenedor interno es el que tiene el estilo de cápsula */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    
    background: var(--color-white);
    border-radius: var(--radius-header); /* Esquinas muy redondeadas */
    box-shadow: var(--shadow-header); /* Sombra más pronunciada para efecto flotante */
    padding: 0.75rem 1.5rem; /* Padding interno de la cápsula */
    pointer-events: auto; /* Reactiva los clics dentro de la cápsula */
    transition: all 0.3s ease;
}

/* Logo más grande */
.logo-img { 
    height: 55px; /* Tamaño base en móvil, más grande que antes */
    width: auto;
    transition: height 0.3s ease;
}

/* Menú móvil */
.main-nav { display: none; }
.nav-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger { display: block; width: 25px; height: 3px; background: var(--color-text); position: relative; }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 25px; height: 3px; background: var(--color-text); left: 0; transition: 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Menú móvil abierto */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    /* Ajustamos la posición del menú desplegable al nuevo estilo */
    top: calc(100% + 10px); 
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-header);
    border-radius: var(--radius-card);
    z-index: 1001;
}
.nav-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; text-align: center; font-weight: 500;}
.nav-cta { width: 100%; }

/* --- 6. Sidebar --- */
.sidebar {
    background: transparent;
    padding: var(--spacing-sm);
    order: 2;
}
.panel { margin-bottom: var(--spacing-sm); }
.card-panel {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}
.highlight-panel { background: var(--color-bg-light); border: none; box-shadow: none; }
.testimonial-snippet { font-style: italic; color: var(--color-text-light); margin-bottom: 0.5rem; font-size: 0.95rem; }
.author { display: block; font-weight: 600; margin-top: 0.5rem; font-style: normal; font-size: 0.85rem; }
.contact-list-mini li { margin-bottom: 0.5rem; }
.contact-list-mini a { font-weight: 500; color: var(--color-primary); }

/* --- 7. Content (Main) --- */
.content {
    padding: var(--spacing-sm);
    order: 1;
}

/* Ajuste del scroll-margin para el nuevo header más alto */
.section-block { margin-bottom: var(--spacing-lg); scroll-margin-top: calc(var(--header-height) + 40px); }

/* Hero */
.hero-section { padding: var(--spacing-md) 0; }
.hero-grid { display: flex; flex-direction: column; gap: var(--spacing-md); }
.hero-lead { font-size: 1.1rem; color: var(--color-text-light); }
.hero-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.availability-note { font-size: 0.8rem; color: var(--color-text-light); }
.card-visual { background: var(--color-white); padding: 0.75rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.hero-visual img { border-radius: 8px; margin-bottom: 1rem; height: 250px; width: 100%; }
.stars { color: #FBC02D; letter-spacing: 2px; margin-bottom: 0.5rem; }

/* Trust Bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    justify-content: space-around;
    border: 1px solid rgba(0,0,0,0.05);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.trust-icon { font-size: 1.2rem; }

/* Sections Standard */
.two-col-grid { display: grid; gap: var(--spacing-md); }
.rounded-img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.highlight-text { font-size: 1.2rem; font-weight: 600; color: var(--color-primary); }

/* Servicios Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}
.amenity-card { background: var(--color-white); padding: 1.25rem 1rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-align: center; transition: transform 0.3s; }
.amenity-card:hover { transform: translateY(-3px); }
.amenity-card h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--color-primary); }
.amenity-card p { font-size: 0.85rem; margin: 0; color: var(--color-text-light); }

/* Actividades */
.activities-grid { display: grid; gap: var(--spacing-md); }
.activity-card { background: var(--color-white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.activity-card img { height: 200px; width: 100%; }
.card-content { padding: 1.5rem; }

/* Contacto */
.contact-section { background: var(--color-primary-dark); color: var(--color-white); padding: var(--spacing-md); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.contact-section h2, .contact-section a, .contact-section p { color: var(--color-white); }
.contact-details a { text-decoration: underline; }
.contact-wrapper { display: grid; gap: var(--spacing-md); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--radius-btn);
    font-family: inherit;
}

.contact-section {
  margin-bottom: 2rem; /* antes seguramente era 4rem o más */
}

/* Footer & Floating */
.site-footer { background: #ECEFF1; padding: var(--spacing-md); text-align: center; font-size: 0.9rem; color: var(--color-text-light); margin-top: auto; }
.footer-nav { margin-top: 0.5rem; display: flex; justify-content: center; gap: 1rem; }
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* --- 8. DESKTOP RESPONSIVE (min-width 1024px) --- */
@media (min-width: 1024px) {
    /* Layout */
    .layout-wrapper {
        grid-template-columns: var(--sidebar-width) 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-md);
        align-items: start;
    }

    /* Header Desktop adjustments */
    .site-header { padding: 0 var(--spacing-md); top: 25px; }
    .header-container { padding: 0.75rem 2.5rem; }
    
    /* LOGO MÁS GRANDE EN DESKTOP */
    .logo-img { height: 75px; } 

    /* Reset Header Nav */
    .nav-toggle { display: none; }
    .main-nav { display: flex; margin-left: auto; align-items: center; }
    .main-nav.active { display: flex; position: static; flex-direction: row; width: auto; background: none; box-shadow: none; border: none; padding: 0; }
    .nav-list { flex-direction: row; gap: 2rem; margin: 0 2rem 0 0; }
    .nav-cta { width: auto; }

    /* Sidebar Positioning */
    .sidebar { 
        order: unset;
        padding: 0;
    }
    .sidebar-sticky { position: sticky; top: calc(var(--header-height) + 50px); }
    .content { order: unset; padding: 0; }

    /* Hero */
    .hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--spacing-lg); }
    .hero-actions { flex-direction: row; align-items: center; gap: 1rem; }
    .hero-visual img { height: 400px; }

    /* Sections */
    .two-col-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--spacing-lg); }
    .activities-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrapper { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--spacing-lg); }
    
    .amenity-card { text-align: left; padding: 1.5rem; }
}

/* Botón de enviar en la sección de contacto: más visible y en relieve */
.contact-section .btn-primary {
    background-color: #66BB6A !important;   /* verde clarito */
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transform: translateY(0);
}

.contact-section .btn-primary:hover {
    background-color: #0B3D15 !important;   /* verde más oscuro que el fondo */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.whatsapp-btn img,
.whatsapp-btn .whatsapp-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: center;
}

.map-embed {
    margin-top: 3rem !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* =========================
   Carrusel de reseñas (FIX)
   - Fade suave
   - Pausa al hover (JS)
   - Swipe en móvil (JS)
   - Sin superposición con el bloque siguiente
   ========================= */

.reviews-carousel{
  display: grid;               /* mantiene altura en el flujo */
  position: relative;
  touch-action: pan-y;         /* permite scroll vertical normal */
}

.review-item{
  grid-area: 1 / 1;            /* todas se apilan en la misma “celda” */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 350ms ease, transform 350ms ease, visibility 0s linear 350ms;
  pointer-events: none;
}

.review-item.active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 350ms ease, transform 350ms ease, visibility 0s;
  pointer-events: auto;
}

.review-header{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.25rem;
}

.review-stars{
  color: #FBC02D;
  letter-spacing: 1px;
  white-space: nowrap;
}

.review-meta{
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.review-footer{
  margin-top: 0.75rem;
}

.image-license {
  font-size: 0.8rem;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}
.image-license a {
  color: #666;
  text-decoration: underline;
}

/* ==============================
   DISPONIBILIDAD - Calendario
   (Entrepinos / Amenitiz iCal)
================================ */

#disponibilidad .block-header p{
  max-width: 70ch;
}

.avail {
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Header calendario (mes + botones) */
.avail-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avail-title{
  font-weight: 800;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  letter-spacing: .2px;
}

.avail-controls{
  display:flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.avail-btn{
  padding: .55rem .9rem;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.avail-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Grid */
.avail-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .55rem;
}

/* Cabeceras L M X... */
.avail-weekday{
  font-size: .78rem;
  font-weight: 800;
  color: var(--color-text-light);
  text-align:center;
  padding: .25rem 0;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Día */
.avail-day{
  position:relative;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,251,249,1));
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding: .45rem .55rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow:hidden;
}

.avail-day .num{
  font-weight: 800;
  font-size: .92rem;
  color: var(--color-text);
  z-index: 2;
}

/* Días “fuera” (relleno de mes anterior/siguiente) */
.avail-day.is-out{
  background: rgba(0,0,0,0.02);
  border-style: dashed;
  box-shadow: none;
  opacity: .65;
}

/* Estado: libre */
.avail-day.is-free::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(102,187,106,0.18), transparent 60%);
  z-index: 1;
}

/* Estado: ocupado */
.avail-day.is-busy{
  border-color: rgba(27,94,32,0.25);
  background: linear-gradient(180deg, rgba(46,125,50,0.12), rgba(46,125,50,0.06));
}
.avail-day.is-busy::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: rgba(27,94,32,0.55);
}

/* HOY */
.avail-day.is-today{
  border-color: rgba(46,125,50,0.45);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.avail-day.is-today::after{
  content:"Hoy";
  position:absolute;
  left: 10px;
  bottom: 10px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  padding: .2rem .45rem;
  border-radius: 999px;
}

/* Hover “relieve” */
.avail-day:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  border-color: rgba(46,125,50,0.25);
}

/* Leyenda */
.avail-legend{
  display:flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.avail-pill{
  display:inline-flex;
  align-items:center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: .4rem .7rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
  border: 1px solid rgba(0,0,0,0.12);
}
.dot-free{ background: rgba(102,187,106,0.65); }
.dot-busy{ background: rgba(27,94,32,0.65); }

/* Status text */
#availabilityStatus{
  margin-top: .35rem;
}

/* Botones bajo el calendario */
.availability-actions{
  display:flex;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.availability-actions .btn{
  min-width: 190px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
.availability-actions .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.16);
}

/* Responsive */
@media (max-width: 560px){
  .avail { padding: 1rem; }
  .avail-grid{ gap: .4rem; }
  .avail-day{ min-height: 44px; padding: .35rem .45rem; border-radius: 12px; }
  .avail-day.is-today::after{ bottom: 8px; left: 8px; }
  .availability-actions .btn{ width: 100%; }
}

/* ===== Override: Ocupado más evidente ===== */
.avail-day.is-busy{
  background: linear-gradient(180deg, rgba(27,94,32,0.22), rgba(27,94,32,0.12)) !important;
  border-color: rgba(27,94,32,0.45) !important;
}

.avail-day.is-busy::after{
  height: 10px !important;
  background: rgba(27,94,32,0.80) !important;
}

.avail-day.is-busy .num{
  color: var(--color-primary-dark) !important;
}

/* Opcional: añadir “hachurado” sutil para ocupados */
.avail-day.is-busy::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(27,94,32,0.10),
      rgba(27,94,32,0.10) 6px,
      rgba(27,94,32,0.00) 6px,
      rgba(27,94,32,0.00) 12px
    );
  opacity: .6;
  z-index: 1;
}

/* ===== 2 meses en desktop ===== */
.avail-months{
  display: grid;
  gap: 1rem;
}

.avail-month-title{
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: .25rem 0 .75rem;
  font-size: 1rem;
  opacity: .95;
}

/* En desktop, 2 columnas (dos meses) */
@media (min-width: 1024px){
  .avail-months{
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.pueblo-meta {
  margin: 0 0 0.75rem 0;
}

.pueblo-meta p {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 140px 1fr; /* columna etiqueta / valor */
  column-gap: 0.5rem;
  line-height: 1.45;
}

.pueblo-meta strong {
  font-weight: 600;
}

.pueblo-meta em {
  font-style: italic;
}

/* Contenedor externo: centra el bloque en la página */
.legal-mini-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;   /* centrado horizontal real */
}

/* Bloque de texto */
.legal-mini {
  text-align: center;        /* centra el texto */
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

/* Líneas sin separación */
.legal-mini > div {
  margin: 0;
  padding: 0;
}

/* Separación respecto al bloque legal superior */
.legal-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;   /* línea en blanco */
  margin-bottom: 2rem;
}

/* Texto legal inferior */
.legal-links {
  text-align: center;
  font-size: 0.8rem;     /* mismo tamaño pequeño */
  color: var(--color-text-light);
  line-height: 1.3;
  font-weight: 600; /* negrita elegante */
}

/* Enlaces */
.legal-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
}

.legal-links a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.services-list a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.services-list a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.best-price-note{
  margin: .75rem 0 0;
  font-size: .85rem;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(102,187,106,0.12);
  border: 1px solid rgba(46,125,50,0.18);
}

.best-price-note strong{
  color: var(--color-primary-dark);
  font-weight: 800;
}

/* Centrado bajo el calendario */
.best-price-center{
  display: flex;
  justify-content: center;
}

.services-highlight {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-md);
}

.services-intro,
.services-seo {
  font-size: 1rem;
  color: var(--color-text);
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.services-seo {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem 1.25rem;
}

.service-item {
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-seal {
  margin: 1.5rem 0 2rem; /* arriba | abajo */
  display: flex;
  justify-content: center;
}

.footer-seal img {
  max-width: 220px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-seal img:hover {
  opacity: 1;
}

.route-list {
  padding-left: 1.2rem;
}

.route-list li {
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

.route-note {
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.avila-route { margin-top: 1rem; }
.route-list { padding-left: 1.2rem; margin: 0.75rem 0 1rem; }
.route-list li { margin: 0.6rem 0; }
.route-list span { color: var(--color-text-light); }
.route-cta { margin: 0; }

/* --- Galería secundaria Casa Rural --- */

.house-main-img {
  margin-bottom: 0.75rem;
}

/* Miniaturas debajo de la imagen principal */
.house-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.house-gallery-thumbs figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.house-gallery-thumbs figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.house-gallery-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.house-gallery-thumbs figcaption {
  font-size: 0.75rem;
  text-align: center;
  padding: 0.25rem 0;
  color: var(--color-text-light);
  background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .house-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .house-gallery-thumbs figure {
    min-width: 140px;
  }

  .house-gallery-thumbs img {
    height: 100px;
  }
}

/* Galería Casa - principal + miniaturas */
.casa-main-img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.casa-thumbs{
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}

.casa-thumb{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.casa-thumb img{
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}

.casa-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border-color: rgba(46,125,50,0.35);
}

.casa-thumb.is-active{
  border-color: rgba(46,125,50,0.65);
  box-shadow: 0 14px 34px rgba(46,125,50,0.20);
}

@media (min-width: 1024px){
  .casa-main-img{ height: 380px; }
  .casa-thumb img{ height: 86px; }
}

/* ===== Galería estructurada ===== */
.gallery-root { display: grid; gap: 1.25rem; }

.gallery-floor {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1rem;
}

.gallery-floor > h2{
  margin: 0 0 .75rem;
}

.gallery-space {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: .75rem;
  margin-top: .75rem;
}

.gallery-space > h3{
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}

.gallery-space .desc{
  margin: 0 0 .75rem;
  color: var(--color-text-light);
  font-size: .92rem;
}

.gallery-grid{
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.gallery-thumb{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f7f7f7;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.gallery-thumb img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.gallery-cap{
  padding: .55rem .6rem;
  font-size: .85rem;
  line-height: 1.25;
  color: var(--color-text);
  background: rgba(255,255,255,0.92);
}

/* ===== Modal foto grande ===== */
.photo-modal{
  width: min(1100px, calc(100% - 2rem));
  border: none;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: #111;
  box-shadow: 0 22px 70px rgba(0,0,0,0.35);
}
.photo-modal::backdrop{ background: rgba(0,0,0,0.70); }

.pm-stage{ position: relative; }
.pm-stage img{
  width: 100%;
  height: min(80vh, 720px);
  object-fit: contain;
  background: #111;
  display: block;
}

.pm-label{
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  max-width: calc(100% - 120px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-close{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.pm-close:hover{ background: rgba(255,255,255,0.22); }

.pm-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.pm-nav:hover{ background: rgba(255,255,255,0.22); }
.pm-prev{ left: 12px; }
.pm-next{ right: 12px; }

@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .pm-nav{ width: 46px; height: 46px; }
}

/* =========================================
   AÑADIR AL FINAL DE ASSETS/CSS/STYLES.CSS
   ========================================= */

/* --- Botones de Navegación (Estilo Unificado) --- */
.btn-nav-entrepinos {
    background-color: var(--color-primary, #2F5233);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-nav-entrepinos:hover {
    background-color: var(--color-primary-dark, #1e3a22);
    transform: translateY(-1px);
}

/* --- Footer Sello (Ajuste de tamaño) --- */
.footer-seal {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}
.footer-seal img {
    max-width: 220px; /* Tamaño controlado igual que Index */
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.footer-seal img:hover { opacity: 1; }

/* --- Textos Legales Footer --- */
.legal-mini-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 0.5rem;
}
.legal-mini {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light, #607D8B);
    line-height: 1.3;
}
.legal-links-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}
.legal-links {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light, #607D8B);
    line-height: 1.3;
    font-weight: 600;
}
.legal-links a { text-decoration: none; color: inherit; }
.legal-links a:hover { text-decoration: underline; color: var(--color-primary, #2E7D32); }

/* --- Ventanas Modales (Legal) --- */
.legal-modal {
    width: min(860px, calc(100% - 2rem));
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    background: #fff;
    color: #333;
}
.legal-modal::backdrop { background: rgba(0,0,0,0.55); }

.legal-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.legal-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.legal-favicon { width: 28px; height: 28px; border-radius: 8px; }
.legal-house { width: 26px; height: 26px; fill: #1B5E20; }
.legal-titles h2 { margin: 0; font-size: 1.1rem; line-height: 1.2; color: #1B5E20; }
.legal-subtitle { margin: 0; font-size: .85rem; opacity: .8; }

.legal-close {
    border: none; background: transparent; font-size: 1.25rem; line-height: 1;
    cursor: pointer; padding: .25rem .5rem; border-radius: 10px;
}
.legal-close:hover { background: rgba(0,0,0,0.06); }

/* ESTO ES LO QUE HACE QUE APAREZCA LA BARRA DE DESPLAZAMIENTO */
.legal-body {
    padding: 1rem 1.25rem 1.25rem;
    max-height: 60vh; /* Altura máxima del 60% de la pantalla */
    overflow-y: auto; /* Activa el scroll vertical si el texto es largo */
}
.legal-body h3 { margin: 1rem 0 .5rem; color: #1B5E20; font-size: 1rem; font-weight: 700; }
.legal-body p { margin: 0 0 .75rem; line-height: 1.5; font-size: 0.95rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: 0.3rem; }

.legal-footer {
    padding: 1rem 1.25rem; border-top: 1px solid rgba(0,0,0,0.08);
    display: flex; justify-content: flex-end;
}
.btn-primary-modal {
    background-color: var(--color-primary, #2F5233);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* --- ESTILOS DEL CHECKER DE DISPONIBILIDAD (AMENITIZ ICAL) --- */
.availability-checker {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #2F5233; /* Verde corporativo */
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.input-group input:focus {
    border-color: #CA9E45; /* Dorado acento */
    outline: none;
    box-shadow: 0 0 0 4px rgba(202, 158, 69, 0.1);
}

.check-btn {
    padding: 15px 35px;
    height: 56px; /* Altura para igualar inputs */
    font-weight: 700;
    cursor: pointer;
    background-color: #2F5233;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.check-btn:hover {
    background-color: #1e3621;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 82, 51, 0.3);
}

.check-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes de Resultado */
#availabilityResult {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.result-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.result-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.result-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-highlight-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #CA9E45;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.contact-highlight-btn:hover {
    background-color: #b38a36;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes Flatpickr */
.flatpickr-calendar {
    font-family: 'Open Sans', sans-serif;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #2F5233;
    border-color: #2F5233;
}

<style>
    /* Estilo para el botón gigante de "Ver la casa completa" */
    .btn-house-full {
        display: block; /* Ocupa toda la línea */
        width: 100%;    /* Ancho total */
        background-color: #2F5233; /* Verde corporativo oscuro */
        color: white !important;
        text-align: center;
        font-weight: 800; /* Letra muy gruesa */
        font-size: 1.1rem;
        text-transform: uppercase;
        padding: 20px;
        margin-top: 30px; /* Espacio con lo de arriba */
        border-radius: 8px;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(47, 82, 51, 0.2);
        transition: all 0.3s ease;
        border: 2px solid #2F5233;
    }

    .btn-house-full:hover {
        background-color: #1e3522; /* Verde aún más oscuro al pasar el ratón */
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(47, 82, 51, 0.3);
    }
    
    /* Pequeño ajuste para móvil */
    @media (max-width: 768px) {
        .btn-house-full {
            font-size: 1rem;
            padding: 15px;
        }
    }
</style>

/* --- MÓDULO DE OFERTAS --- */
.ep-offers-wrapper { margin-bottom: 25px; width: 100%; }
.ep-offers-title { font-size: 0.8rem; font-weight: 800; color: #1B5E20; margin-bottom: 8px; letter-spacing: 1px; }

.ep-offers-scroll { 
    max-height: 280px; 
    overflow-y: auto; 
    border: 1px solid #e0e0e0; 
    padding: 12px; 
    background: #fff; 
    border-radius: 8px; 
}

.ep-offers-card { 
    background-color: #d32f2f; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 12px; 
    color: #fff; 
}

.ep-card-headline { margin: 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
/*.ep-card-dates { font-size: 0.85rem; margin: 5px 0 10px 0; opacity: 0.9; } */
.ep-card-dates {
    font-size: 0.9rem; /* Un pelín más grande para facilitar la lectura */
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    color: #ffffff;    /* Blanco puro */
    font-weight: 700;  /* NEGRITA */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Opcional: Ponemos el icono del calendario un poco más opaco para que no distraiga de la fecha */
.ep-card-dates i {
    opacity: 0.8;
}
.ep-card-prices { display: flex; align-items: baseline; gap: 10px; }
.ep-price-pct { font-weight: bold; background: #fff; color: #d32f2f; padding: 2px 5px; border-radius: 4px; font-size: 0.9rem; }
.ep-price-old { text-decoration: line-through; color: #000; font-weight: 800; font-size: 0.9rem; opacity: 0.6; }
.ep-price-new { font-weight: 800; font-size: 1.3rem; }

.ep-offers-loading, .ep-offers-empty { 
    text-align: center; 
    padding: 30px 10px; 
    color: #666; 
    font-size: 0.9rem; 
}

.ep-card-desc { font-size: 0.9rem; margin-top: 5px; opacity: 0.95; line-height: 1.3; }
.ep-card-ppn { font-size: 0.8rem; margin-top: 4px; font-style: italic; opacity: 0.9; }
.ep-card-chips { display: flex; gap: 6px; margin-top: 12px; }
.ep-chip { 
    background: rgba(255, 255, 255, 0.2); 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- ESTILO PARA OFERTAS DESTACADAS (is_featured = 1) --- */
.ep-offers-card.ep-featured {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border: 2px solid #FFD700; /* Borde dorado */
    position: relative;
    padding-top: 35px; /* Espacio para el badge */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: scale(1.02); /* Un pelín más grande */
    margin-top: 10px;
    margin-bottom: 20px;
}

.ep-featured-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #FFD700;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ep-featured .ep-card-headline {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Efecto sutil de brillo para las destacadas */
@keyframes ep-shine {
    from { left: -100%; }
    to { left: 200%; }
}

.ep-featured::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: ep-shine 4s infinite;
}

/* Tarjeta Base Mejorada */
.ep-offers-card {
    position: relative;
    background: #d32f2f;
    border-radius: 12px;
    padding: 20px;
    border-left: 6px solid #b71c1c; /* Aporta profundidad */
    transition: transform 0.3s ease;
}

/* El Título: Grande y potente */
.ep-card-headline {
    font-size: 1.4rem !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* El Precio: Composición de impacto */
.ep-card-prices {
    background: rgba(0,0,0,0.15); /* Fondo para resaltar el área de dinero */
    padding: 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.ep-price-new {
    font-size: 1.6rem !important;
    color: #FFF200; /* Amarillo eléctrico para el precio final */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Diseño de la OFERTA DESTACADA */
.ep-featured {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%) !important; /* Verde premium si quieres diferenciarla del rojo */
    border: 2px solid #FFD700 !important;
    transform: scale(1.03);
    z-index: 10;
}

.ep-featured .ep-price-new {
    color: #FFD700; /* Oro para el precio en destacadas */
}

.ep-card-ppn {
    font-size: 0.9rem; /* Un poco más grande para que se lea bien */
    margin-top: 8px;
    color: #fff;
    opacity: 1; /* Quitamos cualquier transparencia */
}

.ep-card-ppn strong {
    font-weight: 800;  /* Negrita extra */
    color: #FFF200;    /* Amarillo para que destaque sobre el rojo */
    font-size: 1.05rem; /* Un pelín más grande que el texto de alrededor */
}

.ep-card-ppn small {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.8;
    margin-left: 4px;
}

