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

html {
    scroll-behavior: smooth;
    /* Compensa el header fijo (achicado ~84px) al saltar a una sección con #.
       Un poco menor que la altura del header para evitar la línea blanca. */
    scroll-padding-top: 80px;
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:root {
    --dorado: #d4af37;
    --azul-marino: #1b3a6b;
    --blanco: #ffffff;
    --gris-ultra-claro: #f9f9f9;
    --gris-claro: #e8e8e8;
    --gris-medio: #d0d0d0;
    --gris-oscuro: #3d3d3d;
    --negro-suave: #1a1a1a;
    --sombra-sutil: 0 8px 32px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 15px 50px rgba(0, 0, 0, 0.12);
}

body {
    font-family: "Inter", sans-serif;
    color: var(--gris-oscuro);
    line-height: 1.7;
    background-color: var(--blanco);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Color de fondo (se anima) + degradado fijo de legibilidad (no se anima) */
    background-color: transparent;
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            transparent 100%);
    padding: 12px 0;
    transition: background-color 0.45s ease, box-shadow 0.45s ease;
}

/* Estado al pasar el hero: header sólido (mismo tamaño, solo hace fade el fondo) */
header.scrolled {
    background-color: var(--azul-marino);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.45s ease;
}

/* Al hacer scroll el logo se encoge al tamaño del header */
header.scrolled .logo img {
    height: 60px;
}

nav {
    display: flex;
    gap: 50px;
}

nav a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
}

nav a:hover {
    color: var(--dorado);
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 7px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blanco);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HERO SECTION */
.hero {
    margin-top: 0;
    height: 100vh;
    /* background: linear-gradient(
    135deg,
    var(--azul-marino) 0%,
    rgba(27, 58, 107, 0.9) 50%,
    rgba(27, 58, 107, 0.85) 100%
  ); */
    background-image: url("./assets/gemini-bg.png");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.08) 0%,
            transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.06) 0%,
            transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--blanco);
    max-width: 900px;
}

.hero h1 {
    font-family: "Lora", serif;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--dorado);
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 50px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 18px 50px;
    background-color: var(--dorado);
    color: var(--azul-marino);
    border: none;
    border-radius: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 18px 50px;
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
    border-radius: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-marino);
    transform: translateY(-3px);
}

