:root {
    --blue: #002b70;
    --blue-dark: #001d4d;
    --blue-light: #0d4fa8;
    --yellow: #f5c400;
    --white: #ffffff;
    --black: #111111;
    --text: #222222;
    --text-light: #6b7280;
    --background: #f5f7fa;
    --border: #e5e7eb;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    --radius: 16px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;

    /* MISMA TRANSPARENCIA DEL INDEX */
    background: rgba(0, 43, 112, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    transition: 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 400px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--yellow);
}

.nav-button {
    background: var(--yellow);
    color: var(--blue) !important;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800 !important;
}

.nav-button:hover {
    background: #ffd52e;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 21px;
    cursor: pointer;
}


/* =========================================================
   HERO PROPIEDADES
   MISMA ALTURA + IMAGEN + TRANSPARENCIA DEL INDEX
========================================================= */

.properties-hero {
    position: relative;

    /* MISMA ALTURA DEL HERO DEL INDEX */
    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    /* IMAGEN DEL INDEX */
    background-image: url("imagenes/banner1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Permite trabajar correctamente con las capas */
    isolation: isolate;
}


/* CAPA OSCURA TRANSPARENTE */

.properties-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 43, 112, 0.55),
            rgba(0, 0, 0, 0.10)
        ),
        rgba(0, 0, 0, 0.60);

    z-index: -1;
}


/* EFECTO RADIAL / TRANSPARENTE */

.properties-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 35%
        );

    z-index: -1;
    pointer-events: none;
}


/* CONTENIDO HERO */

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

    max-width: 720px;

    padding: 90px 0;

    color: var(--white);
}


/* ETIQUETA */

.section-tag {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.properties-hero .section-tag {
    color: var(--yellow);
}


/* TITULO */

.properties-hero h1 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.05;

    font-weight: 800;

    margin: 18px 0;
}

.properties-hero h1 strong {
    font-weight: 800;
}


/* TEXTO */

.properties-hero p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.90);

    font-size: 18px;

    margin-bottom: 30px;
}


/* =========================================================
   PÁGINA
========================================================= */

.properties-page {
    padding: 70px 0 90px;
}


/* =========================================================
   BUSCADOR
   FONDO AMARILLO
========================================================= */

.catalog-search {
    background: var(--yellow);

    border-radius: var(--radius);

    padding: 32px;

    box-shadow: var(--shadow);

    margin-bottom: 60px;
}

.catalog-search-header {
    margin-bottom: 25px;
}

.catalog-search-header .section-tag {
    margin-bottom: 5px;
}

.catalog-search-header h2 {
    font-size: 30px;
    margin-bottom: 5px;
}

.catalog-search-header p {
    color: var(--text-light);
}

.catalog-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;

    gap: 16px;

    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.search-field label {
    font-size: 13px;
    font-weight: 700;
}

.search-field select {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);

    color: var(--text);

    outline: none;

    cursor: pointer;
}

.search-field select:focus {
    border-color: var(--blue);
}

.search-button {
    height: 50px;

    border: 0;
    border-radius: 8px;

    padding: 0 24px;

    background: var(--blue);

    color: var(--white);

    font-weight: 800;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    transition: 0.25s ease;
}

.search-button:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}


/* =========================================================
   CABECERA CATÁLOGO
========================================================= */

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 28px;
}

.catalog-header .section-tag {
    margin-bottom: 4px;
}

.catalog-header h2 {
    font-size: 36px;
    line-height: 1.1;
}

.results-count {
    color: var(--text-light);

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   GRID
========================================================= */

.properties-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================================================
   TARJETAS
========================================================= */

.property-card {
    background: var(--white);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);

    transition: 0.3s ease;
}

.property-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   IMAGEN
========================================================= */

.property-image {
    position: relative;

    height: 250px;

    overflow: hidden;

    background: #e5e7eb;

    cursor: pointer;
}

.property-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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

.property-status {
    position: absolute;

    top: 15px;
    left: 15px;

    background: var(--blue);

    color: var(--white);

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;
}

.property-status.rent {
    background: #222;
}

.featured-badge {
    position: absolute;

    top: 15px;
    right: 15px;

    background: var(--yellow);

    color: var(--blue);

    padding: 7px 11px;

    border-radius: 6px;

    font-size: 10px;

    font-weight: 800;
}

.featured-badge i {
    margin-right: 4px;
}

.image-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: rgba(0, 43, 112, 0.70);

    color: var(--white);

    font-size: 14px;

    font-weight: 800;

    opacity: 0;

    transition: 0.3s ease;
}

