/* ============================================
   MEDITERRANEAN REAL ESTATE — CSS COMPLETO
   ============================================ */

:root {
    --c-ivory: #F8F6F2;
    --c-sand: #EAE6DF;
    --c-sky-blue: #D8E4E8;
    --c-terracotta: #C86548;
    --c-terracotta-hover: #A84F35;
    --c-olive-dark: #2F332C;
    --c-charcoal: #1C1D1B;
    --c-white: #FFFFFF;
    --c-gold: #9F8E73;

    --f-heading: 'Cormorant Garamond', Georgia, serif;
    --f-body: 'Montserrat', sans-serif;

    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: auto; }
body {
    background: var(--c-ivory);
    color: var(--c-charcoal);
    font-family: var(--f-body);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 400; }
em { font-style: italic; }
.text-center { text-align: center; }
.block { display: block; }
.w-100 { width: 100%; }
.p-0 { padding: 0 !important; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 6vw; }

/* === LOADER === */
.loader {
    position: fixed; inset: 0;
    background: var(--c-ivory);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s var(--ease-in-out), visibility 0.8s;
}
.loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
/* ---- IMAGE LOGO ---- */
.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    transition: all 0.5s;
}
/* Nav Logo (default: white on dark bg) */
.brand-logo--nav {
    height: 150px;
    filter: brightness(0) invert(1);
}
/* Nav Logo Scrolled (black on light bg) */
.navbar.scrolled .brand-logo--nav {
    height: 120px;
    filter: brightness(0);
}
/* Loader Logo (black on ivory bg) */
.brand-logo--loader {
    height: 210px;
    filter: brightness(0);
}
@keyframes pulse-logo {
    0%, 100% { transform: scale(0.97); opacity: 0.6; }
    50% { transform: scale(1); opacity: 1; }
}

/* === FULLSCREEN MENU === */
.fullscreen-menu {
    position: fixed; inset: 0;
    z-index: 3000;
    background: rgba(216, 228, 232, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-expo), visibility 0.5s;
}
.fullscreen-menu.open { opacity: 1; visibility: visible; }

.menu-close-btn {
    position: absolute;
    top: 30px; right: 6vw;
    background: none; border: none;
    width: 44px; height: 44px;
    cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
}
.perk-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-terracotta);
    flex-shrink: 0;
}
.menu-close-btn span {
    display: block;
    width: 28px; height: 1.5px;
    background: var(--c-charcoal);
    transition: transform 0.3s;
}
.menu-close-btn span:first-child { transform: translateY(4.75px) rotate(45deg); }
.menu-close-btn span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

.menu-nav-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 32px;
}
.menu-nav-item {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--c-charcoal);
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo), color 0.3s;
}
.fullscreen-menu.open .menu-nav-item {
    opacity: 1; transform: translateY(0);
}
.fullscreen-menu.open .menu-nav-item:nth-child(1) { transition-delay: 0.08s; }
.fullscreen-menu.open .menu-nav-item:nth-child(2) { transition-delay: 0.13s; }
.fullscreen-menu.open .menu-nav-item:nth-child(3) { transition-delay: 0.18s; }
.fullscreen-menu.open .menu-nav-item:nth-child(4) { transition-delay: 0.23s; }
.menu-nav-item:hover { color: var(--c-terracotta); }
.menu-nav-item.cta-item {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-family: var(--f-body);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--c-charcoal);
    padding: 14px 40px;
    margin-top: 16px;
}
.menu-nav-item.cta-item:hover {
    background: var(--c-charcoal);
    color: var(--c-white);
}
.menu-footer-info {
    position: absolute; bottom: 40px;
    display: flex; gap: 40px;
    font-size: 0.75rem; letter-spacing: 0.1em;
    color: rgba(28,29,27,0.5);
    opacity: 0;
    transition: opacity 0.5s 0.4s;
}
.fullscreen-menu.open .menu-footer-info { opacity: 1; }
.menu-footer-info a { color: inherit; text-decoration: none; }
.menu-footer-info a:hover { color: var(--c-terracotta); }

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 28px 0;
    z-index: 1000;
    transition: all 0.5s var(--ease-expo);
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(248, 246, 242, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 6vw;
    display: flex; align-items: center; justify-content: space-between;
}

