/* =========================================================
   VARIABLES GLOBALES
   SOLO MODIFICA ESTO PARA CAMBIAR LA PALETA
========================================================= */
:root{
    --color-primary: #0f172a;
    --color-primary-soft: #1e293b;
    --color-secondary: #d4a017;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-success: #22c55e;
    --color-success-hover: #16a34a;
    --color-text: #0f172a;
    --color-text-soft: #475569;
    --color-white: #ffffff;
    --color-light: #f8fafc;
    --color-light-2: #eef2f7;
    --color-border: #dbe2ea;
    --color-overlay: rgba(15, 23, 42, 0.58);
    --color-overlay-soft: rgba(15, 23, 42, 0.35);
    --color-shadow: rgba(15, 23, 42, 0.15);

    --gradient-primary: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.86));
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55));

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, .08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, .12);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);

    --transition: all .28s ease;
}

/* =========================================================
   BASE
========================================================= */
html{
    scroll-behavior: smooth;
}

body{
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-light);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none !important;
    transition: var(--transition);
}

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

.section-block{
    padding: 80px 0;
}

.section-header{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.centered-header{
    justify-content: center;
    text-align: center;
}

.section-kicker{
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.section-title{
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.section-text{
    margin: 0 auto;
    color: var(--color-text-soft);
    max-width: 780px;
    line-height: 1.75;
}

.btn-block-custom{
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

/* =========================================================
   NAVBAR
========================================================= */
.main-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.custom-navbar{
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding-top: 12px;
    padding-bottom: 12px;
    transition: var(--transition);
}

.custom-navbar.navbar-scrolled{
    background: rgba(15, 23, 42, .95);
    box-shadow: var(--shadow-md);
}

.brand-logo{
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 18px;
    flex-shrink: 0;
}

.img-logo-navbar{
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.custom-navbar .navbar-nav{
    align-items: center;
}

.custom-navbar .nav-link{
    color: rgba(255,255,255,.88) !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 8px;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active{
    color: var(--color-white) !important;
}

.custom-navbar .nav-link.active::after,
.custom-navbar .nav-link:hover::after{
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -4px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 999px;
}

.nav-actions{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-primary-custom{
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: var(--color-white);
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: none;
}

.btn-primary-custom:hover{
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* =========================================================
   HERO PREMIUM
========================================================= */
.hero-section{
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    background:
        linear-gradient(90deg, rgba(8,15,30,.52), rgba(8,15,30,.20)),
        url('../images/hero/hero-1.png') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(15,23,42,.42));
    z-index: 1;
}

.hero-bottom-gradient{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.68));
    z-index: 1;
}

.hero-content{
    position: relative;
    z-index: 2;
}

.hero-premium-box{
    max-width: 900px;
    padding: 40px 44px;
    border-radius: 28px;
    background: rgba(14, 18, 28, 0.48);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.hero-kicker{
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.hero-title{
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
    max-width: 780px;
}

.hero-subtitle{
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,.88);
    margin-bottom: 24px;
    max-width: 760px;
}

.hero-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-badges span{
    background: rgba(255,255,255,.10);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,.12);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.hero-actions{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-whatsapp-hero{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: 14px;
    padding: 13px 22px;
    font-weight: 800;
    min-height: 54px;
}

.btn-whatsapp-hero:hover{
    background: var(--color-success-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-hero-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--color-white);
    border-radius: 14px;
    padding: 13px 22px;
    font-weight: 700;
    min-height: 54px;
    background: rgba(255,255,255,.05);
}

.btn-hero-outline:hover{
    color: var(--color-white);
    background: rgba(255,255,255,.10);
}

.icon-whatsapp-btn{
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
}

/* =========================================================
   RESUMEN
========================================================= */
.section-summary{
    background: var(--color-white);
    padding-top: 0;
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.summary-strip{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.summary-item{
    padding: 10px 8px;
    border-right: 1px solid var(--color-border);
}

.summary-item:last-child{
    border-right: none;
}

.summary-item small{
    display: block;
    color: var(--color-text-soft);
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-item strong{
    font-size: 1.08rem;
    color: var(--color-primary);
}

/* =========================================================
   GALERÍA
========================================================= */
.section-gallery{
    background: var(--color-white);
}

.gallery-grid{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 18px;
}

.gallery-card{
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: block;
    background: var(--color-light-2);
}

.gallery-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-card:hover img{
    transform: scale(1.05);
}

.gallery-large{
    grid-row: 1 / span 2;
}

/* =========================================================
   DESCRIPCIÓN
========================================================= */
.section-description{
    background: var(--color-light-2);
}

.description-box{
    background: var(--color-white);
    border-radius: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 38px;
}

.description-text{
    color: var(--color-text-soft);
    line-height: 1.85;
    margin-bottom: 16px;
}

.description-side-card{
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.side-price-label{
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.74);
    margin-bottom: 8px;
}

.side-price{
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.side-list{
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.side-list li{
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(255,255,255,.90);
}

.side-list li::before{
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: 900;
}

/* =========================================================
   ESPECIFICACIONES
========================================================= */
.section-specs{
    background: var(--color-white);
}

.specs-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.spec-card{
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.spec-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.spec-card h3{
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-soft);
    margin-bottom: 10px;
}

.spec-card p{
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.5;
}

/* =========================================================
   UBICACIÓN / MAPA
========================================================= */
.section-location{
    background: var(--color-light-2);
}

.location-layout{
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 22px;
    align-items: stretch;
}

.location-card{
    height: 100%;
}

.location-info-box{
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.location-info-box h3{
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.location-info-box p{
    color: var(--color-text-soft);
    line-height: 1.8;
    margin-bottom: 18px;
}

.location-list{
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.location-list li{
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--color-text-soft);
    line-height: 1.65;
}

.location-list li::before{
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--color-accent);
}

.location-map-box{
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    background: var(--color-white);
}

/* =========================================================
   CTA FINAL
========================================================= */
.section-cta{
    background: var(--color-primary);
}

.cta-box{
    text-align: center;
    padding: 54px 26px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
}

.cta-kicker{
    color: var(--color-secondary);
}

.cta-title{
    color: var(--color-white);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-text{
    color: rgba(255,255,255,.82);
    max-width: 760px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.cta-actions{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-cta-main{
    min-width: 260px;
}

/* =========================================================
   FOOTER
========================================================= */
.main-footer{
    background: var(--gradient-primary);
    color: rgba(255,255,255,.9);
    padding: 60px 0 22px;
}

.footer-brand{
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.img-logo-footer{
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.footer-text{
    color: rgba(255,255,255,.78);
    line-height: 1.8;
}

.footer-title{
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links{
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li{
    margin-bottom: 10px;
}

.footer-links a{
    color: rgba(255,255,255,.78);
}

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

.footer-social{
    display: flex;
    gap: 12px;
}

.footer-social a{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover{
    background: var(--color-secondary);
}

.icon-social-whatsapp{
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact-whatsapp-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.icon-whatsapp-inline{
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 24px;
    padding-top: 18px;
    color: rgba(255,255,255,.65);
    text-align: center;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 30px;
}

.lightbox-overlay.active{
    display: flex;
}

.lightbox-image{
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close{
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: var(--color-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover{
    background: rgba(255,255,255,.20);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px){
    .img-logo-navbar{
        height: 62px;
    }

    .hero-title{
        font-size: 2.5rem;
    }

    .summary-strip{
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-item:nth-child(2){
        border-right: none;
    }

    .specs-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .location-layout{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px){
    .custom-navbar{
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .img-logo-navbar{
        height: 54px;
    }

    .nav-actions{
        margin-top: 16px;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-section{
        min-height: auto;
        padding: 130px 0 70px;
    }

    .hero-premium-box{
        padding: 30px 24px;
        border-radius: 22px;
    }

    .hero-title{
        font-size: 2.15rem;
    }

    .gallery-grid{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 240px 240px;
    }

    .gallery-large{
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
    }

    .specs-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .description-box{
        padding: 28px;
    }

    .cta-title{
        font-size: 1.9rem;
    }
}

@media (max-width: 767px){
    .section-block{
        padding: 60px 0;
    }

    .custom-navbar .container-fluid{
        padding-left: 16px;
        padding-right: 16px;
    }

    .img-logo-navbar{
        height: 46px;
    }

    .custom-navbar .nav-link{
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-actions{
        gap: 10px;
    }

    .nav-actions .btn{
        width: 100%;
    }

    .hero-section{
        padding: 118px 0 58px;
    }

    .hero-title{
        font-size: 1.8rem;
    }

    .hero-subtitle{
        font-size: .98rem;
    }

    .hero-badges{
        gap: 10px;
    }

    .hero-badges span{
        width: 100%;
        border-radius: 14px;
    }

    .hero-actions{
        flex-direction: column;
    }

    .hero-actions .btn-whatsapp-hero,
    .hero-actions .btn-hero-outline{
        width: 100%;
    }

    .summary-strip{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-item{
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .summary-item:last-child{
        border-bottom: none;
    }

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

    .gallery-large{
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-card{
        min-height: 240px;
    }

    .specs-grid{
        grid-template-columns: 1fr;
    }

    .location-info-box{
        padding: 26px 22px;
    }

    .location-map-box{
        min-height: 380px;
    }

    .cta-box{
        padding: 38px 18px;
    }

    .cta-title{
        font-size: 1.6rem;
    }

    .img-logo-footer{
        height: 44px;
    }
}