/* FEATURED PROPERTIES */
.featured {
    padding: 150px 40px;
    background-color: var(--gris-ultra-claro);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: "Lora", serif;
    font-size: 52px;
    color: var(--azul-marino);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header .accent {
    color: var(--dorado);
}

.section-header p {
    font-size: 16px;
    color: var(--gris-oscuro);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

.properties-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* Cada tarjeta mantiene ~400px y se centra; con menos propiedades no queda
   pegada a la izquierda. Máx 3 por fila dentro del contenedor. */
.properties-showcase .property-card {
    flex: 0 1 400px;
    max-width: 100%;
}

.property-card {
    position: relative;
    background: var(--blanco);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--sombra-sutil);
    transition: all 0.5s ease;
    group: 1;
}

.property-card:hover {
    box-shadow: var(--sombra-media);
    transform: translateY(-8px);
}

.property-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--dorado), rgba(212, 175, 55, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

.property-card:hover .property-image::after {
    left: 100%;
}

.property-info {
    padding: 35px;
}

.property-type {
    font-size: 12px;
    font-weight: 700;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.property-info h3 {
    font-family: "Lora", serif;
    font-size: 24px;
    line-height: 1.3;
    color: var(--azul-marino);
    margin-bottom: 12px;
    font-weight: 600;
    /* Altura fija de 3 líneas: títulos cortos reservan el espacio, largos se recortan con … */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.property-location {
    font-size: 14px;
    color: var(--gris-oscuro);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.property-details {
    display: flex;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gris-claro);
}

.detail-item {
    text-align: center;
}

.detail-value {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dorado);
}

.detail-label {
    font-size: 11px;
    color: var(--gris-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* ABOUT / SOBRE NOSOTROS */
.about {
    padding: 140px 40px;
    background: var(--blanco);
}

.about-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: "Lora", serif;
    font-size: 48px;
    color: var(--azul-marino);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-content .accent {
    color: var(--dorado);
}

.about-content p {
    font-size: 17px;
    color: var(--gris-oscuro);
    line-height: 1.9;
    margin-bottom: 22px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* SELL WITH US / VENDE CON NOSOTROS */
.sell-cta {
    padding: 130px 40px;
    background: linear-gradient(135deg,
            var(--azul-marino) 0%,
            rgba(27, 58, 107, 0.95) 100%);
    color: var(--blanco);
    text-align: center;
}

.sell-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.sell-cta h2 {
    font-family: "Lora", serif;
    font-size: 48px;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.sell-cta .accent {
    color: var(--dorado);
}

.sell-cta p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* CATALOG / CATÁLOGO */
.catalog {
    padding: 150px 40px;
    background: var(--gris-ultra-claro);
}

/* SANEAMIENTO FÍSICO LEGAL */
.saneamiento {
    padding: 150px 40px;
    background: var(--blanco);
}

.section-header .saneamiento-tagline {
    font-family: "Lora", serif;
    font-size: 24px;
    font-style: italic;
    color: var(--dorado);
    max-width: 760px;
    margin-bottom: 12px;
}

.saneamiento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 70px;
}

.benefit-card {
    background: var(--gris-ultra-claro);
    padding: 40px 35px;
    border-top: 3px solid var(--dorado);
    transition: all 0.4s ease;
}

.benefit-card:hover {
    box-shadow: var(--sombra-media);
    transform: translateY(-6px);
}

.benefit-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.benefit-card h3 {
    font-family: "Lora", serif;
    font-size: 22px;
    color: var(--azul-marino);
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 15px;
    color: var(--gris-oscuro);
    line-height: 1.8;
}

.saneamiento-note {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.saneamiento-note p {
    font-size: 17px;
    color: var(--gris-oscuro);
    line-height: 1.9;
    margin-bottom: 35px;
}

/* CATÁLOGO: FILTROS + TARJETAS DINÁMICAS */
.catalog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 55px;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--gris-medio);
    color: var(--gris-oscuro);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--dorado);
    color: var(--dorado);
}

.filter-btn.active {
    background: var(--azul-marino);
    border-color: var(--azul-marino);
    color: var(--blanco);
}

.catalog-empty {
    text-align: center;
    padding: 70px 30px;
    background: var(--blanco);
    border: 1px dashed var(--gris-medio);
}

.catalog-empty h3 {
    font-family: "Lora", serif;
    font-size: 30px;
    color: var(--azul-marino);
    margin-bottom: 14px;
}

.catalog-empty p {
    color: var(--gris-oscuro);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 30px;
}

.property-card {
    cursor: pointer;
}

.property-card .property-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    font-size: 0;
}

.property-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 7px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blanco);
}

.property-badge.alquiler {
    background: var(--azul-marino);
}

.property-badge.venta {
    background: var(--dorado);
    color: var(--azul-marino);
}

/* Botón de play sobre la foto (propiedades con video TikTok) */
.property-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: var(--blanco);
    font-size: 26px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.property-card:hover .property-play {
    background: var(--dorado);
    color: var(--azul-marino);
    transform: translate(-50%, -50%) scale(1.08);
}

.property-photos-count {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--blanco);
    font-size: 12px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.property-price {
    color: var(--dorado);
}

.property-cta {
    display: inline-block;
    margin-top: 22px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dorado);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.property-cta:hover {
    border-color: var(--dorado);
}

/* LIGHTBOX: foto protagonista + panel de detalles bajo demanda */
.lightbox {
    --panel-w: 0px;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.95);
    padding: 40px 40px 100px;
    padding-right: calc(40px + var(--panel-w));
    transition: padding 0.35s ease;
}

.lightbox[hidden] {
    display: none;
}

.lb-figure {
    margin: 0;
    text-align: center;
}