/* SVG LOGO (removed - now using CSS logo-mark) */
/* Remove link styling from nav brand */
.nav-brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex; align-items: center; gap: 40px;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--c-charcoal); }
.nav-links a:hover { opacity: 0.55; }

.btn-primary-sm {
    border: 1px solid rgba(255,255,255,0.45);
    padding: 11px 26px;
    border-radius: 1px;
}
.navbar.scrolled .btn-primary-sm {
    border-color: rgba(28,29,27,0.3);
    color: var(--c-charcoal);
}
.btn-primary-sm:hover {
    background: rgba(255,255,255,0.15);
}
.navbar.scrolled .btn-primary-sm:hover {
    background: var(--c-charcoal);
    color: var(--c-white) !important;
    border-color: var(--c-charcoal);
}

/* Hamburger button */
.menu-btn {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}
.hamburger-line {
    display: block;
    width: 26px; height: 1.5px;
    background: var(--c-white);
    transition: background 0.5s;
}
.navbar.scrolled .hamburger-line { background: var(--c-charcoal); }

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    background: var(--c-terracotta);
    color: var(--c-white);
    padding: 17px 44px;
    font-family: var(--f-body);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-expo);
}
.btn-primary:hover {
    background: var(--c-terracotta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(200, 101, 72, 0.22);
}

/* === ANIMATIONS === */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo);
}
.reveal-image .img-scale { transform: scale(1.08); transition: transform 2s var(--ease-expo); }
.reveal-image.active .img-scale { transform: scale(1); }
.active { opacity: 1 !important; transform: translate(0,0) !important; }

/* === HERO === */
.hero {
    position: relative;
    height: 100vh; min-height: 820px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: -5%; left: 0;
    width: 100%; height: 110%;
    background-size: cover; background-position: center;
    z-index: 1;
}
.hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(28,29,27,0.35) 0%, rgba(28,29,27,0.65) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 10;
    text-align: center;
    max-width: 1000px; padding: 0 20px;
    color: var(--c-white);
    margin-top: 140px;
}
.hero-top-accent {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 36px;
    opacity: 0; transform: translateY(18px);
    transition: all 1s var(--ease-expo);
}
.hero-top-accent.is-visible { opacity: 0.85; transform: translateY(0); }

.hero-title {
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.95;
    margin-bottom: 36px;
    color: var(--c-white);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 2px; }
.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-expo);
}
.hero-title .word.is-visible { transform: translateY(0); }

.hero-bottom {
    opacity: 0; transform: translateY(28px);
    transition: all 1.2s var(--ease-expo) 0.4s;
}
.hero-bottom.is-visible { opacity: 1; transform: translateY(0); }
.hero-desc {
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 36px;
    opacity: 0.88;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute; bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.7);
}
.scroll-line {
    width: 1px; height: 50px;
    background: rgba(255,255,255,0.25);
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute; top: -50px; left: 0;
    width: 1px; height: 50px;
    background: #fff;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown { 0% { top: -50px; } 100% { top: 50px; } }
.scroll-indicator span { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* === SECTIONS COMMON === */
.section { padding: 150px 0; }
.section-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-terracotta);
    margin-bottom: 22px;
    display: inline-block;
    font-weight: 500;
}
.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 36px;
    line-height: 1.1;
}
.body-text {
    font-size: 1.05rem;
    color: var(--c-olive-dark);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.8;
}

