﻿/* =============== VARIABLES CSS =============== */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    --text-color: #1f2937;
    --text-light: #4b5563;
    --white-color: #ffffff;
    --bg-color: #f9fafb;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --whatsapp-color: #25d366;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography - Mobile First */
    --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Fraunces', Georgia, serif;
    
    --font-size-xs: clamp(0.7rem, 2vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 2vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 2vw, 1rem);
    --font-size-lg: clamp(1rem, 2.5vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 3vw, 1.25rem);
    --font-size-2xl: clamp(1.25rem, 3.5vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 4vw, 1.875rem);
    --font-size-4xl: clamp(1.875rem, 5vw, 2.25rem);
    --font-size-5xl: clamp(2.25rem, 6vw, 3rem);
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing - Fluid */
    --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1.5vw, 0.75rem);
    --spacing-md: clamp(0.75rem, 2vw, 1rem);
    --spacing-lg: clamp(1rem, 2.5vw, 1.5rem);
    --spacing-xl: clamp(1.5rem, 3vw, 2rem);
    --spacing-2xl: clamp(2rem, 4vw, 3rem);
    --spacing-3xl: clamp(2.5rem, 5vw, 4rem);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
    --z-header: 200;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: clamp(1rem, 3vw, 2rem);
}

/* =============== ACCESSIBILITY =============== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color, #2563eb);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* =============== BASE =============== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-x: clip;
    width: 100%;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-inline: var(--container-padding);
    width: 100%;
}

.section {
    padding-block: var(--spacing-3xl);
}

.section--bg {
    background-color: var(--bg-color);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-inline: auto;
}

.section__title {
    font-size: var(--font-size-4xl);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin-inline: auto;
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white-color);
}

.btn--whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn--sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn--block {
    width: 100%;
}

/* =============== HEADER / NAVIGATION =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    z-index: 200;
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 86px;
    gap: var(--spacing-lg);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    transition: color 0.25s ease;
}

.nav__logo-img {
    height: clamp(42px, 4vw, 56px);
    width: auto;
    object-fit: contain;
}

.nav__logo span {
    font-weight: var(--font-weight-bold);
    min-width: 0;
}

@media screen and (max-width: 576px) {
    .nav {
        gap: var(--spacing-sm);
    }

    .nav__logo span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.nav__logo i {
    font-size: var(--font-size-2xl);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav__link {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    transition: color var(--transition-base);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.nav__link--cta:hover {
    background-color: var(--primary-dark);
}

.nav__link--cta::after {
    display: none;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
}

/* =============== HERO SECTION =============== */
.hero {
    position: relative;
    background: #0f172a;
    color: var(--white-color);
    overflow: clip;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(6rem, 12vh, 9rem);
}

/* Dynamic Hero Background Image */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.hero__background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    z-index: 1;
}

/* Container */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    padding: clamp(2rem, 5vw, 3.5rem) var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

/* Content Area */
.hero__content {
    animation: slideInUp 0.8s ease both;
    max-width: 42rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: var(--font-weight-medium);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease 0.1s both;
}

