
/* ==================================================
   PLAZA24 | PÁGINA PRINCIPAL
   Archivo: assets/css/pages/home.css

   PALETA DE COLORES
   Crema claro:  #F6F4F0
   Dorado:       #A68C71
   Verde oscuro: #2D4632
================================================== */


/* ==================================================
   01. PORTADA DE BIENVENIDA
================================================== */

.plaza24-welcome {
    padding: 100px 4%;
    background-color: #F6F4F0;
    text-align: center;
}

.plaza24-welcome h1 {
    color: #2D4632;
    font-size: clamp(32px, 5vw, 52px);
}


/* ==================================================
   02. HERO | FONDO Y ESTRUCTURA PRINCIPAL
================================================== */

.p24-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background-color: #2D4632;
    background-image:
        linear-gradient(
            90deg,
            rgba(45, 70, 50, 0.88) 0%,
            rgba(45, 70, 50, 0.65) 50%,
            rgba(45, 70, 50, 0.30) 100%
        ),
        url('../../img/fondo-plaza24.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.p24-hero::before,
.p24-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(246, 244, 240, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.p24-hero::before {
    top: -190px;
    right: -120px;
    width: 580px;
    height: 580px;
}

.p24-hero::after {
    right: 40px;
    bottom: -260px;
    width: 420px;
    height: 420px;
}

.p24-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 70px;
}


/* ==================================================
   03. HERO | ETIQUETA, TÍTULO Y DESCRIPCIÓN
================================================== */

.p24-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #E8D9C8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
}

.p24-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #F6F4F0;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.8px;
}

.p24-hero h1 span {
    color: #D5B99A;
}

.p24-hero-description {
    max-width: 560px;
    margin: 22px 0 30px;
    color: #F6F4F0;
    font-size: 17px;
    line-height: 1.8;
}


/* ==================================================
   04. BUSCADOR | CONTENEDOR
================================================== */

.p24-search-box {
    width: 100%;
    max-width: 1000px;
    padding: 10px;
    background: #F6F4F0;
    border: 1px solid rgba(246, 244, 240, 0.4);
    border-radius: 13px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}


/* ==================================================
   05. BUSCADOR | PESTAÑAS
================================================== */

.p24-search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 7px 12px;
    border-bottom: 1px solid #E2D8CC;
}

.p24-search-tabs span {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    border-radius: 7px;
    color: #665C50;
    font-size: 13px;
    font-weight: 700;
}

.p24-search-tabs .p24-tab-active {
    color: #F6F4F0;
    background: #2D4632;
}


/* ==================================================
   06. BUSCADOR | FORMULARIO Y CAMPOS
================================================== */

.p24-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
    padding-top: 10px;
}

.p24-search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 13px;
    background: #FFFFFF;
    border: 1px solid #DED3C6;
    border-radius: 8px;
}

.p24-search-field:focus-within {
    border-color: #A68C71;
    box-shadow: 0 0 0 3px rgba(166, 140, 113, 0.16);
}

.p24-search-field span {
    color: #756A5D;
    font-size: 11px;
    font-weight: 700;
}

.p24-search-field select,
.p24-search-field input {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #2D4632;
    background: transparent;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 14px;
}

.p24-search-field input::placeholder {
    color: #93877A;
}


/* ==================================================
   07. BOTONES | BUSCAR Y PUBLICAR
================================================== */

.p24-search-button,
.p24-publish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    color: #F6F4F0;
    background: #2D4632;
    border: 1px solid #2D4632;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.p24-search-button:hover,
.p24-publish-button:hover {
    color: #FFFFFF;
    background: #223727;
    border-color: #223727;
    transform: translateY(-1px);
}

.p24-search-button:focus-visible,
.p24-publish-button:focus-visible,
.p24-outline-button:focus-visible,
.p24-category-card:focus-visible {
    outline: 3px solid #A68C71;
    outline-offset: 3px;
}


/* ==================================================
   08. HERO | MENSAJES INFORMATIVOS
================================================== */

.p24-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 22px;
    color: #F0E8DE;
    font-size: 12px;
}


/* ==================================================
   09. ENCABEZADOS DE LAS SECCIONES
================================================== */

.p24-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.p24-eyebrow-dark {
    margin-bottom: 10px;
    color: #8C7258;
}

.p24-section-heading h2,
.p24-publish h2 {
    margin: 0 0 10px;
    color: #2D4632;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.p24-section-heading p {
    margin: 0;
    color: #756A5D;
    font-size: 15px;
    line-height: 1.7;
}


/* ==================================================
   10. CATEGORÍAS | CONTENEDOR Y CUADRÍCULA
================================================== */

.p24-categories {
    padding: 80px 0;
    background: #F6F4F0;
}

.p24-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* ==================================================
   11. CATEGORÍAS | TARJETAS
================================================== */

.p24-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 220px;
    padding: 25px 22px;
    background: #FFFFFF;
    border: 1px solid #E5DDD3;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.p24-category-card:hover {
    transform: translateY(-4px);
    border-color: #A68C71;
    box-shadow: 0 12px 30px rgba(45, 70, 50, 0.09);
}

.p24-category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 17px;
    color: #2D4632;
    background: #EAE4DA;
    border-radius: 10px;
    font-size: 28px;
}

.p24-category-card h3 {
    margin: 0 0 7px;
    color: #2D4632;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.p24-category-card p {
    margin: 0 0 18px;
    color: #756A5D;
    font-size: 13px;
    line-height: 1.7;
}