/* === MODEL SECTION === */
.model-section {
    background: var(--c-ivory);
    position: relative;
    overflow: hidden;
}
/* Olive branch decorative watermark */
.section-olive {
    position: absolute;
    width: 600px;
    height: 600px;
    object-fit: contain;
    pointer-events: none;
    /* Pure white bg + black lines: darken blend makes white disappear on light sections */
    mix-blend-mode: darken;
    opacity: 0.09;
    z-index: 0;
}
.section-olive--right {
    right: -120px;
    bottom: -80px;
    transform: rotate(12deg);
}
.section-olive--left {
    left: -100px;
    top: -60px;
    transform: rotate(-15deg) scaleX(-1);
}
/* Ensure content sits above the decoration */
.model-section .container,
.process-section .container { position: relative; z-index: 1; }
.model-grid {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: 100px; align-items: center;
}
.comparison-box {
    display: flex;
    background: var(--c-white);
    padding: 50px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.04);
}
.comp-col { flex: 1; }
.comp-col.traditional {
    padding-right: 40px;
    border-right: 1px solid var(--c-sand);
    opacity: 0.45;
}
.comp-col.mediterranean { padding-left: 40px; }
.comp-col h4 {
    font-family: var(--f-body);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 500;
}
.mediterranean h4 { color: var(--c-terracotta); }
.comp-col ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.comp-col li { font-size: 0.92rem; display: flex; gap: 12px; align-items: flex-start; }
.comp-col li::before { content: '—'; flex-shrink: 0; }
.mediterranean li { color: var(--c-charcoal); }

/* === PROCESS SECTION === */
.light-blue-bg {
    background: var(--c-sky-blue);
    position: relative;
    overflow: hidden;
}
.process-stacked-list {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}
.process-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: center;
}
.process-row:first-child {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.p-num {
    font-family: var(--f-heading);
    font-size: 5rem;
    color: var(--c-terracotta);
    line-height: 1;
    font-variant-numeric: lining-nums;
}
.p-content h3 { font-size: 1.8rem; margin-bottom: 12px; }
.p-content p { font-size: 1.05rem; opacity: 0.75; line-height: 1.6; max-width: 600px; }

/* === EDITORIAL SECTION === */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.img-wrapper { overflow: hidden; height: 100%; min-height: 680px; }
.img-scale { width: 100%; height: 100%; background-size: cover; background-position: center; }
.editorial-content {
    padding: 120px 8vw;
    background: var(--c-charcoal);
    color: var(--c-ivory);
    display: flex; flex-direction: column; justify-content: center;
}
.editorial-accent-line {
    width: min(420px, 100%);
    height: 3px;
    background: linear-gradient(90deg, var(--c-gold), transparent);
    margin-bottom: 50px;
}
.editorial-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--c-ivory);
    margin-bottom: 28px;
    line-height: 1.15;
}
.editorial-content .body-text {
    color: rgba(255,255,255,0.62);
    max-width: 520px;
    font-size: 1.02rem;
}
.trust-marks { display: flex; gap: 36px; margin-top: 55px; flex-wrap: wrap; }
.mark {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 14px;
    color: rgba(255,255,255,0.65);
}

/* === SITUATIONS SECTION === */
.situations-section { background: var(--c-ivory); }
.situation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sit-card {
    background: var(--c-white);
    padding: 55px 38px;
    border: 1px solid var(--c-sand);
    border-top: 4px solid var(--c-sand);
    transition: transform 0.5s var(--ease-expo), box-shadow 0.5s, border-top-color 0.3s;
    position: relative; overflow: hidden;
}
.sit-card:nth-child(1) { border-top-color: var(--c-terracotta); }
.sit-card:nth-child(2) { border-top-color: #7A9E9F; } /* teal mediterráneo */
.sit-card:nth-child(3) { border-top-color: #C4A265; } /* dorado cálido */
.sit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.07);
}
.sit-number {
    font-family: var(--f-heading);
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 300;
}
.sit-card:nth-child(1) .sit-number { color: var(--c-terracotta); }
.sit-card:nth-child(2) .sit-number { color: #7A9E9F; }
.sit-card:nth-child(3) .sit-number { color: #C4A265; }
.sit-card h4 {
    font-family: var(--f-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.35;
    color: var(--c-charcoal);
}
.sit-card p { font-size: 0.92rem; color: var(--c-olive-dark); line-height: 1.7; opacity: 0.8; }

/* === CTA SECTION === */
.cta-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    min-height: 860px;
}
.cta-bg {
    position: absolute; top: -5%; left: 0;
    width: 100%; height: 110%;
    background-size: cover; background-position: center;
    z-index: 1;
}
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(28,29,27,0.92) 0%, rgba(28,29,27,0.55) 100%);
    z-index: 2;
}
.cta-container {
    position: relative; z-index: 10;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.cta-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    color: var(--c-white);
    line-height: 1.1;
    margin-bottom: 50px;
}
.cta-perks { display: flex; flex-direction: column; gap: 18px; }
.perk {
    display: flex; align-items: center; gap: 16px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.perk-icon { color: var(--c-terracotta); font-size: 0.5rem; }

.cta-form-wrapper {
    background: var(--c-white);
    padding: 56px;
    border-radius: 2px;
}
.cta-form-wrapper h3 { font-size: 2rem; margin-bottom: 32px; }
.custom-form .form-group { margin-bottom: 22px; }
.custom-form .form-group label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-olive-dark);
    margin-bottom: 8px;
    font-weight: 500;
}
.custom-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.custom-form input {
    width: 100%; padding: 12px 0;
    border: none; border-bottom: 1px solid var(--c-sand);
    font-family: var(--f-body);
    font-size: 0.95rem;
    background: transparent;
    transition: border-color 0.3s;
    color: var(--c-charcoal);
}
.custom-form input:focus { outline: none; border-bottom-color: var(--c-terracotta); }
.custom-form input::placeholder { color: rgba(28,29,27,0.35); }
.form-disclaimer {
    font-size: 0.72rem;
    color: rgba(28,29,27,0.45);
    margin-top: 18px;
    text-align: center;
}

