﻿/* 
   GUARIDA X - Design System 
   Style: Architectural, Minimalist, Sophisticated
*/

/* --- Local Font Optimization --- */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --color-bg: #F8FAFC;
    --color-bg-alt: #FFFFFF;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;

    /* Accents */
    --color-concrete: #94A3B8;
    --color-dark-concrete: #334155;
    --color-wood: #D4A373;
    --color-wood-dark: #B88A5E;
    --color-greenery: #4A5D23;

    --color-primary: var(--color-text-main);
    --color-primary-hover: #1E293B;
    --color-accent: var(--color-wood);
    --color-accent-hover: var(--color-wood-dark);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --section-padding: 7rem 2rem;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-pill: 50px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows - Premium Feel */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0,0,0,0.05);

    /* Z-index */
    --z-loader: 1000;
    --z-sticky-cta: 950;
    --z-navbar: 900;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem 1.25rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

p {
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg-alt);
    z-index: var(--z-loader);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.loader.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.loader-bar {
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: loadingBar 1.5s ease-in-out forwards;
}

@keyframes loadingBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Base Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    z-index: var(--z-navbar);
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff; /* Arranca blanco brillante para contraste con foto oscura */
    white-space: nowrap;
    transition: color 0.4s ease;
}

.navbar.scrolled .logo {
    color: var(--color-text-main); /* Cambia a negro brillante con navbar blanco */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: #fff; /* Blanco en el header transparente */
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-muted); /* Vuelve al color oscuro al scrollear */
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: #fff; 
}

.nav-links a:hover::after {
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled .scroll-progress-container {
    opacity: 1; /* Solo aparece cuando el navbar es blanco */
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent);
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-text-main);
    color: #fff;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-sm);
    text-align: center;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #fff;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--border-radius-pill);
    text-align: center;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Reveal classes for intersection observer */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-text-main);
    color: #fff;
}

.bg-dark h2, .bg-dark p {
    color: #fff;
}

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

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    /* Background properties moved to .hero-layer */
}

.hero-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-layer.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1; /* Ensures gradient is above the changing backgrounds */
}

/* Typewriter specific */
#heroTitle {
    min-height: 130px; /* Prevents layout jump when text is deleted */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.typewriter-cursor {
    font-weight: 300;
    color: var(--color-accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    #heroTitle {
        min-height: 120px;
    }
    .hero-layer {
        background-attachment: scroll; /* Fix iOS sticky background bug */
    }
}

@media (max-width: 480px) {
    #heroTitle {
        min-height: 150px;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Investment Section */
.investment-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.investment-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.investment-text p {
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 2.5rem;
}

.features-list li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: var(--color-accent);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.investment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-bg-alt);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Location Section */
.location {
    background: var(--color-bg-alt);
}

.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.custom-map-wrapper {
    background: #e2e8e5; /* specific bg for map */
    padding: 0;
    border: 8px solid #fff; /* Frame effect */
    border-radius: var(--border-radius);
}

.map-image-custom {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.map-container:hover .map-image-custom {
    transform: scale(1.02);
}

/* Interiors Gallery */
.interiors {
    background-color: var(--color-bg);
    overflow: hidden;
}

.gallery-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 1.25rem 3rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    margin-bottom: 2rem;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    flex: 0 0 85%;
    max-width: 600px;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius);
    scroll-snap-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

/* Scroll Hint Indicator */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.scroll-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: slide-right-left 1.5s ease-in-out infinite alternate;
}

@keyframes slide-right-left {
    0% { transform: translateX(-4px); }
    100% { transform: translateX(8px); }
}

@media (min-width: 768px) {
    .gallery-carousel {
        padding: 1rem 2rem 2rem 2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--color-accent) rgba(0,0,0,0.05);
    }
    
    .gallery-carousel::-webkit-scrollbar {
        display: block;
        height: 10px;
    }
    
    .gallery-carousel::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
    }
    
    .gallery-carousel::-webkit-scrollbar-thumb {
        background-color: var(--color-accent);
        border-radius: 10px;
    }
    
    .gallery-img {
        flex: 0 0 42%; /* Makes exactly 2 images show fully, and peeks the 3rd to strongly imply scroll */
        max-width: 800px;
        height: 550px;
    }
}

