/* =========================================================
   Residence Garden Inn — Sistema de Diseño Organizado
   Paleta: Tinta #1E2A20 · Jardín #2F4B3A · Musgo #6B8F6E
           Papel #F5F3E8 · Salvia #E4EADD · Caléndula #D9932E
   Tipografía: Fraunces (display) + Inter (cuerpo/utilitaria)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1E2A20;
  --garden: #2F4B3A;
  --garden-dark: #213629;
  --moss: #6B8F6E;
  --sage: #E4EADD;
  --paper: #F5F3E8;
  --paper-2: #EDEADC;
  --marigold: #D9932E;
  --marigold-dark: #B8781E;
  --blush: #E3A9A0;
  --line: rgba(30,42,32,0.12);
  --shadow: 0 12px 30px rgba(31,45,34,0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  color: var(--garden-dark);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--marigold); display: inline-block;
}

/* ---------- Componentes Globales ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--marigold);
  color: #2A1B04;
  box-shadow: 0 10px 24px rgba(217,147,46,0.35);
}
.btn-primary:hover { background: var(--marigold-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(245,243,232,0.55);
  color: inherit;
}
.btn-outline.on-light { border-color: var(--garden); color: var(--garden-dark); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline.on-light:hover { background: var(--sage); }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,232,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.28rem;
  color: var(--garden-dark);
}
.logo .leaf-mark { width: 30px; height: 30px; flex: none; }
.nav-links {
  display: flex; align-items: center; gap: 2.1rem;
  font-weight: 500; font-size: 0.98rem;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--marigold); transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--garden-dark); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-cta .btn { padding: 0.7em 1.4em; font-size: 0.94rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex: none; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--garden-dark); transition: 0.25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* =========================================================
   REEMPLAZA ESTA SECCIÓN EN TU CSS
   Sección: Hero Fullscreen con Slider Dinámico Perfecto
   ========================================================= */

.hero-fullscreen {
  position: relative;
  height: 100vh; /* Mantén tu ajuste al 100% del alto de la pantalla */
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 0; /* ← CORREGIDO: Eliminado margen residual inferior */
  background-color: var(--paper);
  clip-path: inset(0 0 0 0); 
}

.hero-slider-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  visibility: hidden;
  transform: scale(1);
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease,
    transform 6s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.04);
}

/* Capa de difuminado y degradado optimizada para letras negras */
.hero-light-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 50px 0 80px;
  background: linear-gradient(
    90deg, 
    rgba(245, 243, 232, 1) 0%,      
    rgba(245, 243, 232, 0.98) 30%,  
    rgba(245, 243, 232, 0.5) 55%,   
    rgba(245, 243, 232, 0) 70%     
  );
}

.hero-light-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 50px 0 80px;
  background: linear-gradient(
    90deg, 
    rgba(245, 243, 232, 1) 0%,      
    rgba(245, 243, 232, 0.98) 30%,  
    rgba(245, 243, 232, 0.5) 55%,   
    rgba(245, 243, 232, 0) 70%     
  );
}

/* 
   =========================================================
   NUEVA SOLUCIÓN DE LEGIBILIDAD
   Aplica una sombra dura del color del fondo (--paper) 
   alrededor de la letra para crear un contorno protector.
   ========================================================= 
*/
.hero-content-left h1, 
.hero-content-left p {
  color: var(--ink);
  /* Esta técnica crea un contorno nítido de 1px del color var(--paper) */
  text-shadow: 
    -1px -1px 0 var(--paper),  
     1px -1px 0 var(--paper),
    -1px  1px 0 var(--paper),
     1px  1px 0 var(--paper),
     /* Sombra suave extra para dar profundidad (opcional) */
     0 2px 4px rgba(30,42,32,0.15); 
}

.hero-container-left-aligned {
  margin-left: max(32px, calc((100vw - var(--maxw)) / 2)) !important; 
  margin-right: auto !important;
  padding: 0;
  width: 100%;
}

.hero-content-left { max-width: 580px; }
.branch-caption-left {
  font-size: 0.85rem; color: var(--moss); font-weight: 600;
  letter-spacing: 0.04em; margin-top: 24px;
}

/* ---------- Secciones del Cuerpo ---------- */
section { padding: 88px 0; }

/* Forzamos que las secciones del cuerpo tengan fondo opaco y se posicionen sobre el slider */
.section-content, .section-alt {
  position: relative;
  z-index: 3;
}
.section-content { background: var(--paper); }
.section-alt { background: var(--sage); }

