/* SLL 2.0 - COMPLETE STYLES */

/* ── WHATSAPP FLOTANTE (global, aplica en index y publicar) ──── */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #e1cf85;
    --gold-dark: #C5A059;
    --gold-glow: rgba(225, 207, 133, 0.55);
    --beige: #f5f0e1;
    --beige-light: #f9f5eb;
    --navy: #17164a;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #888;
    --font-brand: 'Cormorant Garamond', serif;
    --font-display: 'Outfit', sans-serif;
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--beige);
    overflow-x: hidden;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 420px;
    max-height: 600px;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.15));
}

.hero-logo {
    max-width: 420px;
    width: 70%;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5%;
    background: var(--beige-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 60;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-type {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--navy);
    transition: 0.3s;
}

.filter-type.active {
    font-weight: 600;
}

.filter-type:hover {
    color: var(--gold-dark);
}

.filter-divider {
    color: #ccc;
    font-size: 1.1rem;
    user-select: none;
}

.filter-cta {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.filter-cta:hover {
    color: var(--navy);
}

.filter-right {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* FILTER PILLS + DROPDOWNS */
.filter-pill-wrapper {
    position: relative;
}

.filter-pill {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.55rem 1.4rem;
    border: 1px solid #c8c0ae;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

.filter-pill:hover {
    border-color: var(--black);
    background: var(--white);
}

.filter-pill.active-filter {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 500;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--white);
    border: 1px solid #c8c0ae;
    border-radius: 14px;
    padding: 1rem;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.filter-dropdown.open {
    display: block;
}

.filter-dropdown label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-dropdown input[type="number"],
.filter-dropdown input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d5cfc3;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    outline: none;
    transition: 0.3s;
}

.filter-dropdown input[type="number"]:focus,
.filter-dropdown input[type="text"]:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.dropdown-apply {
    width: 100%;
    padding: 0.6rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 0.3rem;
}

.dropdown-apply:hover {
    background: var(--gold-dark);
}

.dropdown-option {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: 0.2s;
    color: var(--black);
}

.dropdown-option:hover {
    background: var(--beige);
}

.dropdown-option.selected {
    color: var(--gold-dark);
    font-weight: 600;
}

/* SORT BAR */
.bento-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.clear-filters-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 0.55rem 1.4rem;
    border: 1px solid #e0c0c0;
    background: #fff5f5;
    color: #c44;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
}

.clear-filters-btn:hover {
    background: #c44;
    color: var(--white);
}

.custom-select {
    position: relative;
    width: 300px;
    z-index: 50;
}

.select-trigger {
    padding: 0.75rem 1.3rem;
    border: 1px solid #c8c0ae;
    border-radius: 50px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: 0.3s;
    color: var(--navy);
}

.select-trigger:hover {
    border-color: var(--black);
}

.select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #c8c0ae;
    border-radius: 14px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.select-options.open {
    display: block;
}

.option {
    padding: 0.75rem 1.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.option:hover {
    background: var(--beige);
}

.option.selected {
    font-weight: 600;
    color: var(--gold-dark);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: 1rem;
}

.no-results .clear-filters-btn {
    margin-top: 1rem;
}

/* BENTO GRID */
.grid-wrapper {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
}

.bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: 280px 240px 260px;
    gap: 14px;
    grid-template-areas: "pen pen pen pen pen img img lft lft lft" "ret ret ret flt flt flt flt lft lft lft" "est est est vis vis vis vil vil vil vil";
}

.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    box-shadow: 0 25px 50px -12px rgba(23, 22, 74, 0.25);
    transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(23, 22, 74, 0.4);
}

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

.bento-card:hover img {
    transform: scale(1.04);
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(to top, rgba(23, 22, 74, 0.9) 0%, rgba(23, 22, 74, 0.5) 55%, transparent 100%);
    color: var(--white);
}

.card-label h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.card-price {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.card-specs {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.card-pen {
    grid-area: pen;
}

.card-img {
    grid-area: img;
}

.card-lft {
    grid-area: lft;
}

.card-ret {
    grid-area: ret;
}

.card-flt {
    grid-area: flt;
}

.card-est {
    grid-area: est;
}

.card-vis {
    grid-area: vis;
}

.card-vil {
    grid-area: vil;
}

/* PAGINATION */
.pagination-side {
    width: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.page-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #c8c0ae;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.page-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.page-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.page-indicator {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
    text-align: center;
}

/* MAP */
.map-section {
    padding: 2rem 5% 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FOOTER */
.site-footer {
    background: #0d0c2e;
    padding: 2.5rem 5%;
    margin-top: 1rem;
    box-shadow: 0 -4px 24px rgba(23, 22, 74, 0.18);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

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

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

.footer-cta {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s;
}

.footer-cta:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 207, 133, 0.3);
}

.footer-right {
    text-align: right;
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-phone {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.footer-email {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.footer-policy {
    font-size: 0.72rem;
    color: var(--gold);
    text-decoration: underline;
    transition: 0.3s;
}

.footer-policy:hover {
    color: var(--white);
}

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

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

.modal-form {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 560px;
    width: 92%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray);
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--black);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c8c0ae;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--gold-dark);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--gold-dark);
    border-radius: 50%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-input {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid #d5cfc3;
    border-radius: 10px;
    background: var(--beige-light);
    color: var(--black);
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-input::placeholder {
    color: #aaa;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c8c0ae;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label a {
    color: var(--gold-dark);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    transition: 0.4s;
}

.submit-btn:hover {
    background: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* NEW PROJECTS CAROUSEL */
.new-projects {
    padding: 1.5rem 0 2rem;
    overflow: hidden;
}

.np-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    margin-bottom: 1.2rem;
}

.np-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.np-subtitle {
    display: none;
}

.np-arrows {
    display: flex;
    gap: 0.5rem;
}

.np-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #c8c0ae;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.np-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.np-track {
    display: flex;
    gap: 1.8rem;
    padding: 0.5rem 5% 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    perspective: 1200px;
}

.np-track::-webkit-scrollbar {
    display: none;
}

.np-card {
    flex: 0 0 300px;
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0c2e;
    scroll-snap-align: start;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 24px -6px rgba(23, 22, 74, 0.12);
}

.np-card:hover {
    will-change: transform;
    transform: perspective(1000px) rotateX(2deg) rotateY(-1deg) translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px -8px rgba(197, 160, 89, 0.3),
        0 8px 16px -4px rgba(23, 22, 74, 0.1);
}

.np-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.np-card-info {
    padding: 1rem 1.2rem 1.2rem;
}

.np-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.np-card-location {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.np-card-price {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #e1cf85;
}

.np-card {
    text-decoration: none;
    color: inherit;
}

.np-card--soon {
    cursor: default;
}

.np-soon-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(225, 207, 133, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.4rem;
    width: 100%;
}

/* LEAFLET POPUP DARK OVERRIDE */
.ficha-popup .leaflet-popup-content-wrapper {
    background: #0d0c2e;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    padding: 0;
}

.ficha-popup .leaflet-popup-content {
    margin: 8px;
}

.ficha-popup .leaflet-popup-tip {
    background: #0d0c2e;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 260px 240px 240px 260px;
        grid-template-areas: "pen pen pen pen img img" "ret ret ret flt flt flt" "lft lft lft lft lft lft" "est est vis vis vil vil";
    }
}

@media (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 280px;
    }

    .hero-logo {
        max-width: 280px;
        width: 60%;
    }

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 4%;
    }

    .filter-left {
        justify-content: center;
    }

    .filter-right {
        justify-content: center;
    }

    .filter-dropdown {
        left: 0;
        transform: none;
        min-width: 180px;
    }

    .grid-wrapper {
        flex-direction: column;
    }

    .pagination-side {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 220px);
        grid-template-areas: "pen pen" "img lft" "ret flt" "est vil";
    }

    .card-vis {
        display: none;
    }

    .sort-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-select {
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-left {
        align-items: center;
    }

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

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

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

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

    .np-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .np-card-img {
        height: 180px;
    }
}