/* Specs Section */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.spec-card {
    padding: 2.5rem 2rem;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 163, 115, 0.3);
    background: #fff;
}

.spec-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Typologies Section */
.typologies {
    background: var(--color-bg);
}

.typology-showcase {
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
}

.typology-nav {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
}
.typology-nav::-webkit-scrollbar { display: none; }

.type-btn {
    flex: 1 0 auto;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    min-width: 130px;
    position: relative;
}

.type-btn.active,
.type-btn:hover {
    color: var(--color-text-main);
    background: rgba(0,0,0,0.01);
}

.type-btn.active {
    border-bottom-color: var(--color-accent);
}

.type-btn .size {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 0.4rem;
    color: var(--color-text-muted);
}

.typology-viewer {
    padding: 4rem 2rem;
    text-align: center;
    background: #FAFAFA;
}

.floorplan-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1; /* Safety guard */
}

.floorplan-img:hover {
    transform: scale(1.02);
}

/* Lead Magnet Section */
.lead-magnet {
    position: relative;
    overflow: hidden;
}

.lead-magnet .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lead-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.lead-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

.lead-form-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1.2rem 1rem;
    border: 2px solid #F1F5F9;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #F8FAFC;
    color: var(--color-text-main);
}

.form-group input::placeholder {
    color: #94A3B8;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.15);
}

/* Footer */
.footer {
    background-color: var(--color-text-main);
    color: #fff;
    padding: 5rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Mobile Sticky CTA - Enhanced */
.mobile-sticky-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    width: calc(100% - 2.5rem);
    max-width: 400px;
    z-index: var(--z-sticky-cta);
    pointer-events: none; /* Let container pass clicks while hidden */
    
    /* Animation base */
    opacity: 0;
    transform: translate(-50%, 150%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

.mobile-sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mobile-sticky-cta .btn-primary {
    pointer-events: auto;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-float);
    font-size: 1rem;
    padding: 1.1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

/* Advanced Responsive Adjustments */
@media (max-width: 992px) {
    .investment-grid,
    .lead-magnet .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        /* Extra padding for float CTA */
        padding-bottom: 80px;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        padding: 0;
    }

    .hero {
        background-attachment: scroll; /* Fix buggy fixed background on iOS Safari */
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .investment-text h2 {
        font-size: 2.2rem;
    }

    .typology-viewer {
        padding: 2.5rem 1rem;
    }
    
    .type-btn {
        padding: 1rem 0.5rem;
        min-width: 100px;
        font-size: 1rem;
    }
    
    /* Stats mobile layout */
    .stat-card {
        padding: 1.5rem 1rem;
    }
    .stat-number {
        font-size: 3rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .gallery-img {
        height: 400px;
    }
    
    .lead-content h2 {
        font-size: 2.5rem;
    }
    
    .lead-form-container {
        padding: 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
}

/* ------------------------------------- */
/* Neighborhood Section (Nueva Cordoba)  */
/* ------------------------------------- */
.neighborhood {
    position: relative;
    padding: 8rem 2rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    align-items: center;
}

.neighborhood::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.neighborhood .container {
    position: relative;
    z-index: 10;
}

.neighborhood-content {
    max-width: 650px;
}

.neighborhood-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.neighborhood-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

@media (max-width: 768px) {
    .neighborhood {
        padding: 6rem 1.25rem;
        background-attachment: scroll; /* Fix buggy sticky backgrounds on iOS Safari */
    }
    .neighborhood::after {
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 100%);
    }
    .neighborhood-content h2 {
        font-size: 2.5rem;
    }
    .neighborhood-content p {
        font-size: 1.15rem;
    }
}

/* ------------------------------------- */
/* Universal Image Lightbox Modal        */
/* ------------------------------------- */
.clickable {
    cursor: zoom-in;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clickable:hover {
    transform: scale(1.03);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling inside modal wrapper */
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.open {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.image-modal .modal-content {
    position: relative;
    width: 95%;
    max-width: 1600px;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomModalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#fullscreenModalImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    background: #ccd5d5;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 4rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .close-modal {
        top: 1rem;
        right: 1.5rem;
        font-size: 3.5rem;
    }
}