.section-head { max-width: 640px; margin-bottom: 2.6em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Tarjetas de Valores (Grid 4) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.section-alt .value-card { background: #fff; }
.value-card .icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--garden); }
.value-card h3 { margin-bottom: 0.4em; }
.value-card p { color: var(--ink); opacity: 0.85; margin: 0; font-size: 0.98rem; }

/* ---------- Banner Separador Intermedio ---------- */
.parallax-banner {
  height: 450px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(33, 54, 41, 0.45);
  display: flex;
  align-items: center;
}

.center-text { text-align: center; width: 100%; }
.parallax-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--paper);
  font-style: italic;
  font-weight: 500;
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Tarjetas de Residencias (Grid 3) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.res-photo {
  height: 190px; background: linear-gradient(135deg, var(--sage), var(--paper-2));
  display: flex; align-items: center; justify-content: center; color: var(--moss);
}
.res-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.res-body .tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 0.6em;
}
.res-body h3 { margin-bottom: 0.35em; }
.res-body p { color: var(--ink); opacity: 0.82; font-size: 0.96rem; flex: 1; }
.res-body .btn { align-self: flex-start; margin-top: 14px; }

.res-card.upcoming {
  border: 1.5px dashed var(--marigold);
  background: repeating-linear-gradient(135deg, #fff, #fff 14px, var(--paper-2) 14px, var(--paper-2) 28px);
}
.res-card.upcoming .res-photo { background: transparent; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--marigold); color: #2A1B04; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
}

/* Banda de Llamado a la Acción (CTA) */
.cta-band {
  background: var(--garden); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { color: var(--sage); margin: 0; max-width: 44ch; }
.cta-band-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px 20px; position: relative; z-index: 3; }

