/*
Theme Name: Villas del Valle
Theme URI: https://villasdelvalle.com
Author: Villas del Valle Development Team
Description: Tema profesional premium para Villas del Valle - Corporación Inmobiliaria. Sitio público con diseño elegante, moderno y responsivo.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: villas-del-valle
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --vdv-primary: #0E2926;
    --vdv-primary-dark: #071615;
    --vdv-primary-light: #1A403B;
    --vdv-accent: #D4A853;
    --vdv-accent-light: #E2C07A;
    --vdv-gold: #C49A3C;
    --vdv-cream: #FAF8F5;
    --vdv-light: #F5F3EF;
    --vdv-white: #FFFFFF;
    --vdv-gray-100: #F7F7F7;
    --vdv-gray-200: #ECECEC;
    --vdv-gray-300: #D4D4D4;
    --vdv-gray-400: #A3A3A3;
    --vdv-gray-500: #737373;
    --vdv-gray-600: #525252;
    --vdv-gray-700: #404040;
    --vdv-gray-800: #262626;
    --vdv-gray-900: #1.8.07;
    --vdv-success: #059669;
    --vdv-warning: #D97706;
    --vdv-danger: #DC2626;
    --vdv-info: #2563EB;

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & 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-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--vdv-gray-700);
    background: var(--vdv-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--vdv-primary-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

a {
    color: var(--vdv-primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--vdv-accent); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1;
}

.btn-primary {
    background: var(--vdv-primary);
    color: var(--vdv-white);
}
.btn-primary:hover {
    background: var(--vdv-primary-dark);
    color: var(--vdv-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--vdv-accent);
    color: var(--vdv-primary-dark);
}
.btn-accent:hover {
    background: var(--vdv-gold);
    color: var(--vdv-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--vdv-primary);
    border: 2px solid var(--vdv-primary);
}
.btn-outline:hover {
    background: var(--vdv-primary);
    color: var(--vdv-white);
}

.btn-white {
    background: var(--vdv-white);
    color: var(--vdv-primary);
}
.btn-white:hover {
    background: var(--vdv-cream);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1DA851;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 14px 0;
    background: rgba(7, 22, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212,168,83,0.1);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* === TEXT BRAND (no logo image) === */
.site-brand {
    flex-shrink: 0;
    text-decoration: none;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vdv-accent);
    letter-spacing: 0.08em;
    transition: all 0.4s ease;
}
.brand-name small {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.7;
}
.site-header.scrolled .brand-name { color: var(--vdv-primary); }

/* === NAV === */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.main-nav a:hover { color: var(--vdv-accent); }
.main-nav a.active { color: var(--vdv-accent); }

.site-header.scrolled .main-nav a { color: var(--vdv-gray-600); }
.site-header.scrolled .main-nav a:hover { color: var(--vdv-primary); }
.site-header.scrolled .main-nav a.active { color: var(--vdv-primary); }

/* === HEADER CTA === */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-cta .btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
}

.btn-header-acceso {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(212,168,83,0.12);
    color: var(--vdv-accent);
    border: 1.5px solid rgba(212,168,83,0.35);
}

.btn-header-acceso:hover {
    background: rgba(212,168,83,0.25);
    color: var(--vdv-accent-light);
    border-color: var(--vdv-accent);
}

.site-header.scrolled .btn-header-acceso {
    background: transparent;
    color: var(--vdv-primary);
    border-color: var(--vdv-primary);
}

.site-header.scrolled .btn-header-acceso:hover {
    background: var(--vdv-primary);
    color: #fff;
}

