/* ═══════════════════════════════════════════════════════════
   VILLA MARINA S.A.S. — Design System v2.0
   Principios: Mobile-first · Accesibilidad · Alto rendimiento
═══════════════════════════════════════════════════════════ */

/* ─── 1. CUSTOM PROPERTIES (Design Tokens) ───────────────── */
:root {
    /* Colores primarios */
    --color-brand:        #c62828;
    --color-brand-dark:   #8e0000;
    --color-brand-light:  #ff5f52;
    --color-brand-bg:     #fff5f5;

    /* Colores neutros */
    --color-bg:           #fafafa;
    --color-surface:      #ffffff;
    --color-surface-alt:  #f5f6f7;
    --color-border:       #e8e8e8;
    --color-text:         #1a1a1a;
    --color-text-muted:   #666666;
    --color-text-light:   #999999;

    /* Colores acento */
    --color-gold:         #f59e0b;
    --color-green:        #16a34a;

    /* Tipografía */
    --font-body:    'Poppins', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
    --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
    --text-base: clamp(1rem,     2vw,   1.125rem);
    --text-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
    --text-xl:   clamp(1.375rem, 3vw,   1.75rem);
    --text-2xl:  clamp(1.75rem,  4vw,   2.5rem);
    --text-3xl:  clamp(2.25rem,  5vw,   3.5rem);
    --text-4xl:  clamp(3rem,     6vw,   4.5rem);

    /* Espaciado */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Sombras */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg:  0 12px 32px rgba(0,0,0,0.12);
    --shadow-brand: 0 8px 24px rgba(198,40,40,0.25);

    /* Radios */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast:   0.15s ease;
    --transition-base:   0.3s ease;
    --transition-slow:   0.5s cubic-bezier(0.23, 1, 0.32, 1);

    /* Layout */
    --container-max: 1140px;
    --nav-height:    70px;
}

/* ─── 2. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* Foco accesible */
:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ─── 3. UTILIDADES ───────────────────────────────────────── */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: var(--color-brand-bg);
    color: var(--color-brand);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.25;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

/* ─── 4. ANIMACIONES REVEAL ──────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--transition-slow),
                transform 0.7s var(--transition-slow);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger para grids */
.lote-card:nth-child(1) { transition-delay: 0s; }
.lote-card:nth-child(2) { transition-delay: 0.12s; }
.lote-card:nth-child(3) { transition-delay: 0.24s; }
.beneficio-card:nth-child(1) { transition-delay: 0s; }
.beneficio-card:nth-child(2) { transition-delay: 0.08s; }
.beneficio-card:nth-child(3) { transition-delay: 0.16s; }
.beneficio-card:nth-child(4) { transition-delay: 0.24s; }
.beneficio-card:nth-child(5) { transition-delay: 0.32s; }
.beneficio-card:nth-child(6) { transition-delay: 0.40s; }

/* ─── 5. BOTONES ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    line-height: 1;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(198,40,40,0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--color-brand);
}

.btn-card {
    background: var(--color-brand-bg);
    color: var(--color-brand);
    border-color: rgba(198,40,40,0.2);
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
}
.btn-card:hover {
    background: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
}

.btn-block { width: 100%; justify-content: center; }

/* ─── 6. HEADER / NAV ────────────────────────────────────── */
.header {
    background: var(--color-brand);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background var(--transition-base);
}

.header.scrolled {
    background: var(--color-brand-dark);
}

.nav {
    height: 100%;
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.logo-icon { font-size: 1.4em; }
.logo-sub { font-weight: 300; opacity: 0.85; }

/* Menú */
.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu a {
    color: rgba(255,255,255,0.88);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.menu a:hover,
.menu a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.nav-cta {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
}
.nav-cta:hover {
    background: #fff !important;
    color: var(--color-brand) !important;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.hamburger:hover { background: rgba(255,255,255,0.15); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 7. HERO ─────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: var(--space-2xl) var(--space-sm);
    overflow: hidden;
}

/* Imagen de fondo real (indexable por Google) */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.4) 60%,
        rgba(198,40,40,0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    animation: heroIn 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title .highlight {
    color: var(--color-brand-light);
}

.hero-sub {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.88);
    max-width: 580px;
    margin: 0 auto var(--space-lg);
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat strong {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-display);
}

.stat span {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: bounce 2s ease infinite;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-3px);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ─── 8. TRUST BAR ───────────────────────────────────────── */
.trust-bar {
    background: var(--color-brand);
    padding: 14px 0;
    overflow: hidden;
}

.trust-bar-inner {
    display: flex;
    gap: var(--space-xl);
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    color: rgba(255,255,255,0.9);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
}

/* ─── 9. LOTES ────────────────────────────────────────────── */
.lotes {
    padding: var(--space-3xl) var(--space-sm);
    background: var(--color-bg);
}

/* Filtros */
.filtros {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.filtro-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    transition: all var(--transition-base);
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

/* Grid */
.lotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto var(--space-xl);
}

/* Tarjeta */
.lote-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.lote-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.lote-destacado {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-md);
}

.lote-img {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    padding: var(--space-xl) var(--space-sm);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.lote-icon { font-size: 3.5rem; display: block; }

.lote-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-green);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.lote-badge--gold {
    background: var(--color-gold);
    color: #fff;
}

.lote-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lote-area {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
}

.lote-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.lote-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.65;
}