/* ---------- Línea de Tiempo (Nosotros) ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline-track {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 50px;
}
.timeline-track::before {
  content: ""; position: absolute; top: 17px; left: 5%; right: 5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--moss) 0 8px, transparent 8px 14px);
}
.t-node { position: relative; text-align: center; padding-top: 44px; }
.t-node .dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--garden); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
  border: 4px solid var(--paper);
}
.t-node.future .dot { background: var(--marigold); color: #2A1B04; }
.t-node h3 { font-size: 1rem; margin-bottom: 0.2em; }
.t-node p { font-size: 0.88rem; opacity: 0.8; margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillar { display: flex; gap: 18px; }
.pillar .num {
  font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--marigold); font-weight: 600; flex: none; width: 2ch;
}

/* Distribución de dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .col-text { order: 2; }
.split.reverse .col-art { order: 1; }
.col-art {
  background: var(--sage); border-radius: var(--radius-lg);
  min-height: 340px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--garden-dark);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--moss); background: #fff;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; opacity: 0.85; }
.consent input { width: auto; margin-top: 3px; }

.res-contact-list { display: flex; flex-direction: column; gap: 16px; }
.res-contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.res-contact-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.res-contact-item .meta { font-size: 0.9rem; opacity: 0.75; margin: 0; }
.res-contact-item a.phone { font-weight: 700; color: var(--garden-dark); white-space: nowrap; }

/* ---------- Botón de WhatsApp ---------- */
.whatsapp-btn {
  position: fixed; bottom: 25px; right: 25px;
  width: 65px; height: 65px;
  background: #25D366; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 9999; transition: .3s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 10px 25px rgba(0,0,0,.35); }

/* ---------- Footer ---------- */
footer { background: var(--garden-dark); color: var(--sage); padding: 60px 0 28px; margin-top: 20px; position: relative; z-index: 4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer .logo { color: #fff; }
footer .logo .leaf-mark { color: var(--marigold); }
footer p { opacity: 0.75; font-size: 0.92rem; }
footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1em; }
footer ul li { margin-bottom: 0.6em; font-size: 0.94rem; opacity: 0.85; }
footer ul li a:hover { color: var(--marigold); }
.footer-bottom {
  border-top: 1px solid rgba(228,234,221,0.15); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; opacity: 0.6;
}

/* ---------- Páginas Internas (Común) ---------- */
.page-hero { padding: 56px 0 20px; }
.page-hero .eyebrow { margin-bottom: 0.6em; }
.page-hero p.lede { max-width: 60ch; font-size: 1.08rem; }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-fullscreen { min-height: auto; height: auto; }
  .hero-slide { position: absolute; background-attachment: scroll; background-position: center; height: 100%; min-height: auto; }
  .hero-light-overlay {
    padding: 60px 0; min-height: auto;
    background: linear-gradient(180deg, rgba(245, 243, 232, 0.96) 0%, rgba(245, 243, 232, 0.85) 100%);
  }
  .hero-container-left-aligned { margin: 0 auto !important; padding: 0 32px; }
  .parallax-banner { background-attachment: scroll; height: 300px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .col-text, .split.reverse .col-art { order: initial; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline-track { grid-template-columns: repeat(5, 1fr); }
  .t-node p { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 20px 32px 28px; gap: 1.1rem; border-bottom: 1px solid var(--line);
  }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .res-contact-item { flex-direction: column; align-items: flex-start; }
}

.residences-list{
    display:flex;
    flex-direction:column;
    gap:60px;
}

.residence-horizontal{
    display:flex;
    align-items:center;
    gap:60px;
}

.residence-horizontal.reverse{
    flex-direction:row-reverse;
}

.residence-content{
    flex:1;
}

.residence-content h2{
    margin:15px 0;
    font-size:2rem;
}

.residence-content p{
    color:#4b5563;
    line-height:1.8;
    margin-bottom:30px;
}

.residence-image{
    flex:1;
}

.residence-image img{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:24px;
    display:block;
    box-shadow:0 15px 40px rgba(0,0,0,.10);
}

.residence-details{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:30px;
}

.residence-details div{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:16px;
}

.residence-details strong{
    display:block;
    color:#111827;
    margin-bottom:6px;
}

.residence-details span{
    color:#6b7280;
}

.residence-actions{
    display:flex;
    gap:15px;
}

@media (max-width: 992px){

    .residence-horizontal,
    .residence-horizontal.reverse{
        flex-direction:column;
        gap:30px;
    }

    .residence-image{
        width:100%;
    }

    .residence-image img{
        height:300px;
    }

    .residence-details{
        grid-template-columns:1fr;
    }

}

/*==========================================
=            RESIDENCIAS PREMIUM           =
==========================================*/

.residences-list{
    display:flex;
    flex-direction:column;
    gap:80px;
    margin:80px 0;
}

.residence-horizontal{

    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    align-items:center;
    gap:70px;

    background:#fff;

    border-radius:30px;

    padding:55px;

    box-shadow:0 25px 60px rgba(0,0,0,.08);

    transition:.35s ease;
}

.residence-horizontal:hover{

    transform:translateY(-8px);

    box-shadow:0 35px 80px rgba(0,0,0,.12);

}

.residence-horizontal.reverse .residence-image{

    order:-1;

}

.residence-content{

    display:flex;
    flex-direction:column;
}

.residence-content .tag{

    display:inline-flex;
    width:max-content;

    background:#eef5ef;

    color:#4b6c55;

    font-size:.85rem;

    font-weight:600;

    padding:8px 16px;

    border-radius:50px;

    margin-bottom:20px;
}

.residence-content h2{

    margin:0;

    font-size:3.4rem;

    line-height:1;

    color:#22352a;

}

.residence-content p{

    margin:30px 0;

    font-size:1.12rem;

    color:#555;

    line-height:1.9;

}

.residence-details{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin-bottom:35px;

}

.residence-details div{

    background:#faf8f4;

    border:1px solid #ece5d8;

    border-radius:16px;

    padding:18px;

}

.residence-details strong{

    display:block;

    color:#22352a;

    margin-bottom:8px;

    font-size:.95rem;

}

.residence-details span{

    color:#777;

}

.residence-actions{

    margin-top:auto;

}

.residence-image{

    position:relative;

}

.residence-image img{

    width:100%;

    height:520px;

    object-fit:cover;

    border-radius:24px;

    display:block;

    transition:.5s;

}

.residence-horizontal:hover img{

    transform:scale(1.03);

}

/* pequeña decoración */

.residence-image::before{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    border-radius:24px;

    background:#d8b067;

    opacity:.15;

    top:-20px;

    right:-20px;

    z-index:-1;

}

.residence-horizontal.reverse .residence-image::before{

    left:-20px;

    right:auto;

}

/*============================
=          MÓVIL             =
============================*/

@media (max-width:1100px){

.residence-horizontal{

    grid-template-columns:1fr;

    gap:40px;

    padding:35px;

}

.residence-horizontal.reverse .residence-image{

    order:0;

}

.residence-image img{

    height:380px;

}

}

@media (max-width:700px){

.residence-content h2{

    font-size:2.3rem;

}

.residence-details{

    grid-template-columns:1fr;

}

.residence-horizontal{

    padding:25px;

}

.residence-image img{

    height:260px;

}

}

.residence-details div {
    background: var(--paper); /* Mantiene la calidez del diseño #F5F3E8 */
    border: 1px solid var(--line); /* Usa la opacidad del color de tinta nativo */
    border-radius: 16px;
    padding: 18px;
}

/*==================================================
=            RESIDENCIAS INMERSIVAS (Optimizado)   =
==================================================*/

.container-fluid.no-padding {
    padding: 0;
    overflow: hidden;
}

.residences-immersive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.residence-immersive {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--paper);
}

.residence-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

/* Difuminado Izquierda -> Derecha (Corregido y más pegado al borde) */
.residence-immersive .residence-overlay-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg, 
        rgba(245, 243, 232, 1) 0%, 
        rgba(245, 243, 232, 0.98) 35%, 
        rgba(245, 243, 232, 0.8) 45%, 
        rgba(245, 243, 232, 0) 65%
    );
}

