:root {
    --primary: #f39c12; /* Orange Accent */
    --secondary: #6d214f; /* Purple Accent */
    --accent: #27ae60; /* Green Accent */
    --bg-light: #fcfaf5; /* Warm background */
    --bg-dark: #121212;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #555555;
    --border: #e2e2e2;
    --white: #ffffff;
    --whatsapp: #25D366; /* WhatsApp Green */
    --serif: 'Playfair Display', serif;
    --sans: 'Montserrat', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: var(--sans);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section-replica {
    padding: 8rem 0;
}

/* Navbar (Transparent -> Glass) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.4s ease;
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: 0.6rem 1.8rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Hero Split Layout V3 */
.hero-split {
    display: flex;
    height: 100vh;
    width: 100%;
}

.hero-left {
    flex: 1; /* 1/3 */
    background-color: var(--primary); /* Logo Orange */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    z-index: 10;
}

.logo-hero {
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: flex-start;
}

.logo-hero img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Stylized Text Blocks based on social media piece */
.stylized-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Espacio mínimo para que se vea integrado */
    margin-bottom: 2rem;
}

.text-block {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    width: fit-content;
    font-family: var(--sans);
    line-height: 0.85;
    letter-spacing: -2px;
    margin-bottom: -2px;
}

.purple-bg {
    background-color: var(--secondary);
    /* In the image, 'QUE' was purple bg, and the next line 'APARTAMENTOS' was orange text on purple bg */
}

.orange-text {
    color: var(--primary) !important;
}

.white-text {
    color: var(--white);
}

.no-bg {
    padding-left: 0;
}

.big-text {
    font-size: 6rem;
    letter-spacing: -4px;
    margin-top: 10px;
}

.vis-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 1.5rem;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: none;
    width: fit-content;
}

.vis-label {
    background: #7ab342; /* Green from the brand piece */
    color: white;
    padding: 0.4rem 1.8rem;
    font-weight: 900;
}

.vis-type {
    background: white;
    color: var(--secondary); /* Purple */
    padding: 0.4rem 1.8rem;
    font-weight: 900;
}

.hero-cta-v3 .btn-solid {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Hero Right: Slider */
.hero-right {
    flex: 2; /* 2/3 */
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Slightly larger for movement space */
    object-position: center;
    filter: brightness(0.9);
}

.slide.active img {
    animation: ken-burns-left 5s linear forwards;
}

@keyframes ken-burns-left {
    from { 
        transform: scale(1.1) translateX(15px); 
    }
    to { 
        transform: scale(1.1) translateX(-15px); 
    }
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 40px; /* Moved to left for better balance with badge */
    display: flex;
    gap: 15px;
    z-index: 20;
}

.subsidios-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 180px;
    height: 180px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    z-index: 100;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.15;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 4px dashed rgba(255,255,255,0.3);
    text-transform: uppercase;
}

.subsidios-badge span {
    letter-spacing: -0.2px;
}

.subsidios-badge i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subsidios-badge span {
    animation: none; /* Keep text readable */
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .subsidios-badge { width: 100px; height: 100px; font-size: 0.6rem; top: 15px; right: 15px; }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

@media (max-width: 1100px) {
    .text-block { font-size: 1.5rem; }
    .big-text { font-size: 3rem; }
}

/* Hero media query moved to end for consistency */

.info-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

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

.info-phrase {
    font-size: 1.8rem;
    color: var(--secondary);
    line-height: 1.3;
    text-transform: none; 
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2.2rem;
}

/* Handled by btn-whatsapp global class now */

@media (max-width: 768px) {
    .info-phrase { font-size: 1.2rem; }
    .btn-wa-info { font-size: 1rem; padding: 0.6rem 1.5rem; }
}

.info-item .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.info-item .value {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Reasons Section */
.reasons {
    background: #fdfdfd;
}

.reasons h2 {
    color: var(--secondary);
    font-size: 2.8rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.reason-card {
    background: white;
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.reason-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.reason-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--sans);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: -3px;
}

.reason-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--sans); /* Mix with sans for more 'impact' like brand */
    letter-spacing: -1px;
    line-height: 1.1;
}

.reason-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .reasons-grid { grid-template-columns: 1fr; }
}

/* Description (Keep lead for other uses) */
.description h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--secondary);
}

/* Amenities Replica (THE PHOTO SECTION) */
.amenities-replica {
    padding: 0;
}

.amenity-block {
    display: flex;
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.amenity-block.alt {
    flex-direction: row-reverse;
}

.amenity-img {
    flex: 1.5;
    height: 100%;
}

.amenity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenity-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem;
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}

/* (Removed overlap pseudo-element as requested) */

.amenity-text .tag {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.amenity-text h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.amenity-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.area-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.area-pill {
    background: transparent;
    border: none;
    color: var(--secondary);
    padding: 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--sans);
    letter-spacing: -0.5px;
    position: relative;
    border-right: 2px solid var(--border);
}

.area-pill:last-child {
    border-right: none;
}

.area-pill:hover {
    transform: none;
    background: transparent;
}

@media (max-width: 768px) {
    .area-pill { font-size: 1.1rem; padding: 0.8rem 1.5rem; }
}