/* === MOBILE TOGGLE === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header.scrolled .mobile-toggle span { background: var(--vdv-gray-700); }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.3" fill="white" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-carousel {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50px;
    color: var(--vdv-accent-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--vdv-white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--vdv-accent);
}

.hero-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--vdv-accent);
}
.hero-stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-top: 4px;
}

.hero-decorative {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
}
.hero-decorative::before {
    content: '';
    position: absolute;
    right: 10%;
    top: 10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(212,168,83,0.1);
    border-radius: 50%;
}
.hero-decorative::after {
    content: '';
    position: absolute;
    right: 5%;
    top: 20%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(212,168,83,0.08);
    border-radius: 50%;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
}
.section-sm { padding: 60px 0; }
.section-dark { background: var(--vdv-primary-dark) url('assets/images/dark-texture.jpg') center/cover; color: var(--vdv-white); }
.section-cream { background: var(--vdv-cream); }
.section-light { background: var(--vdv-gray-100); }

.section-header {
    max-width: 640px;
    margin-bottom: 60px;
}
.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--vdv-accent);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--vdv-accent);
}

.section-title {
    margin-bottom: 16px;
}
.section-dark .section-title { color: var(--vdv-white); }

.section-desc {
    color: var(--vdv-gray-500);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--vdv-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.05); }

.project-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--vdv-primary);
    color: var(--vdv-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-card-content {
    padding: 28px;
}

.project-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--vdv-gray-500);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.project-card h3 a { color: var(--vdv-primary-dark); }
.project-card h3 a:hover { color: var(--vdv-accent); }

.project-card-desc {
    color: var(--vdv-gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--vdv-gray-200);
}

.project-card-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vdv-primary);
}
.project-card-price small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--vdv-gray-500);
}

/* ===== PROPERTY CARDS ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.property-card {
    background: var(--vdv-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.property-card:hover .property-card-image img { transform: scale(1.05); }

.property-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-disponible { background: var(--vdv-success); color: #fff; }
.badge-reservada { background: var(--vdv-warning); color: #fff; }
.badge-vendida { background: var(--vdv-danger); color: #fff; }

.property-card-content { padding: 24px; }

.property-card-code {
    font-size: 0.75rem;
    color: var(--vdv-accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.property-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.property-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--vdv-gray-500);
}
.property-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vdv-primary);
    margin-bottom: 16px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    padding: 36px;
    background: var(--vdv-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.benefit-card:hover {
    border-bottom-color: var(--vdv-accent);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 27, 45, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--vdv-primary);
}

.benefit-card h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--vdv-gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 36px;
    background: var(--vdv-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--vdv-accent);
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.testimonial-text {
    color: var(--vdv-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vdv-primary);
    color: var(--vdv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-name {
    font-weight: 700;
    color: var(--vdv-gray-800);
    font-size: 0.95rem;
}
.testimonial-role {
    color: var(--vdv-gray-500);
    font-size: 0.82rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--vdv-gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--vdv-gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--vdv-gray-800);
    background: var(--vdv-white);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--vdv-primary);
    box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L1 3h10z" fill="%23737373"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-wrapper {
    background: var(--vdv-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    background: var(--vdv-white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vdv-gray-600);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--vdv-primary-dark) url('assets/images/dark-texture.jpg') center/cover;
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255,255,255,0.6);
}

.footer-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--vdv-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--vdv-accent); }

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.footer-contact-icon { color: var(--vdv-accent); }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--vdv-accent);
    color: var(--vdv-primary-dark);
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 130px 0 50px;
    background: var(--vdv-primary-dark) url('assets/images/dark-texture.jpg') center/cover;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--vdv-white), transparent);
}

.page-hero h1 {
    color: var(--vdv-white);
    margin-bottom: 12px;
}

.page-hero .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.page-hero .breadcrumb a { color: var(--vdv-accent-light); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}
.gallery-grid .gallery-main {
    grid-row: 1 / 3;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-grid img:hover { opacity: 0.9; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--vdv-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--vdv-gray-500);
    padding: 4px;
}

/* ===== THANK YOU PAGE ===== */
.thankyou-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.thankyou-icon {
    width: 80px;
    height: 80px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--vdv-success);
}

/* ===== DETAIL PAGE ===== */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.detail-sidebar-card {
    background: var(--vdv-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.detail-sidebar-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--vdv-primary);
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-actions .btn { width: 100%; justify-content: center; }

.detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 32px;
    background: var(--vdv-cream);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.spec-item {
    text-align: center;
}
.spec-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vdv-primary);
}
.spec-label {
    font-size: 0.8rem;
    color: var(--vdv-gray-500);
    margin-top: 4px;
}

/* ===== RELATED PROPERTIES ===== */
.related-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--vdv-gray-200);
}

/* ===== MAP SECTION ===== */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    background: var(--vdv-gray-200);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-decorative { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-info-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }

    .main-nav { display: none; }
    .header-cta { display: none; }
    .mobile-toggle { display: block; }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--vdv-white);
        padding: 16px 24px;
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        gap: 0;
    }
    .main-nav.active a { 
        color: var(--vdv-gray-700); 
        padding: 14px 16px;
        border-bottom: 1px solid var(--vdv-gray-100);
        font-size: 0.95rem;
    }
    .main-nav.active a:last-child { border-bottom: none; }
    .main-nav.active a.active { color: var(--vdv-primary); font-weight: 600; }
    /* Show WhatsApp & Acceso buttons inside mobile menu */
    .main-nav.active::after {
        content: '';
        display: block;
        padding-top: 8px;
        border-top: 1px solid var(--vdv-gray-200);
        margin-top: 8px;
    }

    .hero { padding-top: 120px; padding-bottom: 50px; min-height: 85vh; }
    .hero h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-content { padding: 0 8px; }
    .hero-text { font-size: 0.9rem; }
    .hero-stats { flex-direction: row; gap: 16px; flex-wrap: wrap; }
    .hero-stat-number { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .section-title { font-size: 1.5rem; }
    .section-desc { font-size: 0.9rem; }

    .projects-grid { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .testimonials-slider { grid-template-columns: 1fr; gap: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-grid .gallery-main { grid-row: auto; }

    .filters-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-wrapper { padding: 20px; }

    /* All 2-col or multi-col inline grid → 1 col on mobile */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns:1.5fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns:1.2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }
    [style*="grid-template-rows: 280px 280px"],
    [style*="grid-template-rows:280px 280px"] {
        grid-template-rows: auto !important;
    }
    [style*="grid-row: 1/3"],
    [style*="grid-row:1/3"] {
        grid-row: auto !important;
    }
}

@media (max-width: 480px) {
    .filters-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.5rem; }
    .hero-badge { font-size: 0.68rem; }
    .properties-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 1rem; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-accent { color: var(--vdv-accent); }
.text-primary { color: var(--vdv-primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