.p24-category-link {
    margin-top: auto;
    color: #8C7258;
    font-size: 12px;
    font-weight: 700;
}


/* ==================================================
   12. PROPIEDADES DESTACADAS | SECCIÓN
================================================== */

.p24-featured {
    padding: 75px 0 85px;
    background: #EEEAE3;
}


/* ==================================================
   13. PROPIEDADES DESTACADAS | BOTÓN SECUNDARIO
================================================== */

.p24-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 17px;
    color: #2D4632;
    background: #F6F4F0;
    border: 1px solid #CDBBA8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.p24-outline-button:hover {
    color: #2D4632;
    background: #EAE1D6;
    border-color: #A68C71;
}


/* ==================================================
   14. PROPIEDADES DESTACADAS | ESTADO VACÍO
================================================== */

.p24-empty-properties {
    padding: 55px 20px;
    background: #F6F4F0;
    border: 1px dashed #CDBBA8;
    border-radius: 13px;
    text-align: center;
}

.p24-empty-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    margin: 0 auto 15px;
    color: #2D4632;
    background: #EAE4DA;
    border-radius: 50%;
    font-size: 34px;
}

.p24-empty-properties h3 {
    margin: 0 0 10px;
    color: #2D4632;
    font-size: 21px;
}

.p24-empty-properties p {
    max-width: 520px;
    margin: 0 auto;
    color: #756A5D;
    font-size: 14px;
    line-height: 1.8;
}


/* ==================================================
   15. PUBLICAR INMUEBLE | LLAMADA A LA ACCIÓN
================================================== */

.p24-publish {
    padding: 65px 0;
    background: #2D4632;
}

.p24-publish-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.p24-publish h2 {
    max-width: 650px;
    color: #F6F4F0;
}

.p24-publish p {
    max-width: 650px;
    margin: 0;
    color: #E6E0D7;
    font-size: 15px;
    line-height: 1.8;
}

.p24-publish-button {
    flex-shrink: 0;
    color: #2D4632;
    background: #F6F4F0;
    border-color: #F6F4F0;
}

.p24-publish-button:hover {
    color: #2D4632;
    background: #E6D8C8;
    border-color: #E6D8C8;
}


/* ==================================================
   16. TABLET | DISEÑO RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .p24-hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(45, 70, 50, 0.86) 0%,
                rgba(45, 70, 50, 0.74) 55%,
                rgba(45, 70, 50, 0.58) 100%
            ),
            url('../../img/fondo-plaza24.jpg');

        background-size: cover;
        background-position: 60% center;
        background-repeat: no-repeat;
    }

    .p24-hero-content {
        padding-top: 65px;
        padding-bottom: 60px;
    }

    .p24-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}


/* ==================================================
   17. CELULAR | HERO Y FONDO
================================================== */

@media (max-width: 600px) {

    .p24-hero {
        min-height: 0;
        background-color: #2D4632;

        background-image:
            linear-gradient(
                180deg,
                rgba(45, 70, 50, 0.65) 0%,
                rgba(45, 70, 50, 0.78) 55%,
                rgba(45, 70, 50, 0.90) 100%
            ),
            url('../../img/fondo-plaza24.jpg');

        background-size: cover;
        background-position: 75% center;
        background-repeat: no-repeat;
    }

    .p24-hero-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .p24-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .p24-hero h1 {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .p24-hero-description {
        margin: 18px 0 24px;
        font-size: 15px;
        line-height: 1.7;
    }

    .p24-search-box {
        width: 100%;
        padding: 10px;
        border-radius: 12px;
    }

    .p24-search-tabs {
        gap: 4px;
        padding-right: 0;
        padding-left: 0;
    }

    .p24-search-tabs span {
        padding: 9px 12px;
        font-size: 12px;
    }

    .p24-search-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .p24-search-field {
        min-height: 64px;
        padding: 11px 12px;
    }

    .p24-search-button {
        width: 100%;
        min-height: 48px;
    }

    .p24-hero-trust {
        gap: 10px 16px;
        margin-top: 18px;
        font-size: 11px;
    }

    .p24-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .p24-section-heading h2,
    .p24-publish h2 {
        font-size: 27px;
    }

    .p24-categories {
        padding: 50px 0;
    }

    .p24-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .p24-category-card {
        min-height: 190px;
        padding: 22px;
    }

    .p24-featured {
        padding: 50px 0 55px;
    }

    .p24-outline-button {
        width: 100%;
        white-space: normal;
    }

    .p24-empty-properties {
        padding: 35px 18px;
    }

    .p24-publish {
        padding: 48px 0;
    }

    .p24-publish-content {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .p24-publish-button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* ==================================================
   18. CELULAR PEQUEÑO | AJUSTES FINALES
================================================== */

@media (max-width: 380px) {

    .p24-hero-content {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .p24-hero h1 {
        font-size: 32px;
    }

    .p24-search-tabs span {
        padding: 8px 9px;
    }

    .p24-section-heading h2,
    .p24-publish h2 {
        font-size: 25px;
    }
}


/* ==================================================
   19. ACCESIBILIDAD | MOVIMIENTO REDUCIDO
================================================== */

@media (prefers-reduced-motion: reduce) {

    .p24-category-card,
    .p24-search-button,
    .p24-publish-button,
    .p24-outline-button {
        transition: none;
    }
}


/* ==================================================
   20. ESCRITORIO | AJUSTE DEL FONDO
   Solo afecta a pantallas mayores de 900px.
   No modifica el encuadre del celular.
================================================== */

@media (min-width: 901px) {

    .p24-hero {
        background-position: center 45%;
    }
}