.property-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 20px;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.property-info {
    padding: 23px;
}

.property-type {
    display: block;

    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.property-info h3 {
    font-size: 21px;

    line-height: 1.25;

    margin-bottom: 10px;
}

.property-location {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text-light);

    font-size: 13px;

    margin-bottom: 18px;
}

.property-location i {
    color: var(--blue);
}

.property-details {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.property-details span {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #555;

    font-size: 12px;
}

.property-details i {
    color: var(--blue);
}

.property-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding-top: 20px;
}

.property-footer strong {
    color: var(--blue);

    font-size: 21px;

    line-height: 1.2;
}

.view-property {
    color: var(--blue);

    font-size: 12px;

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 7px;

    white-space: nowrap;
}

.view-property:hover {
    color: var(--blue-light);
}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.no-results {
    display: none;

    text-align: center;

    background: var(--white);

    border-radius: var(--radius);

    padding: 60px 20px;

    margin-top: 30px;
}

.no-results-icon {
    font-size: 45px;

    color: var(--blue);

    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 24px;

    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-light);

    margin-bottom: 20px;
}

.btn {
    border: 0;

    border-radius: 8px;

    padding: 13px 20px;

    font-weight: 800;

    cursor: pointer;
}

.btn-blue {
    background: var(--blue);

    color: var(--white);
}


/* =========================================================
   MODAL
========================================================= */

.property-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.property-modal.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.80);

    backdrop-filter: blur(5px);
}

.property-modal-content {
    position: relative;

    z-index: 2;

    width: min(920px, 100%);

    max-height: 94vh;

    background: var(--white);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.40);

    display: flex;

    flex-direction: column;
}

.modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 20;

    width: 48px;
    height: 48px;

    border: 0;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);

    color: var(--white);

    font-size: 23px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: 0.25s ease;
}

.modal-close:hover {
    background: var(--blue);

    transform: rotate(90deg);
}


/* =========================================================
   GALERÍA
========================================================= */

.modal-gallery {
    position: relative;

    width: 100%;

    height: min(56vh, 520px);

    min-height: 300px;

    background: #111;

    display: flex;

    align-items: center;
    justify-content: center;
}

.modal-gallery img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: opacity 0.2s ease;
}

.gallery-button {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 68px;
    height: 68px;

    border: 2px solid rgba(255, 255, 255, 0.55);

    border-radius: 50%;

    background: var(--blue);

    color: var(--white);

    font-size: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.35);

    transition: 0.25s ease;
}

.gallery-button:hover {
    background: var(--blue-light);

    transform:
        translateY(-50%)
        scale(1.08);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;

    bottom: 15px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.72);

    color: var(--white);

    padding: 7px 14px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   INFORMACIÓN MODAL
========================================================= */

.modal-information {
    background: var(--white);

    padding: 25px 30px 28px;

    overflow-y: auto;
}

.modal-heading {
    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.modal-property-type {
    display: inline-block;

    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 5px;
}

.modal-heading h2 {
    font-size: clamp(24px, 3vw, 32px);

    line-height: 1.2;

    margin-bottom: 8px;
}

.modal-location {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text-light);

    font-size: 13px;
}

.modal-location i {
    color: var(--blue);
}

.modal-price {
    color: var(--blue);

    font-size: clamp(25px, 4vw, 34px);

    font-weight: 800;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.modal-description {
    padding-top: 18px;
}

.modal-description h3 {
    font-size: 16px;

    margin-bottom: 7px;
}

.modal-description p {
    color: #555;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #002b70;

    color: var(--white);
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;

    gap: 45px;

    padding: 65px 0;
}

.footer-brand img {
    width: 185px;

    height: auto;

    max-height: 65px;

    object-fit: contain;

    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 280px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
}

.socials {
    display: flex;

    gap: 12px;

    margin-top: 20px;
}

.socials a {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.10);

    color: var(--white);

    font-size: 21px;

    transition: 0.25s ease;
}