.lote-features {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lote-features li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tarjeta oculta por filtro */
.lote-card.hidden {
    display: none;
}

/* Servicios box */
.servicios-box {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--color-brand);
    padding: var(--space-xl) var(--space-xl);
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.servicios-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.servicios-icon { font-size: 3rem; flex-shrink: 0; }

.servicios-text h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: var(--space-sm);
}

.servicios-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.servicios-cierre {
    font-weight: 600;
    color: var(--color-text) !important;
    font-style: italic;
}

/* ─── 10. BANNER INFO ────────────────────────────────────── */
.banner-info {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    padding: var(--space-2xl) var(--space-sm);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.banner-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.banner-content p {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* ─── 11. NOSOTROS ───────────────────────────────────────── */
.nosotros {
    padding: var(--space-3xl) var(--space-sm);
    background: var(--color-surface-alt);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto var(--space-xl);
}

.beneficio-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
}

.beneficio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(198,40,40,0.2);
}

.beneficio-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.beneficio-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 8px;
}

.beneficio-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.cierre {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text);
    font-style: italic;
    line-height: 1.6;
}

/* ─── 12. FAQ ─────────────────────────────────────────────── */
.faq {
    padding: var(--space-3xl) var(--space-sm);
    background: var(--color-bg);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(198,40,40,0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    transition: background var(--transition-fast);
}

.faq-question:hover { background: var(--color-brand-bg); }
.faq-question[aria-expanded="true"] { color: var(--color-brand); }

.faq-icon {
    font-size: 1.4em;
    font-weight: 300;
    color: var(--color-brand);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
    animation: fadeDown 0.3s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── 13. CONTACTO ───────────────────────────────────────── */
.contacto {
    padding: var(--space-3xl) var(--space-sm);
    background: var(--color-surface-alt);
}

.contacto-inner {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contacto-texto h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contacto-texto p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    padding: 14px 18px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

a.contacto-item:hover {
    background: var(--color-brand-bg);
    border-color: rgba(198,40,40,0.3);
    color: var(--color-brand);
    transform: translateX(4px);
}

.contacto-item span { font-size: 1.4em; }

/* ─── Mapa y horarios ─────────────────────────────────────── */
.contacto-mapa {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.mapa-horario {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-brand-bg);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.mapa-horario span {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.mapa-horario strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-brand);
    font-size: var(--text-base);
}

.mapa-horario p {
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.contacto-mapa iframe {
    display: block;
    width: 100%;
    height: 380px;
}

/* Formulario */
.contacto-form {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.contacto-form h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.form-group label span { color: var(--color-brand); }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-brand);
    background: var(--color-surface);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--color-brand);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-brand);
    min-height: 1em;
}

.form-success {
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    color: var(--color-green);
    font-weight: 500;
    font-size: var(--text-sm);
    text-align: center;
}

/* ─── 14. FOOTER ──────────────────────────────────────────── */
.footer {
    background: #111;
    color: rgba(255,255,255,0.75);
    padding: var(--space-xl) var(--space-sm);
}

.footer-inner {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.footer-brand .logo {
    color: #fff;
    font-size: var(--text-lg);
    margin-bottom: 10px;
    display: block;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }

.footer-legal {
    text-align: right;
    font-size: var(--text-xs);
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
}

/* ─── 15. WHATSAPP FLOAT ─────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(37,211,102,0.55);
}

/* Pulso animado */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ─── 16. SCROLL TO TOP ───────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.scroll-top:hover {
    background: var(--color-brand);
    transform: translateY(-3px);
}

/* ─── 17. RESPONSIVE ─────────────────────────────────────── */

/* Tablet */
@media (max-width: 960px) {
    .lotes-grid,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .footer-legal { text-align: center; }

    .servicios-box { flex-direction: column; gap: var(--space-md); }
}

/* Mobile */
@media (max-width: 640px) {
    :root { --space-3xl: 5rem; }

    .hamburger { display: flex; }

    .menu {
        position: fixed;
        inset: var(--nav-height) 0 0 0;
        background: var(--color-brand-dark);
        flex-direction: column;
        padding: var(--space-xl) var(--space-sm);
        gap: 8px;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

    .menu.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .menu a {
        font-size: var(--text-base);
        padding: 14px 20px;
        border-radius: var(--radius-md);
    }

    .lotes-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-stats { gap: var(--space-lg); }

    .trust-bar-inner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contacto-form { padding: var(--space-md); }
    .contacto-mapa iframe { height: 280px; }
}

/* ─── 18. ACCESIBILIDAD ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ─── 19. PRINT ──────────────────────────────────────────── */
@media print {
    .header, .whatsapp-float, .scroll-top { display: none; }
    body { background: white; color: black; }
    .hero { min-height: auto; padding: 2rem; background: #eee; color: black; }
    .hero-overlay { display: none; }
}