/* Interiors Gallery */
.section-header-replica {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-replica h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 4rem 0 0px; /* Removido margen inferior */
}

.grid-item {
    position: relative;
    overflow: hidden;
    height: 400px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #f8f8f8;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item.principal {
    grid-column: span 2;
    height: 600px;
}

.grid-item.side {
    height: 600px;
}

/* Reducir espacio con banner */
.interiors {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .interiors .container { 
        padding: 0; 
        max-width: 100%; 
        width: 100%;
    }
    .interiors .section-header {
        padding: 0 2rem; /* Keep text centered with padding */
    }
    .modern-grid { 
        display: grid !important;
        grid-template-columns: 1fr !important; 
        grid-template-rows: auto !important;
        gap: 2rem !important; /* Separación clara entre fotos */
        padding-bottom: 2rem;
    }
    .grid-item, .grid-item.principal, .grid-item.side {
        height: 450px !important; /* Un poco más de altura */
        grid-column: span 1 !important;
        border-radius: 0; 
    }
}
/* Quote Card */
.quote-card {
    background: #fbf9f4; /* Warm white from brand pieces */
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    color: var(--secondary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.quote-content {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.quote-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-solid {
    background: var(--whatsapp);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    transition: transform 0.3s, background 0.3s;
}

.btn-solid:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-wa {
    background: var(--whatsapp);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    transition: transform 0.3s, background 0.3s;
}

.btn-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.quote-image {
    flex: 1;
}

.quote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote {
    padding-bottom: 2rem; /* Reducido de 8rem */
}

.map-section {
    padding-top: 2rem; /* Reducido de 8rem */
}

/* Map Section */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.map-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.map-text p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.link-arrow {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.map-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Sticky Bottom Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-text {
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.sticky-text span {
    font-weight: 700;
    color: var(--primary);
}

.btn-sticky {
    background: var(--whatsapp);
    color: var(--text-light);
    padding: 0.6rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 60px; /* Space for sticky bar */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 60px;
}

.main-footer p {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.socials a {
    color: white;
    margin-left: 2rem;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.socials a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Global WhatsApp Button Style */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--whatsapp);
    color: var(--white) !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--sans);
    letter-spacing: -0.5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* CTA Banner Section */
.section-cta-banner {
    background: var(--secondary);
    padding: 2.5rem 0;
    color: var(--white);
}

.section-cta-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.section-cta-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--sans);
    letter-spacing: -1.2px;
    white-space: normal; /* Permite que el texto baje si no cabe */
    line-height: 1.2;
}

@media (max-width: 992px) {
    .section-cta-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .section-cta-banner h2 { 
        font-size: 1.4rem; 
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Optimización Global Móvil */
@media (max-width: 992px) {
    .container { padding: 0 2rem; }
    
    /* Hero Split Mobile */
    .hero-split {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
    }
    
    .hero-left {
        padding: 5rem 2rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        order: 1 !important;
        height: auto !important;
    }
    
    .logo-hero {
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .logo-hero img { height: 90px; }

    .stylized-text {
        align-items: center;
        width: 100%;
        gap: 0.2rem;
    }

    .text-block {
        font-size: 2rem !important;
        padding: 0.5rem 1.2rem !important;
        margin-bottom: 0.2rem !important;
    }

    .big-text {
        font-size: 4rem !important;
        margin: 0.4rem 0 !important;
    }
    
    .vis-badge { margin: 1.5rem auto 0; }
    
    /* Carousel Móvil Forzado */
    .hero-right {
        display: block !important;
        order: 2 !important;
        height: 350px !important; /* Altura reducida para compactar navegación */
        width: 100% !important;
        position: relative !important;
        overflow: hidden;
        z-index: 50;
    }
    
    .slider-container, .slide {
        height: 350px !important;
        width: 100% !important;
    }

    .subsidios-badge {
        width: 110px !important;
        height: 110px !important;
        top: 20px !important;
        right: 20px !important;
        font-size: 0.55rem !important;
        z-index: 100;
    }

    .amenity-block { flex-direction: column !important; height: auto; }
    .amenity-text { padding: 4rem 2rem; }
    .amenity-block .amenity-text::after { display: none; }
    .modern-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .quote-card { flex-direction: column; }
    .map-layout { grid-template-columns: 1fr; }
}
.highlight-orange { color: var(--primary) !important; }
/* Popup Style */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 10000; opacity: 0; transition: opacity 0.5s ease; }
.popup-overlay.active { display: flex; opacity: 1; }
.popup-card {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('Apartamentos/Cocina.png');
    background-size: cover;
    background-position: center;
    width: 95%;
    max-width: 550px;
    border-radius: 24px;
    padding: 4rem 3rem;
    position: relative;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0,0,0,0.4);
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255,255,255,0.3);
}
.popup-overlay.active .popup-card { transform: translateY(0); }
.close-popup { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: #999; }
.popup-image img { height: 80px; margin-bottom: 2rem; }
.popup-info h3 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 1rem; color: var(--secondary); }
.popup-info p { font-size: 1.1rem; margin-bottom: 2.5rem; color: #666; }
.popup-info .btn-whatsapp { width: 100%; display: inline-block; }
@media (max-width: 480px) { .popup-card { padding: 2rem; } .popup-info h3 { font-size: 1.5rem; } }