/* Title */
.hero__title {
    font-size: clamp(1.75rem, 5vw + 1rem, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    animation: slideInUp 0.8s ease 0.2s both;
    letter-spacing: -0.02em;
}

.hero__title--highlight {
    color: #fbbf24;
    display: block;
    margin-top: var(--spacing-xs);
}

/* Description */
.hero__description {
    font-size: clamp(0.95rem, 2vw + 0.5rem, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 38rem;
    animation: slideInUp 0.8s ease 0.3s both;
}

/* Buttons */
.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.4s both;
}

.btn--large {
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 32px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.btn--primary {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn--whatsapp {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Trust Indicators */
.hero__trust {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.5s both;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: rgba(255, 255, 255, 0.85);
}

.hero__trust-item i {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--secondary-color);
}

/* Stats Grid */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: var(--spacing-xl);
    animation: slideInUp 0.8s ease 0.6s both;
    align-self: stretch;
}

.hero__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero__info-card {
    text-align: left;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero__info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

.hero__info-title {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
}

.hero__info-desc {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
}

.hero-modal {
    border: none;
    padding: 0;
    border-radius: 16px;
    max-width: min(720px, 92vw);
    width: 100%;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
}

.hero-modal::backdrop {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
}

.hero-modal__inner {
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    display: grid;
    gap: 12px;
}

.hero-modal__close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 20px;
}

.hero-modal__title {
    margin-right: 40px;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
}

.hero-modal__body {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.hero-modal__link {
    width: fit-content;
}

.hero__stat {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.hero__stat:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero__stat-number {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.hero__stat-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: #fff;
    font-size: clamp(0.85rem, 1.7vw, 1rem);
    z-index: 2;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero__scroll span {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 999px;
    padding: 0.45em 1.3em;
    box-shadow: 0 2px 16px 0 rgba(30,41,59,0.13);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.3em;
    display: inline-block;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.hero__scroll span:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(37,99,235,0.18);
    cursor: pointer;
}
.hero__scroll-icon {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: #2563eb;
    background: #fff;
    border-radius: 50%;
    padding: 0.35em 0.5em;
    box-shadow: 0 2px 12px 0 rgba(30,41,59,0.10);
    margin-top: 0.2em;
    animation: bounce 2s ease infinite;
    transition: background 0.3s, color 0.3s;
}
.hero__scroll-icon:hover {
    background: #2563eb;
    color: #fff;
}
.hero__scroll-icon {
    font-size: clamp(1rem, 2vw, 1.25rem);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== RESPONSIVE HERO ========== */

/* Desktop Large (+1200px) */
@media (min-width: 1200px) {
    .hero__container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Medium (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: unset;
        padding: clamp(4rem, 10vh, 6rem) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 var(--spacing-lg);
    }
    
    .hero__stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
    
    .hero__description {
        max-width: 90%;
    }
    
    .hero__buttons {
        flex-direction: row;
    }
    
    .btn--large {
        flex: 1;
        min-width: 200px;
    }
}

/* Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        min-height: unset;
        padding: clamp(3rem, 8vh, 5rem) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 var(--spacing-md);
    }
    
    .hero__badge {
        font-size: 0.8rem;
    }
    
    .hero__title {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }
    
    .hero__description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn--large {
        width: 100%;
        justify-content: center;
    }
    
    .hero__trust {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero__scroll {
        bottom: 20px;
    }
    
    .hero__info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (<480px) */
@media (max-width: 480px) {
    .hero {
        min-height: unset;
        padding: clamp(2.5rem, 6vh, 4rem) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 var(--spacing-sm);
    }
    
    .hero__badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-top: 40px;
    }
    
    .hero__title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .btn--large {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero__trust-item {
        font-size: 0.8rem;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: var(--spacing-lg);
    }
    
    .hero__stat {
        padding: 1rem 0.75rem;
    }
    
    .hero__stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .hero__stat-label {
        font-size: 0.75rem;
    }
    
    .hero__scroll {
        display: none;
    }
    
    .hero__info-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile (<375px) */
@media (max-width: 374px) {
    .hero__title {
        font-size: 1.5rem;
    }
    
    .hero__stats {
        grid-template-columns: 1fr;
    }
    
    .btn--large {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Touch devices - Remove hover effects */
@media (hover: none) and (pointer: coarse) {
    .hero__stat:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .btn--primary:hover,
    .btn--whatsapp:hover {
        transform: none;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero__content,
    .hero__stats,
    .hero__scroll {
        animation: none;
    }
    
    .hero__scroll-icon {
        animation: none;
    }
    
    .hero__stat,
    .btn--primary,
    .btn--whatsapp {
        transition: none;
    }
}

.hero__image {
    animation: fadeInRight 1s ease;
}

.hero__img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero__wave svg {
    display: block;
}

/* =============== SEARCH SECTION =============== */
.search {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search__container {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
}

.search__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.search__group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.search__group label {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.search__input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--text-color);
}

/* =============== PROPERTIES SECTION =============== */
.properties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.property__card {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    will-change: transform;
    border: 1px solid rgba(0,0,0,0.04);
}

.property__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.1);
}

.property__image {
    position: relative;
    aspect-ratio: 3/2;
    max-height: 400px;
    overflow: hidden;
}

.property__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.10), transparent);
    pointer-events: none;
    z-index: 1;
}

.property__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.property__card:hover .property__image img {
    transform: scale(1.1);
}

.property__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
}

.property__img-count {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.property__content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property__price {
    font-size: clamp(1.25rem, 4vw, var(--font-size-2xl));
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.property__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.property__location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.property__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.property__feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.property__feature i {
    color: var(--primary-color);
}

.properties__cta {
    text-align: center;
    padding-top: var(--spacing-xl);
}

/* =============== SERVICES SECTION =============== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.service__card {
    background: #ffffff;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.05);
    transition: left 0.6s ease;
}

.service__card:hover::before {
    left: 100%;
}

.service__card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.service__icon {
    width: clamp(70px, 15vw, 90px);
    height: clamp(70px, 15vw, 90px);
    margin: 0 auto var(--spacing-lg);
    background: #2563eb;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 5vw, var(--font-size-3xl));
    color: var(--white-color);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service__icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: inherit;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.service__card:hover .service__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.service__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-base);
}

.service__card:hover .service__title {
    color: var(--primary-color);
}

.service__description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--font-size-sm);
}

/* =============== AMENITIES SECTION =============== */
.amenities {
    background: #eff6ff;
    position: relative;
    overflow: hidden;
}

.amenities::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.amenities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

@media (min-width: 600px) {
    .amenities__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .amenities__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .amenities__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amenity__card {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    touch-action: manipulation;
}

@media (min-width: 600px) {
    .amenity__card {
        min-height: 350px;
        padding: var(--spacing-2xl);
    }
}

@media (min-width: 900px) {
    .amenity__card {
        min-height: 400px;
    }
}

.amenity__bg-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.28);
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.amenity__card:hover .amenity__bg-shine {
    left: 100%;
}

.amenity__card:hover {
    transform: translateY(-16px) scale(1.025);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.35);
    background: #f0fdf4;
}

.amenity__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    background: #10b981;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35), inset -2px -2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    z-index: 2;
}

.amenity__icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.amenity__card:hover .amenity__icon {
    transform: scale(1.15) rotateY(10deg);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.45), inset -2px -2px 8px rgba(0, 0, 0, 0.15);
}

.amenity__title {
    font-size: clamp(0.98rem, 1.7vw, 1.08rem);
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-weight: var(--font-weight-bold);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.amenity__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #10b981;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.amenity__card:hover .amenity__title {
    color: var(--secondary-color);
}

.amenity__card:hover .amenity__title::after {
    width: 50px;
}

.amenity__description {
    color: var(--text-light);
    line-height: 1.4;
    margin: 0.3rem 0 0.1rem 0;
    font-size: clamp(0.87rem, 1.2vw, 0.97rem);
    transition: color var(--transition-base);
    position: relative;
    z-index: 2;
}

.amenity__card:hover .amenity__description {
    color: var(--text-color);
}

.amenity__badge {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

.amenity-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1001;
}

.amenity-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.amenity-modal__backdrop {
    position: absolute;
    inset: 0;
}

.amenity-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.amenity-modal.is-open .amenity-modal__dialog {
    transform: translateY(0);
}

.amenity-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-color);
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
}

.amenity-modal__close:hover {
    background: rgba(16, 185, 129, 0.12);
    transform: scale(1.05);
}

.amenity-modal__icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: #10b981;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.35);
    margin-bottom: 1rem;
}