.socials a:hover {
    background: var(--yellow);

    color: var(--blue);

    transform: translateY(-3px);
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-column h3 {
    font-size: 16px;

    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;

    transition: 0.2s ease;
}

.footer-column a:hover {
    color: var(--yellow);
}

.footer-column p {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
}

.footer-column p i {
    color: var(--yellow);

    margin-top: 4px;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom .container {
    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.50);

    font-size: 11px;
}

.developed-by {
    display: flex;

    align-items: center;

    gap: 10px;
}

.developed-by span {
    color: rgba(255, 255, 255, 0.50);

    font-size: 11px;
}

.developed-by img {
    width: 90px;

    height: auto;
}


/* =========================================================
   CONTACTO FLOTANTE
========================================================= */

.contact-float {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 3000;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;
}


/* =========================================================
   BOTONES CONTACTO
========================================================= */

.contact-float-btn {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--white);

    font-size: 25px;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   WHATSAPP
========================================================= */

.contact-float-btn.whatsapp {
    background: #25d366;
}


/* =========================================================
   CORREO
========================================================= */

.contact-float-btn.email {
    background: var(--blue);
}


/* =========================================================
   TELÉFONO
========================================================= */

.contact-float-btn.phone {
    background: var(--yellow);

    color: var(--blue);
}


/* =========================================================
   HOVER CONTACTO
========================================================= */

.contact-float-btn:hover {
    transform: scale(1.10);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 12px;
    }

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

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

    .search-button {
        width: 100%;
    }

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

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .container {
        width: calc(100% - 28px);
    }

    /* HEADER */

    .nav-container {
        min-height: 74px;
    }

    .logo img {
        width: 175px;
        max-height: 55px;
    }

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .nav {
        position: absolute;

        top: 74px;
        left: 0;
        right: 0;

        background: rgba(0, 43, 112, 0.98);

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 12px 20px 20px;

        box-shadow:
            0 15px 25px rgba(0, 0, 0, 0.20);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 13px 5px;

        font-size: 14px;
    }

    .nav-button {
        text-align: center;

        margin-top: 8px;
    }


    /* =====================================================
       HERO PROPIEDADES MOBILE
    ===================================================== */

    .properties-hero {
        min-height: 560px;

        background-position: center center;
    }

    .properties-hero-content {
        padding: 70px 0;

        width: 100%;
    }

    .properties-hero h1 {
        font-size: 43px;
    }

    .properties-hero p {
        font-size: 15px;
    }


    /* PÁGINA */

    .properties-page {
        padding: 45px 0 60px;
    }


    /* BUSCADOR */

    .catalog-search {
        padding: 22px;
    }

    .catalog-fields {
        grid-template-columns: 1fr;
    }

    .catalog-search-header h2 {
        font-size: 25px;
    }


    /* CATÁLOGO */

    .catalog-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .catalog-header h2 {
        font-size: 30px;
    }


    /* GRID */

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

    .property-image {
        height: 240px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 50px 0;
    }

    .footer-bottom .container {
        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 20px 0;
    }

    .developed-by {
        justify-content: center;
    }


    /* =====================================================
       MODAL MOBILE
    ===================================================== */

    .property-modal {
        padding: 8px;
    }

    .property-modal-content {
        width: 100%;

        max-height: calc(100vh - 16px);

        border-radius: 14px;
    }

    .modal-gallery {
        height: 45vh;

        min-height: 240px;

        max-height: 430px;
    }

    .modal-information {
        padding: 18px 20px 22px;
    }

    .modal-heading h2 {
        font-size: 23px;
    }

    .modal-price {
        font-size: 26px;

        padding: 14px 0;
    }

    .modal-description p {
        font-size: 13px;
    }

    .modal-close {
        width: 44px;
        height: 44px;

        top: 9px;
        right: 9px;

        font-size: 19px;
    }

    .gallery-button {
        width: 58px;
        height: 58px;

        font-size: 22px;
    }

    .gallery-prev {
        left: 9px;
    }

    .gallery-next {
        right: 9px;
    }

    .gallery-counter {
        bottom: 10px;
    }


    /* =====================================================
       CONTACTO FLOTANTE MOBILE
    ===================================================== */

    .contact-float {
        right: 15px;

        bottom: 15px;

        gap: 9px;
    }

    .contact-float-btn {
        width: 52px;
        height: 52px;

        font-size: 22px;
    }

}


/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 430px) {

    .logo img {
        width: 145px;
    }

    /* HERO */

    .properties-hero {
        min-height: 520px;

        background-position: center center;
    }

    .properties-hero h1 {
        font-size: 34px;
    }

    .properties-hero p {
        font-size: 14px;
    }

    .property-image {
        height: 220px;
    }

    .property-footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .property-footer strong {
        font-size: 20px;
    }

    .view-property {
        padding-top: 3px;
    }


    /* MODAL */

    .modal-gallery {
        height: 40vh;

        min-height: 210px;
    }

    .modal-information {
        max-height: 47vh;
    }

    .gallery-button {
        width: 52px;
        height: 52px;
    }


    /* CONTACTO */

    .contact-float {
        right: 12px;

        bottom: 12px;

        gap: 8px;
    }

    .contact-float-btn {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }

}