/* Modo video (TikTok): el iframe reemplaza a la galería */
.lb-video {
    display: none;
}

.lightbox.video-mode .lb-figure,
.lightbox.video-mode .lb-nav,
.lightbox.video-mode .lb-counter {
    display: none;
}

.lightbox.video-mode .lb-video {
    display: block;
    /* TikTok es vertical (9:16): la altura manda */
    height: min(78vh, 740px);
    aspect-ratio: 9 / 16;
    max-width: calc(94vw - var(--panel-w));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #000; /* mismo negro que el player de TikTok */
}

.lb-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lb-img {
    max-width: calc(94vw - var(--panel-w));
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: max-width 0.35s ease;
}

.lb-nav,
.lb-close {
    position: absolute;
    z-index: 10;
    background: transparent;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    transition: color 0.25s ease, right 0.35s ease;
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    line-height: 1;
    padding: 10px 20px;
}

.lb-prev {
    left: 2%;
}

.lb-next {
    right: calc(2% + var(--panel-w));
}

.lb-nav:hover,
.lb-close:hover {
    color: var(--dorado);
}

.lb-close {
    top: 24px;
    right: calc(30px + var(--panel-w));
    font-size: 44px;
    line-height: 1;
}

.lb-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
}

/* Barra inferior: título + precio + botón de detalles */
.lb-bar {
    position: absolute;
    bottom: 24px;
    left: calc(50% - var(--panel-w) / 2);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: min(92vw, 760px);
    padding: 12px 14px 12px 24px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: left 0.35s ease;
}

.lb-bar-info {
    display: flex;
    align-items: baseline;
    gap: 16px;
    color: var(--blanco);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
}

.lb-bar-info strong {
    font-weight: 600;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-bar-price {
    color: var(--dorado);
    font-weight: 700;
}

.lb-details-btn {
    flex-shrink: 0;
    background: var(--dorado);
    color: var(--azul-marino);
    border: none;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lb-details-btn:hover {
    background: #c5a230;
}

/* Panel lateral de detalles (bajo demanda) */
.lb-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: min(440px, 92vw);
    background: var(--blanco);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
}

.lightbox.panel-open .lb-panel {
    transform: translateX(0);
}

@media (min-width: 701px) {
    .lightbox.panel-open {
        --panel-w: min(440px, 40vw);
    }
}

.sheet-body {
    padding: 36px 32px 44px;
}

.sheet-body .property-badge {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}

.sheet-body .property-type {
    margin-bottom: 6px;
}

.sheet-body h3 {
    font-family: "Lora", serif;
    font-size: 23px;
    line-height: 1.3;
    color: var(--azul-marino);
    font-weight: 600;
    margin-bottom: 8px;
}

.sheet-body .property-location {
    margin-bottom: 0;
}

.sheet-price {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dorado);
    margin-top: 16px;
}

.sheet-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--gris-ultra-claro);
    border-left: 3px solid var(--dorado);
}

.sheet-desc {
    margin-top: 24px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--gris-oscuro);
}

.sheet-subtitle {
    font-family: "Lora", serif;
    font-size: 19px;
    color: var(--azul-marino);
    font-weight: 600;
    margin: 26px 0 12px;
}

.sheet-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.sheet-features li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gris-oscuro);
}

.sheet-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--dorado);
}

.sheet-ref {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gris-oscuro);
}

.sheet-ref strong {
    color: var(--azul-marino);
}

.sheet-cta {
    margin-top: 28px;
    padding: 15px 32px;
    background: var(--dorado);
    color: var(--azul-marino);
    border-bottom: none;
    transition: background 0.3s ease;
}

.sheet-cta:hover {
    background: #c5a230;
    border-color: transparent;
}