/* Difuminado Derecha -> Izquierda (Invertido y más pegado al borde) */
.residence-immersive.reverse .residence-overlay-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        270deg, 
        rgba(245, 243, 232, 1) 0%, 
        rgba(245, 243, 232, 0.98) 35%, 
        rgba(245, 243, 232, 0.8) 45%, 
        rgba(245, 243, 232, 0) 65%
    );
}

.residence-immersive .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.residence-immersive-content {
    max-width: 520px;
    margin-right: auto;
    margin-left: -100px;
}

.residence-immersive.reverse .residence-immersive-content {
    margin-left: auto;
    margin-right: -100px;
}

.residence-immersive-content h2 {
    font-size: 3.2rem;
    color: var(--garden-dark);
    margin: 10px 0 18px;
}

.residence-immersive-content p {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Nuevos detalles estilo ficha libre */
.residence-meta-free {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--ink);
}

.residence-meta-free span {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.residence-meta-free strong {
    color: var(--garden-dark);
    font-weight: 600;
    margin-right: 5px;
}

.residence-actions {
    margin-top: 5px;
}

/*==========================================
=                 RESPONSIVE               =
==========================================*/

@media (max-width: 992px) {
    .residence-immersive {
        min-height: auto;
        padding: 70px 0;
    }
    
    .residence-immersive .residence-overlay-fade,
    .residence-immersive.reverse .residence-overlay-fade {
        background: linear-gradient(
            180deg,
            rgba(245, 243, 232, 0.96) 0%,
            rgba(245, 243, 232, 0.90) 50%,
            rgba(245, 243, 232, 0.5) 100__
        );
    }

    .residence-immersive-content,
    .residence-immersive.reverse .residence-immersive-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .residence-immersive-content h2 {
        font-size: 2.5rem;
    }

    .residence-meta-free {
        flex-direction: column;
        gap: 8px;
    }

    .residence-meta-free span::after {
        display: none !important; /* Quita los puntos en móvil */
    }
}

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50;
  /* Recuperamos el fondo con opacidad del 86% y el desenfoque */
  background: rgba(245, 243, 232, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0; /* Eliminamos el padding vertical para permitir el alto total */
}

.logo {
  display: flex; 
  align-items: center; 
  height: 80px; /* Define el alto total que tendrá tu header */
}

.logo img {
  display: block;
  height: 100%; /* La imagen se estira verticalmente para tocar los bordes */
  width: auto;   /* Mantiene la proporción horizontal perfecta */
}

/* =========================================================
   Componente: Galería Modal Interactiva
   ========================================================= */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000; /* Asegura quedar por encima del header */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 42, 32, 0.92); /* Color de fondo con base de Tinta */
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 900px;
}

.modal-content {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--garden-dark);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.modal-counter {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--moss);
}

/* Botones de Navegación */
.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.15);
}

.modal-arrow {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--garden-dark);
  font-size: 2.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.modal-arrow:hover {
  transform: scale(1.08);
  background: var(--sage);
}

.modal-arrow.prev {
  margin-right: 25px;
}

