﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #202124;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav nav a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.nav nav a:hover {
    opacity: 0.7;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login {
    color: #ffffff;
    font-size: 14px;
    padding: 10px 16px;
}

.publish {
    color: #202124;
    background: #ffffff;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.publish:hover {
    transform: translateY(-2px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 90px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 18px;
    opacity: 0.9;
}

.hero h1 {
    max-width: 680px;
    font-size: 58px;
    line-height: 1.12;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero p {
    max-width: 600px;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 38px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    max-width: 1050px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.search-box form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 8px;
}

.search-box select,
.search-box input {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: #444444;
    background: #ffffff;
    outline: none;
}

.search-box select:focus,
.search-box input:focus {
    border-color: #999999;
}

.search-box button {
    height: 52px;
    border: none;
    border-radius: 5px;
    padding: 0 28px;
    background: #222222;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: #000000;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 90px 0;
}

.gray {
    background: #f7f7f5;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 500;
    color: #222222;
}

.section-title > a {
    font-size: 14px;
    color: #555555;
    border-bottom: 1px solid #999999;
    padding-bottom: 2px;
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title.center p {
    color: #777777;
    margin-top: 8px;
    font-size: 15px;
}


/* =========================================================
   PROPERTY CARDS
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 245px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.04);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #222222;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-body {
    padding: 22px;
}

.price {
    font-size: 21px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 7px;
}

.price small {
    font-size: 12px;
    color: #777777;
    font-weight: 400;
}

.card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #292929;
}

.location {
    color: #777777;
    font-size: 13px;
    margin-bottom: 17px;
}

.details {
    display: flex;
    gap: 18px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    color: #666666;
    font-size: 12px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category {
    height: 250px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.category img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category:hover img {
    transform: scale(1.05);
}

.category:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.05)
    );
}

.category span {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
}


/* =========================================================
   CITIES
   ========================================================= */

.cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.city {
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.city img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.city:hover img {
    transform: scale(1.05);
}

.city:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.60),
        rgba(0, 0, 0, 0.05)
    );
}

.city span {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 70px 0;
    background: #202020;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta h2 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cta p {
    color: #bdbdbd;
    font-size: 15px;
}

.cta-button {
    flex-shrink: 0;
    background: #ffffff;
    color: #222222;
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.main-footer {
    background: #151515;
    color: #ffffff;
    padding-top: 65px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 55px;
}

.footer-logo {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-content p {
    color: #999999;
    font-size: 13px;
    max-width: 300px;
}

.footer-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 17px;
}

.footer-content a {
    display: block;
    color: #999999;
    font-size: 13px;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #292929;
    padding: 20px;
    text-align: center;
    color: #777777;
    font-size: 12px;
}


/* =========================================================
   PÁGINA DE CONTACTO
   ========================================================= */

.contact-page {
    padding: 140px 0 80px;
    background: #f7f7f5;
    min-height: 700px;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.contact-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    color: #777777;
    margin-bottom: 10px;
}

.contact-header h1 {
    font-size: 42px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 10px;
}

.contact-header p {
    color: #777777;
    font-size: 15px;
}


/* =========================================================
   CONTACTO - COLUMNA INFORMACIÓN
   ========================================================= */

.contact-layout {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: start;
}

.contact-intro {
    background: #222222;
    border-radius: 10px;
    overflow: hidden;
}

.contact-intro-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.contact-intro-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-intro-content {
    padding: 28px;
    color: #ffffff;
}

.contact-intro-content h2 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-intro-content p {
    color: #bbbbbb;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #ffffff;
    color: #222222;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #222222;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   CONTACTO - FORMULARIO
   ========================================================= */

.contact-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 5px;
}

.form-description {
    color: #888888;
    font-size: 13px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #444444;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 11px 12px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input {
    height: 44px;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #777777;
}

.contact-submit {
    width: 100%;
    height: 47px;
    border: none;
    border-radius: 5px;
    background: #222222;
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-submit:hover {
    background: #000000;
}

.contact-error {
    padding: 12px 15px;
    margin-bottom: 20px;
    background: #fff2f2;
    border: 1px solid #e5caca;
    border-radius: 5px;
    color: #9a3d3d;
    font-size: 13px;
}


/* =========================================================
   CONTACTO - MÓVIL
   ========================================================= */

@media (max-width: 850px) {

    .contact-layout {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .contact-intro-image {
        height: 220px;
    }

}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .nav nav {
        gap: 18px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .search-box form {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box button {
        width: 100%;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories,
    .cities {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .header {
        position: absolute;
    }

    .nav {
        height: 70px;
    }

    .logo {
        font-size: 23px;
    }

    .nav nav {
        display: none;
    }

    .nav-buttons {
        gap: 5px;
    }

    .login {
        font-size: 12px;
        padding: 8px;
    }

    .publish {
        font-size: 12px;
        padding: 9px 12px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .search-box {
        padding: 8px;
    }

    .search-box form {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        align-items: flex-start;
        gap: 15px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 240px;
    }

    .categories,
    .cities {
        grid-template-columns: 1fr;
    }

    .category {
        height: 230px;
    }

    .city {
        height: 210px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta h2 {
        font-size: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


/* =========================================================
   CONTACTO - PANTALLAS PEQUEÑAS
   ========================================================= */

@media (max-width: 550px) {

    .contact-page {
        padding: 105px 0 60px;
    }

    .contact-header h1 {
        font-size: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

}

/* =========================================================
   Efectos del Admin
   ========================================================= */
   /* Ocultar funciones todavía en desarrollo */
.funcion-desarrollo-oculta {
    display: none !important;
}

/* Función visible pero deshabilitada */
.funcion-proximamente {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}