.amenity-modal__title {
    margin-bottom: 0.35rem;
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
}

.market-focus {
    background: #f8fafc;
}

.market-focus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.market-focus__card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-focus__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.market-focus__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37,99,235,0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.market-focus__card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-size: var(--font-size-xl);
}

.market-focus__card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.market-focus__zones {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.market-focus__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 1.2rem;
    background: #dbeafe;
    color: #1e3a8a;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(37,99,235,0.1);
}

.market-focus__tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

/* Zona tachada / sin inventario (solo visual, no afecta SEO) */
.market-focus__tag--disabled {
    position: relative;
    opacity: 0.55;
    pointer-events: none;
}
.market-focus__tag--disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #dc2626;
    transform: translateY(-50%);
    border-radius: 2px;
}

.market-focus__actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.amenity-modal__lead {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.amenity-modal__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.amenity-modal__list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: #f8fafc;
    color: #374151;
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.amenity-modal__list i {
    color: #10b981;
}

.amenity-modal__cta {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .amenity-modal__dialog {
        width: 100%;
        border-radius: var(--radius-xl);
    }

    .amenity-modal__cta {
        justify-content: center;
    }
}

/* =============== ABOUT SECTION =============== */
.about__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.about__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image picture,
.about__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about__content .section__title {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.375rem);
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
}