.modal-arrow.next {
  margin-left: 25px;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
  .modal-container {
    flex-direction: column;
    justify-content: center;
  }
  
  .image-wrapper {
    height: 300px;
  }

  .modal-arrow {
    position: absolute;
    bottom: -75px;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  .modal-arrow.prev {
    left: 20%;
    margin-right: 0;
  }

  .modal-arrow.next {
    right: 20%;
    margin-left: 0;
  }

  .modal-close {
    top: -50px;
    right: 10px;
  }
}

/* ==========================================================================
   NUEVAS TARJETAS CON FOTO Y DIFUMINADO (Cuidado Profesional)
   ========================================================================== */

/* Reseteamos el padding original solo para estas tarjetas con foto */
.value-card.card-con-foto {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Mantiene las esquinas redondeadas en la imagen */
  background-color: #ffffff;
  border-radius: 12px; /* Ajusta según el diseño de tus tarjetas */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Sombra suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover interactivo para toda la tarjeta */
.value-card.card-con-foto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Contenedor de la foto */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px; /* Controla la altura visual de la foto */
  overflow: hidden;
}

/* Estilos de la imagen */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Evita que la foto se deforme */
  transition: transform 0.5s ease;
}

/* Zoom interactivo al pasar el mouse por la tarjeta */
.value-card.card-con-foto:hover .card-img {
  transform: scale(1.06);
}

/* El difuminado (Capa superior que se funde a blanco) */
.card-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Ocupa la mitad inferior de la foto */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

/* Contenedor del texto (Debajo de la foto) */
.card-body {
  padding: 24px 24px 32px 24px;
  position: relative;
  z-index: 2;
  background-color: #ffffff; /* Asegura el fondo blanco continuo */
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #333; /* Cambiar por tu variable de color primario si usas una */
}

.card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666; /* Ajusta la opacidad/color de lectura */
}

/* ==========================================================================
   SECCIÓN VIDA DIARIA CON IMAGEN DE FONDO DIFUMINADA
   ========================================================================== */

/* Aseguramos que la sección sea el contenedor relativo */
.section-con-fondo-difuminado {
  position: relative;
  background-color: #fdfbf7; /* Ajusta aquí al color de fondo de tu .section-alt */
  overflow: hidden;
  padding: 80px 0;
}

/* Contenedor en cuadrícula para estructurar texto a la izquierda e imagen a la derecha */
.container.split-con-imagen {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide el espacio 50% y 50% */
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Estilos para la columna de texto */
.col-text-izquierda {
  position: relative;
  z-index: 3; /* Asegura que el texto esté por encima de cualquier capa */
}

/* Contenedor absoluto para la imagen del lado derecho */
.col-imagen-derecha-wrapper {
  position: absolute;
  top: -80px; /* Expande la imagen para cubrir el padding de la sección */
  right: -20px;
  width: 50%; /* Ocupa exactamente la mitad derecha de la pantalla */
  height: calc(100% + 160px); /* Ajusta al alto total incluyendo paddings */
  z-index: 1;
}

/* La imagen propiamente tal */
.col-imagen-derecha {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Capa de difuminado horizontal: se funde del color de fondo a transparente */
.col-imagen-fade-overlay {
  position: absolute;
  top: 0;
  left: -2px; /* Pequeño solape para evitar imperfecciones de renderizado */
  width: 100%;
  height: 100%;
  /* Difuminado de izquierda a derecha (Usa el mismo color de fondo que la sección) */
  background: linear-gradient(to right, #fdfbf7 0%, rgba(253, 251, 247, 0.8) 20%, rgba(253, 251, 247, 0) 100%);
  pointer-events: none;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 991px) {
  .container.split-con-imagen {
    grid-template-columns: 1fr; /* Colapsa a una sola columna */
    gap: 40px;
  }

  .col-imagen-derecha-wrapper {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 300px; /* En móviles le damos un alto fijo */
    order: 2; /* Envía la imagen abajo del texto */
    margin-top: 20px;
  }

  /* Cambiamos el difuminado para que sea vertical (de arriba hacia abajo) en móvil */
  .col-imagen-fade-overlay {
    background: linear-gradient(to bottom, #fdfbf7 0%, rgba(253, 251, 247, 0) 50%, #fdfbf7 100%);
  }
}

/* Ajuste de altura de imagen para las tarjetas de bienestar (2 columnas) */
.card-bienestar .card-image-wrapper {
  height: 240px; /* Al ser casillas más anchas, aumentamos el alto para mejor proporción */
}

/* En móviles, volvemos a una altura estándar para que no ocupe toda la pantalla */
@media (max-width: 768px) {
  .card-bienestar .card-image-wrapper {
    height: 180px;
  }
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Transición suave de 1 segundo */
}

.slide.active {
  opacity: 1;
}