/* === FOOTER === */
.footer { background: var(--c-charcoal); color: var(--c-ivory); padding: 90px 0 0; }
.footer-inner { }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0;
}
/* Footer Logo (white on dark bg) */
.brand-logo--footer {
    height: 180px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}
.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    max-width: 300px;
    line-height: 1.7;
}
.footer-col h4 {
    font-family: var(--f-body);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: var(--c-gold);
    font-weight: 500;
}
.footer-link, .footer-col p {
    display: block;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 16px;
    transition: color 0.3s;
    font-weight: 300;
    line-height: 1.5;
}
.footer-link:hover { color: var(--c-terracotta); }
.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.trust-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 40px;
}
.mark {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    position: relative;
    padding-bottom: 6px;
}
.mark::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 1px;
    background: var(--c-terracotta);
    opacity: 0.6;
}
/* ============================================
   RESPONSIVE
   ============================================ */

/* Show hamburger on tablet and below */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
}

@media (max-width: 1024px) {
    .model-grid { grid-template-columns: 1fr; gap: 50px; }
    .editorial-grid { grid-template-columns: 1fr; }
    .img-wrapper { min-height: 400px; }
    .cta-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .cta-title { font-size: clamp(2rem, 6vw, 3.5rem); }
    .cta-perks { align-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 90px 0; }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .section-title { font-size: clamp(1.8rem, 6.5vw, 2.8rem); }
    .process-row { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
    .p-num { font-size: 4rem; margin-bottom: 0; }
    .situation-grid { grid-template-columns: 1fr; }
    .comparison-box { flex-direction: column; padding: 32px; }
    .comp-col.traditional {
        padding-right: 0; border-right: none;
        border-bottom: 1px solid var(--c-sand);
        padding-bottom: 28px; margin-bottom: 28px;
    }
    .comp-col.mediterranean { padding-left: 0; }
    .editorial-content { padding: 60px 6vw; }
    .editorial-title { font-size: clamp(2rem, 7vw, 3rem); }
    .cta-form-wrapper { padding: 32px 24px; }
    .custom-form .row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-col.brand-col { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 32px; }
    .menu-footer-info { flex-direction: column; gap: 12px; text-align: center; }
    .trust-marks { flex-direction: row; gap: 20px; }
    .sit-card { padding: 40px 28px; }
}

@media (max-width: 480px) {
    .cta-container { padding: 0 4vw; }
    .hero-content { padding: 0 20px; }
    .brand-logo--nav { height: 100px; }
    .navbar.scrolled .brand-logo--nav { height: 80px; }
    .situation-grid { gap: 16px; }
    .sit-card { padding: 32px 24px; }
}