.about__text {
    color: var(--text-light);
    font-size: clamp(0.95rem, 0.6vw + 0.5rem, 1.125rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: clamp(0.95rem, 0.5vw + 0.5rem, 1.0625rem);
}

.about__feature i {
    color: var(--success-color);
    font-size: clamp(1.125rem, 0.8vw + 0.5rem, 1.5rem);
}

/* =============== CONTACT SECTION =============== */
.contact__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact__form {
    background-color: var(--white-color);
    padding: clamp(1.5rem, 4vw, var(--spacing-2xl));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--spacing-md);
}

.form__group {
    margin-bottom: var(--spacing-lg);
}

.form__label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background-color: var(--white-color);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__checkbox {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    align-items: flex-start;
}

.form__checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__link {
    color: var(--primary-color);
    text-decoration: underline;
}

.form__message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: none;
}

.form__message.success {
    background-color: #d1fae5;
    color: var(--success-color);
    display: block;
}

.form__message.error {
    background-color: #fee2e2;
    color: var(--error-color);
    display: block;
}

/* Form Sections */
.form__section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.form__section:last-of-type {
    border-bottom: none;
}

.form__section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.form__section-description {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Checkboxes Grid */
.form__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form__checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form__checkbox-item input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form__checkbox-item label {
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    -webkit-user-select: none;
    user-select: none;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact__card {
    background-color: var(--white-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact__card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--white-color);
}

.contact__card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.contact__card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--text-color);
    color: var(--white-color);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.footer__list li {
    margin-bottom: var(--spacing-sm);
}

.footer__list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer__list a:hover {
    color: var(--white-color);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer__legal a:hover {
    color: var(--white-color);
}

/* =============== FLOATING WHATSAPP BUTTON =============== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--white-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    box-shadow: var(--shadow-xl);
    z-index: 99;
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* =============== SCROLL TO TOP BUTTON =============== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 98;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.85;
    }
}

/* =============== VALUE PROPOSITION CARDS =============== */
.vp-value {
    background: #f8fafc;
}

.vp-value__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
}

.vp-value__card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(37,99,235,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.vp-value__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.vp-value__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(37,99,235,0.12);
}

.vp-value__card:hover::before {
    opacity: 1;
}

.vp-value__card--highlight {
    background: #1e3a8a;
    color: #fff;
    border: none;
}

.vp-value__card--highlight h3 {
    color: #fbbf24;
}

.vp-value__card--highlight p {
    color: rgba(255,255,255,0.9);
}

.vp-value__card--highlight::before {
    background: #fbbf24;
}

.vp-value__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.vp-value__card--highlight .vp-value__icon {
    background: rgba(255,255,255,0.15);
    color: #fbbf24;
}

.vp-value__card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.vp-value__card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* =============== PROCESO TIMELINE =============== */
.vp-proceso {
    background: #fff;
}

.vp-proceso__timeline {
    display: grid;
    gap: 0;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.vp-proceso__step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.vp-proceso__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.vp-proceso__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
    position: relative;
    z-index: 1;
}

.vp-proceso__info h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
    color: var(--text-color);
}

.vp-proceso__info p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* =============== FAQ ACCORDION =============== */
.vp-faq {
    background: #f8fafc;
}

.vp-faq__list {
    max-width: 750px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-md);
}

.vp-faq__item {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.vp-faq__item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}

.vp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    color: var(--text-color);
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.vp-faq__question::-webkit-details-marker {
    display: none;
}

.vp-faq__question i {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.vp-faq__item[open] .vp-faq__question i {
    transform: rotate(180deg);
}

.vp-faq__answer {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.7;
    animation: faqSlide 0.3s ease;
}

@keyframes faqSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============== PROPERTY CARD CTA =============== */
.property__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    transition: gap 0.3s ease, color 0.3s ease;
}