@media (max-width: 700px) {
    .lightbox {
        padding: 20px 12px 120px;
    }

    .lb-img {
        max-width: 96vw;
        max-height: 62vh;
    }

    /* En móvil el panel sube desde abajo */
    .lb-panel {
        top: auto;
        left: 0;
        width: 100%;
        height: 74vh;
        transform: translateY(100%);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
    }

    .lightbox.panel-open .lb-panel {
        transform: translateY(0);
    }

    .lb-bar {
        width: calc(100% - 24px);
        max-width: none;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 16px;
    }

    .lb-bar-info {
        font-size: 12.5px;
        gap: 10px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .sheet-body {
        padding: 28px 22px 40px;
    }
}

/* LUXURY FEATURES */
.luxury-features {
    padding: 150px 40px;
    background: var(--blanco);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.feature-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 48px;
    color: var(--dorado);
    min-width: 80px;
    text-align: center;
}

.feature-content h3 {
    font-family: "Lora", serif;
    font-size: 24px;
    color: var(--azul-marino);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-content p {
    color: var(--gris-oscuro);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* STATS ELEGANTE */
.stats-section {
    padding: 120px 40px;
    background: linear-gradient(135deg,
            var(--azul-marino) 0%,
            rgba(27, 58, 107, 0.95) 100%);
    color: var(--blanco);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    text-align: center;
}

.stat-box {
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: "Lora", serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--dorado);
    margin-bottom: 10px;
}

.stat-number--sm {
    font-size: 32px;
}

.stat-label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* TESTIMONIOS */
.testimonials {
    padding: 150px 40px;
    background: var(--gris-ultra-claro);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial {
    background: var(--blanco);
    padding: 40px;
    border-radius: 0;
    box-shadow: var(--sombra-sutil);
    transition: all 0.4s ease;
    border-left: 4px solid var(--dorado);
}

.testimonial:hover {
    box-shadow: var(--sombra-media);
    transform: translateY(-5px);
}

.stars {
    color: var(--dorado);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--gris-oscuro);
    margin-bottom: 25px;
    line-height: 1.9;
    font-style: italic;
}

.testimonial-author {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--azul-marino);
    font-size: 14px;
}

.testimonial-role {
    font-size: 12px;
    color: var(--gris-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* CTA FINAL */
.cta-luxury {
    padding: 150px 40px;
    background: linear-gradient(135deg,
            var(--azul-marino) 0%,
            rgba(27, 58, 107, 0.95) 100%);
    color: var(--blanco);
    text-align: center;
}

.cta-luxury h2 {
    font-family: "Lora", serif;
    font-size: 56px;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.cta-luxury p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* FOOTER */
footer {
    background: var(--negro-suave);
    color: var(--blanco);
    padding: 80px 40px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: "Montserrat", sans-serif;
    color: var(--dorado);
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--dorado);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* ANIMACIONES */

/* Scroll-reveal: aparición suave (fade-up) al entrar en pantalla */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Entrada elegante del hero al cargar */
@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero h1 {
    animation: heroRise 1s ease 0.1s both;
}

.hero p {
    animation: heroRise 1s ease 0.3s both;
}

.hero-buttons {
    animation: heroRise 1s ease 0.5s both;
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero h1,
    .hero p,
    .hero-buttons {
        animation: none;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .properties-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .saneamiento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        /* Header móvil achicado ~64px (logo 48 + padding). Un poco menos para
           evitar que se asome la sección anterior al navegar con #. */
        scroll-padding-top: 58px;
    }

    .container {
        padding: 0 20px;
    }

    header {
        padding: 8px 0;
    }

    .logo img {
        height: 90px;
    }

    header.scrolled .logo img {
        height: 48px;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        padding: 8px 0;
        display: none;
    }

    header.nav-open nav {
        display: flex;
    }

    nav a {
        padding: 16px 24px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        height: 80vh;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .featured,
    .luxury-features,
    .cta-luxury,
    .about,
    .sell-cta,
    .catalog,
    .saneamiento {
        padding: 80px 20px;
    }

    .saneamiento-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .about-content h2,
    .sell-cta h2,
    .cta-luxury h2 {
        font-size: 32px;
    }

    .properties-showcase,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .lb-nav {
        font-size: 40px;
    }

    .lb-close {
        font-size: 36px;
        top: 16px;
        right: 18px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}