.property__card:hover .property__cta {
    gap: 10px;
    color: var(--primary-dark);
}

/* =============== RESPONSIVE DESIGN =============== */
@media screen and (max-width: 968px) {
    .section__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__container,
    .about__container {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .hero__image {
        order: -1;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .search__form {
        grid-template-columns: 1fr;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--white-color);
        padding: var(--spacing-3xl) var(--spacing-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 1002;
    }
    
    .nav__menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
        z-index: -1;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__menu.show-menu::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav__close,
    .nav__toggle {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media screen and (min-width: 1200px) {
    .nav {
        height: 90px;
    }
}

@media screen and (max-width: 576px) {
    .nav {
        height: 76px;
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
    
    .properties__grid {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service__card {
        padding: var(--spacing-xl);
    }
    
    .service__icon {
        width: 70px;
        height: 70px;
        font-size: var(--font-size-2xl);
    }
    
    /* Mobile: 2 filas + scroll horizontal (icono + título) */
    .amenities__grid {
        grid-template-columns: unset;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-auto-columns: minmax(160px, 1fr);
        gap: var(--spacing-md);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }

    .amenity__card {
        padding: var(--spacing-md);
        min-height: 150px;
        justify-content: center;
        scroll-snap-align: start;
    }

    .amenity__icon {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
        margin-bottom: var(--spacing-sm);
    }

    .amenity__title {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .amenity__description {
        display: none;
    }

    /* VP value cards mobile */
    .vp-value__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .vp-value__card {
        padding: var(--spacing-lg);
    }

    /* Proceso timeline mobile */
    .vp-proceso__step {
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }

    .vp-proceso__number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .vp-proceso__step:not(:last-child)::after {
        left: 19px;
        top: 48px;
    }

    /* FAQ mobile */
    .vp-faq__question {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .vp-faq__answer {
        padding: 0 var(--spacing-lg) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    /* Search section mobile */
    .search {
        margin-top: -30px;
    }

    .search__container {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    /* Hero info-grid mobile */
    .hero__info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Footer mobile */
    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    /* Market focus mobile */
    .market-focus__actions {
        flex-direction: column;
    }

    .market-focus__actions .btn {
        width: 100%;
    }

    /* Contact cards mobile */
    .contact__card {
        padding: var(--spacing-lg);
    }
}

/* =============== TABLET BREAKPOINT =============== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .amenities__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .amenity__card {
        padding: var(--spacing-xl);
        min-height: 400px;
    }

    .vp-value__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============== TOUCH OPTIMIZATIONS =============== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .property__card,
    .service__card,
    .amenity__card {
        transition: transform 0.2s ease;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .property__card:active,
    .service__card:active,
    .amenity__card:active {
        transform: scale(0.98);
    }
}

/* =============== REDUCED MOTION =============== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============== STATS COUNTER =============== */
.stats-counter {
    background: #1e3a8a;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.stats-counter__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-counter__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-counter__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stats-counter__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stats-counter__number {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stats-counter__label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============== SECTION BADGE =============== */
.section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.section__badge i {
    font-size: 0.85em;
}

/* =============== PROPERTY CTA LINK =============== */
.property__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: gap 0.3s ease, color 0.3s ease;
}

.property__card:hover .property__cta {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* =============== PROPERTY TYPE BADGE =============== */
.property__type-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* =============== PROPERTIES EMPTY STATE =============== */
.properties__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: var(--radius-2xl);
    border: 2px dashed rgba(37, 99, 235, 0.2);
}

.properties__empty i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.properties__empty h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.properties__empty p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* =============== MARKET FOCUS REDESIGN =============== */
.market-focus__card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-focus__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.market-focus__card:hover .market-focus__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.market-focus__summary {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--spacing-md);
    font-size: var(--font-size-sm);
}

.market-focus__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: background 0.3s ease, gap 0.3s ease;
}

.market-focus__more:hover {
    background: rgba(37, 99, 235, 0.08);
    gap: 0.75rem;
}

.market-focus__tag i {
    font-size: 0.75em;
    opacity: 0.6;
    margin-right: 0.25rem;
}

.market-focus__zones {
    justify-content: center;
}

.market-focus__actions {
    justify-content: center;
}

/* =============== MARKET MODAL =============== */
.market-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.market-modal.active {
    opacity: 1;
    visibility: visible;
}

.market-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}

.market-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    max-width: 520px;
    width: calc(100% - 2rem);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.market-modal.active .market-modal__dialog {
    transform: translateY(0) scale(1);
}

.market-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}

.market-modal__close:hover {
    background: #e5e7eb;
    color: var(--text-color);
}

.market-modal__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.market-modal__title {
    font-size: var(--font-size-2xl);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.market-modal__body {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    text-align: left;
}

.market-modal__cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============== FULL RESPONSIVE FIX 2026-03-18 =============== */

/* Prevent any child from breaking viewport width */
.container, .section, .hero__container, .footer__container {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =============== HOMEPAGE SPACING & MODERN LAYOUT FIX =============== */

/* More vertical breathing room between sections */
.section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section--bg {
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* Section headers need more bottom space */
.section__header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__title {
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    line-height: 1.25;
}

.section__description {
    line-height: 1.7;
    max-width: 650px;
}

/* Value proposition cards - better inner spacing */
.vp-value__card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.vp-value__card h3 {
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    line-height: 1.3;
}

.vp-value__card p {
    line-height: 1.75;
    font-size: var(--font-size-sm);
}

/* Market focus cards - breathe */
.market-focus__card {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.market-focus__card h3 {
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.market-focus__card p {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

/* Timeline steps - better spacing */
.vp-proceso__step {
    padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.vp-proceso__info h3 {
    margin-bottom: clamp(4px, 0.5vw, 8px);
}

/* FAQ - better padding */
.vp-faq__question {
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
}

.vp-faq__answer {
    padding: 0 clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
}

/* Property cards - better content spacing */
.property__content {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
}

.property__title {
    margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.property__location {
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

/* Amenities cards - consistent padding */
.amenity__card {
    padding: clamp(1.25rem, 3vw, 2rem);
    min-height: auto;
}

.amenity__title {
    margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.amenity__description {
    margin: clamp(0.25rem, 0.5vw, 0.5rem) 0 0;
}

/* Contact section form - better spacing */
.form__section {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.form__section-title {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-size: var(--font-size-lg);
}

.form__row {
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.form__group {
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

/* Social proof ribbon spacing */
.social-proof-ribbon {
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

/* Search section overlap fix */
.search {
    margin-top: clamp(-40px, -4vw, -50px);
}

/* Footer better spacing */
.footer__container {
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer__description {
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.footer__title {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.footer__list li {
    margin-bottom: clamp(0.35rem, 0.5vw, 0.5rem);
}

/* =============== FEATURED/POPULAR PROPERTIES SECTION =============== */
.properties-popular {
    background: #f8fafc;
}

.properties-popular__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.properties-popular__tabs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
}

.properties-popular__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background: var(--white-color);
    color: var(--text-light);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.properties-popular__tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.properties-popular__tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.properties-popular__rank {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ---- Mobile Small (≤480px) ---- */
@media (max-width: 480px) {
    /* Footer stacks to 1 column */
    .footer__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Contact info cards stack nicely */
    .contact__info {
        gap: var(--spacing-md);
    }

    .contact__card {
        padding: var(--spacing-md);
    }

    .contact__card-icon {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-xl);
    }

    /* WhatsApp + scroll-top smaller on phones */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 16px;
        font-size: var(--font-size-2xl);
    }

    .scroll-top {
        width: 42px;
        height: 42px;
        bottom: 80px;
        right: 16px;
    }

    /* Section headers tighter */
    .section__header {
        margin-bottom: var(--spacing-xl);
    }

    /* Market modal comfortable on phone */
    .market-modal__dialog {
        padding: 1.5rem;
        width: calc(100% - 1.5rem);
    }

    /* Amenity modal */
    .amenity-modal__dialog {
        max-width: calc(100vw - 1.5rem);
        padding: 1.25rem;
    }

    /* Hero modal */
    .hero-modal {
        max-width: calc(100vw - 1rem);
    }

    /* Nav mobile menu narrower on very small screens */
    .nav__menu {
        width: 85%;
    }

    /* Form checkboxes single column */
    .form__checkboxes {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile Medium (≤576px) ---- */
@media (max-width: 576px) {
    /* Footer bottom stacks */
    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* Proceso timeline compact */
    .vp-proceso__info h3 {
        font-size: var(--font-size-base);
    }

    .vp-proceso__info p {
        font-size: var(--font-size-sm);
    }
}

/* ---- Tablet (481px–768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .form__checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============== HOMEPAGE MODERNIZATION =============== */

/* Social Proof Ribbon (replaces stats-counter) */
.social-proof-ribbon {
    background: #0f172a;
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.social-proof-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.social-proof-ribbon__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-proof-ribbon__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.9);
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.social-proof-ribbon__item i {
    color: #fbbf24;
    font-size: 1rem;
}

.social-proof-ribbon__divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .social-proof-ribbon__inner {
        gap: 1rem;
        justify-content: center;
    }
    .social-proof-ribbon__divider {
        display: none;
    }
    .social-proof-ribbon__item {
        flex: 0 0 calc(50% - 0.5rem);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-proof-ribbon__item {
        flex: 0 0 100%;
        font-size: 0.85rem;
    }
}

/* Modern Section Headers */
.section__header--modern {
    margin-bottom: var(--spacing-3xl);
}

.section__title--gradient {
    color: #0f172a;
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.text-accent {
    color: #2563eb;
}

.section__badge--glow {
    position: relative;
    background: #eff6ff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.section__description--wide {
    max-width: 680px;
    margin-inline: auto;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-light);
    line-height: 1.75;
}

/* Modern Value Cards */
.vp-value__card--modern {
    position: relative;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.vp-value__card--modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.15);
}

.vp-value__card-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.06);
    line-height: 1;
    font-family: var(--font-secondary);
    pointer-events: none;
}

.vp-value__card--highlight .vp-value__card-number {
    color: rgba(255, 255, 255, 0.1);
}

.vp-value__icon--modern {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.vp-value__card--modern:hover .vp-value__icon--modern {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.vp-value__card--highlight .vp-value__icon--modern {
    background: rgba(255, 255, 255, 0.12);
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.vp-value__card-line {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 999px;
    margin-top: 1.25rem;
    transition: width 0.4s ease;
}

.vp-value__card--modern:hover .vp-value__card-line {
    width: 80px;
}

.vp-value__card--highlight .vp-value__card-line {
    background: #fbbf24;
}

/* Search Section Modern */
.search {
    position: relative;
}

.search__container {
    position: relative;
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.search__container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 4px 4px;
}

/* Market Focus Cards Modern */
.market-focus__card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
}

.market-focus__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-focus__card:hover::after {
    opacity: 1;
}

/* Amenity Cards Modern Enhancement */
.amenity__card {
    position: relative;
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.amenity__card:hover {
    transform: translateY(-6px);
}

/* Process Timeline Modern */
.vp-proceso__step {
    position: relative;
}

.vp-proceso__number {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.vp-proceso__step:hover .vp-proceso__number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* FAQ Modern */
.vp-faq__item {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.vp-faq__item[open] {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

/* Properties Popular Tabs Modern */
.properties-popular__tab {
    position: relative;
    overflow: hidden;
}

.properties-popular__tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Modern hover micro-interactions */
.btn--primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Animated gradient border for sections */
.section--bg {
    position: relative;
}

.section--bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
}

/* Smooth reveal animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section__header--modern .section__badge--glow {
    animation: fadeSlideUp 0.6s ease both;
}

.section__header--modern .section__title--gradient {
    animation: fadeSlideUp 0.6s ease 0.1s both;
}

.section__header--modern .section__description--wide {
    animation: fadeSlideUp 0.6s ease 0.2s both;
}

/* Market Focus Tags Modern */
.market-focus__tag {
    transition: all 0.3s ease;
    border-radius: 999px;
}

.market-focus__tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Contact Form Modern Enhancements */
.contact__form {
    border-radius: 1.5rem;
}

.form__input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---- Tablet-Landscape / Small Desktop (769px–1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============== PRINT STYLES =============== */
@media print {
    .header,
    .nav__toggle,
    .whatsapp-float,
    .scroll-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
