@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

*, ::before, ::after { box-sizing: border-box; }
body {
    background: #F8F9FA;
    font-family: 'Lato', sans-serif !important;
    margin: 0;
    padding-top: 0;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgb(40, 39, 39);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 1000;
    height: 7rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 110px;
    height: 110px;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-toggle,
.mobile-quick-link {
    display: none;
}

.lista-nav {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin-left: 1rem;
    padding: 0px;
}

.lista-nav li a {
    text-decoration: none;
    color: #1c2024;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-weight: 400;
    font-size: 18px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    display: block;
}

.lista-nav li a:hover {
    background-color: #F8F9FA;
    color: #E28714;
    transform: scale(1.03);
}

.lista-nav li a.active {
    background-color: #ffffff;
    color: #1c2024;
    text-decoration: none;
    border-style: solid;
    border-color: #e28714;
    border-width: 0 0 2px 0;
}

i.fab {
    color: #10b981;
}

.page {
    display: none;
    background-color: #F8F9FA;
}
.page.active { display: block; }

#page-catalog,
#page-detail {
    padding-top: 112px;
}

/* SECCIÓN HERO CENTRADA */
section.seccion-principal-home {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 75vh !important;
    padding: 60px 20px !important;
    background: linear-gradient(rgba(28, 32, 36, 0.55), rgba(28, 32, 36, 0.55)),
                url('src/assets/paisajesurprop.jpeg') no-repeat center center !important;
    background-size: cover !important;
    animation: 1.3s ease 0s 1 normal forwards running fadeIn;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ESTILOS DE LOS TÍTULOS */
.hero-titulos {
    text-align: center !important;
    width: 100% !important;
}

h1.titulo-principal-brand {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 54px !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-align: center !important;

    /* LÍNEA DIVISORIA BLANCA ABAJO */
    border-bottom: 2px solid #FFFFFF !important;
    display: inline-block !important;
    padding-bottom: 6px !important;
}

h2.subtitulo-principal-brand {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-align: center !important;
    margin-top: 8px !important; /* Espacio ajustado justo debajo de la barra */
    margin-bottom: 25px !important;
    letter-spacing: 1px !important;
}

.seccion-destacadas {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #F8F9FA;
}

.ver-mas-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.boton-ver-mas {
    background-color: #ffffff;
    border: 2px solid #f39216;
    color: #f39216;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-ver-mas:hover {
    background-color: #f39216;
    color: #ffffff;
}

.filtro-propiedades {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.filtro-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filtro-select {
    padding: 0.75rem;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    width: 200px;
    font-size: 1rem;
    color: #1C2024;
    background-color: #ffffff;
    cursor: pointer;
}

.boton-busqueda, .boton-busqueda-props {
    background-color: #E28714;
    color: #ffffff;
    padding: 1.2rem 1.9rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.boton-busqueda:hover, .boton-busqueda-props:hover {
    background-color: #b96a0c;
    color: #ffffff;
}

.tarjetas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background-color: #F8F9FA;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #60727a;
    background: #fff;
    border: 1px dashed rgba(15, 40, 55, 0.18);
    border-radius: 16px;
}

.empty-state i {
    font-size: 2rem;
    color: rgb(50, 140, 123);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 40, 55, 0.05);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 40, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 40, 55, 0.14);
}

.tarjeta-media {
    position: relative;
    overflow: hidden;
    background: #e9edf0;
}

.tarjeta .imagen {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    height: auto;
    background-size: cover;
    background-position: center center;
    transition: transform 0.35s ease;
}

.tarjeta:hover .imagen {
    transform: scale(1.03);
}

.badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    color: #ffffff;
    z-index: 10;
    background-color: #f39216;
    border: 2px solid #b96a0c;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.badge-status.badge-venta,
.badge-status.badge-arriendo,
.badge-status.badge-arriendo-temporal,
.badge-status.badge-arriendo-amoblado {
    background-color: #f39216;
    border-color: #b96a0c;
    color: #ffffff;
}

.tarjeta-cuerpo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding: 1rem 1rem 0.95rem;
}

.tarjeta-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #8a9499;
}

.tarjeta-id {
    display: inline;
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.tarjeta-categoria {
    font-size: inherit;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

.tarjeta-separador {
    color: #b4bdc2;
}

.tarjeta h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1f2d33;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tarjeta-ubicacion {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    margin: 0;
    font-size: 0.8rem;
    color: #6b7a80;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tarjeta-ubicacion i {
    color: #14967f;
    flex-shrink: 0;
}

.tarjeta-precio {
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0b8f70;
    letter-spacing: -0.01em;
}

.tarjeta-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9edf0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2f3a40;
}

.tarjeta-info span {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    white-space: nowrap;
}

.tarjeta-info i {
    width: 16px;
    text-align: center;
    color: #14967f;
    flex-shrink: 0;
}

.tarjeta-info em {
    font-style: normal;
    font-weight: 400;
    color: #7b868d;
}

.tarjeta-agente {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 1rem;
    background: #fff;
    border-top: 1px solid #eef1f3;
    font-size: 0.8rem;
    color: rgb(47, 54, 59);
    text-align: left;
}

.agente-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.agente-info strong {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: #3c484f;
}

.agente-info span {
    font-size: 0.74rem;
    line-height: 1.2;
    font-weight: 400;
    color: #8a9499;
}

.iconos-agente {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.iconos-agente a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9f5f1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.iconos-agente i {
    color: #128c74;
    font-size: 1rem;
    cursor: pointer;
}

.iconos-agente a:hover {
    background: #128c74;
}

.iconos-agente a:hover i {
    color: #fff;
}

@media (max-width: 992px) {
    .tarjetas-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tarjetas-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination button {
    background-color: rgb(50, 140, 123);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: rgb(204, 204, 204);
    cursor: not-allowed;
}

/* ESTILOS GENERALES DEL FOOTER */
footer.footer {
    background-color: #0F1316 !important;
    color: #FFFFFF !important;
    padding: 40px 20px 20px 20px !important;
    font-family: inherit;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col:first-child {
    align-items: flex-start;
    text-align: left;
}

.footer-col:first-child .footer-titulo {
    align-self: center;
}

.footer-col:first-child .footer-linea {
    width: 100%;
}

.footer-col:first-child .footer-lista-contacto li {
    justify-content: flex-start;
}

/* TÍTULOS Y LÍNEAS DECORATIVAS */
.footer-titulo {
    color: #E28714 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.footer-linea {
    width: 120px;
    height: 1px;
    background-color: #E28714;
    margin-bottom: 16px;
}

/* LISTAS DE CONTACTO Y ENLACES */
.footer-lista-contacto,
.footer-lista-enlaces {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-lista-contacto li,
.footer-lista-enlaces li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-lista-contacto a,
.footer-lista-enlaces a {
    color: #D1D5DB !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-lista-contacto a:hover,
.footer-lista-enlaces a:hover {
    color: #E28714 !important;
}

.footer-lista-contacto i {
    color: #D1D5DB;
    font-size: 16px;
    width: 16px;
    text-align: center;
    flex: 0 0 16px;
}

/* BOTONES CUADRADOS DE REDES SOCIALES */
.footer-redes {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-red-social {
    width: 34px;
    height: 34px;
    border: 1px solid #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-red-social:hover {
    border-color: #E28714;
    color: #E28714 !important;
    background-color: rgba(226, 135, 20, 0.1);
}

.btn-red-social i {
    color: inherit !important;
}

/* COPYRIGHT BARRA INFERIOR */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    text-align: center;
}

.footer-copyright p {
    color: #9CA3AF !important;
    font-size: 12px !important;
    margin: 0 !important;
}

/* Property Detail View Styles - CALCADO DE IMAGEN */
.detail-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
}

.detail-nav {
    margin-bottom: 1.5rem;
}

.boton-volver {
    background: white;
    border: 1px solid rgb(50, 140, 123);
    color: rgb(50, 140, 123);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.boton-volver:hover {
    background: rgb(50, 140, 123);
    color: white;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2.25rem;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    min-width: 0;
}

/* Property header (above the carousel) */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0.25rem 0 0.15rem;
}

.property-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-width: 0;
}

.property-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

.property-id {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7a80;
    background: #eef2f4;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.property-title-row h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgb(5, 28, 44);
}

.property-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a75e08;
    background-color: rgba(226, 135, 20, 0.17);
    border: 1px solid #b96a0c;
}

.property-status.status-venta,
.property-status.status-arriendo,
.property-status.status-arriendo-temporal,
.property-status.status-arriendo-amoblado {
    color: #a75e08;
    background-color: rgba(226, 135, 20, 0.17);
    border-color: #b96a0c;
}

.property-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.detail-price {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
    color: rgb(36, 138, 112);
    white-space: nowrap;
}

.property-type {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8a9499;
}

/* Carousel */
.detail-carousel {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 40, 55, 0.12);
    background: #e9edf0;
}

.detail-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center center;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 0 0.18rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s, transform 0.25s;
    backdrop-filter: blur(2px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 0.4rem 0.62rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.03em;
    backdrop-filter: blur(2px);
}

/* Description and details */
.detail-description,
.detail-tech-specs,
.video-tour-section,
.detail-section {
    background: #fff;
    border: 1px solid rgba(5, 28, 44, 0.04);
    border-radius: 10px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 2px 10px rgba(15, 40, 55, 0.05);
}

.detail-description h3,
.detail-tech-specs h3,
.video-tour-section h3,
.detail-section h3 {
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf0f2;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgb(5, 28, 44);
}

.detail-description p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #555f66;
}

.property-details-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0.2rem 0 0;
}

.property-details-list li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 0;
    padding-left: 0.95rem;
    font-size: 0.93rem;
    line-height: 1.5;
    color: #5f6b72;
}

.property-details-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a555b;
}

.property-details-list li[hidden] {
    display: none;
}

#detail-price-item {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #4b565c;
}

.detail-value {
    font-weight: 500;
    color: rgb(5, 28, 44);
}

.detail-sidebar {
    position: relative;
    align-self: stretch;
}

.agent-card-floating {
    position: sticky;
    top: 120px;
    background: white;
    border-top: 5px solid rgb(50, 140, 123);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.agent-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid rgb(50, 140, 123);
    background-color: transparent;
}

.agent-name-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.agent-company {
    font-weight: bold;
    font-size: 1.1rem;
    color: rgb(40, 39, 39);
}

.agent-role {
    font-size: 0.85rem;
    color: #777;
}

.agent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-agent-wa {
    background: rgb(37, 211, 102);
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    display: block;
    transition: 0.3s;
}

.btn-agent-wa:hover {
    background: rgb(30, 180, 80);
}

.btn-whatsapp i,
.btn-whatsapp svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    margin-right: 8px;
}

.btn-agent-mail {
    background: white;
    border: 1px solid rgb(50, 140, 123);
    color: rgb(50, 140, 123);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn-agent-mail:hover {
    background: rgb(50, 140, 123);
    color: white;
}

/* Video Tour Section */
.video-tour-section {
    margin-top: 0;
}

.video-tour-section h3 {
    color: rgb(5, 28, 44);
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container.no-video {
    height: auto;
    padding-bottom: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Map section */
#mapa-ubicacion[hidden] {
    display: none;
}

.mapa-address {
    margin: -0.15rem 0 1rem;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #7b868d;
}

.mapa-embed {
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f4;
    box-shadow: 0 6px 20px rgba(15, 40, 55, 0.12);
}

.mapa-embed-iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
    }
    .agent-card-floating {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 1rem 1rem 3rem;
    }

    .property-header {
        flex-direction: column;
        gap: 0.9rem;
    }

    .property-summary {
        align-items: flex-start;
        text-align: left;
    }

    .detail-price {
        white-space: normal;
    }

    .detail-image {
        aspect-ratio: 4 / 3;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    .carousel-counter {
        right: 10px;
        bottom: 10px;
    }

    .detail-description,
    .detail-tech-specs,
    .video-tour-section,
    .detail-section {
        padding: 1.15rem;
    }

    .property-details-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .property-title-row {
        gap: 0.4rem;
    }

    .property-title-row h1 {
        font-size: 1.35rem;
    }

    .property-status {
        font-size: 0.72rem;
    }
}

/* =========================================================
   ADAPTACIÓN RESPONSIVE
   El escritorio desde 1024px conserva el diseño actual.
   ========================================================= */

/* TABLET: 768px a 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        height: 92px;
        padding: 0 20px;
    }

    .navbar-logo {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
    }

    .lista-nav {
        margin-left: 0.75rem;
        gap: 0.15rem;
    }

    .lista-nav li a {
        font-size: 15px;
        padding: 0.55rem 0.75rem;
    }

    #page-catalog,
    #page-detail {
        padding-top: 92px;
    }

    section.seccion-principal-home {
        padding: 48px 20px !important;
    }

    .seccion-buscador {
        width: 100%;
        max-width: 720px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.16);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .seccion-buscador .filtro-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .seccion-buscador .filtro-select {
        width: 100%;
    }

    .seccion-buscador .boton-busqueda {
        grid-column: 1 / -1;
        width: 100%;
    }

    .filtro-propiedades {
        width: 92%;
        padding: 1.5rem;
    }

    .filtro-propiedades .filtro-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .filtro-propiedades .filtro-select {
        width: 100%;
    }

    .filtro-propiedades .boton-busqueda-props {
        grid-column: 1 / -1;
        width: 100%;
    }

    .tarjetas-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MÓVIL: hasta 767px */
@media (max-width: 767px) {
    #page-home {
        padding-top: 74px;
    }

    #page-catalog,
    #page-detail {
        padding-top: 74px;
    }

    .navbar {
        height: 74px;
        padding: 0 12px;
        gap: 8px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar-logo {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        flex: 0 0 36px;
    }

    .menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #1c2024;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .navbar.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-quick-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.85rem;
        border: 1px solid #e28714;
        border-radius: 8px;
        background: #ffffff;
        color: #1c2024;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-quick-link.active {
        box-shadow: inset 0 -2px 0 #e28714;
    }

    .menu-navegacion {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - 74px);
        padding: 10px 12px 14px;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid #eef1f3;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        z-index: 1001;
    }

    .navbar.menu-open .menu-navegacion {
        display: block;
    }

    .lista-nav {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin: 0;
    }

    .lista-nav li {
        width: 100%;
    }

    .lista-nav li a {
        padding: 11px 12px;
        border-radius: 8px;
        font-size: 16px;
    }

    .lista-nav li:first-child {
        display: none;
    }

    section.seccion-principal-home {
        min-height: 0 !important;
        padding: 28px 16px 34px !important;
    }

    .hero-titulos {
        margin-bottom: 18px;
    }

    h1.titulo-principal-brand {
        font-size: 40px !important;
        letter-spacing: 1.5px !important;
        line-height: 1.05 !important;
        padding-bottom: 5px !important;
    }

    h2.subtitulo-principal-brand {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
        font-size: 18px !important;
        letter-spacing: 0.8px !important;
    }

    .seccion-buscador {
        width: 100%;
        max-width: 420px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.18);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .seccion-buscador .filtro-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .seccion-buscador .filtro-select {
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 6px;
        font-size: 14px;
    }

    .seccion-buscador .boton-busqueda {
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 6px;
        font-size: 14px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .seccion-destacadas {
        padding: 2rem 12px 2.5rem;
    }

    .titulo-seccion {
        margin: 0 0 1.25rem;
        font-size: 1.3rem;
    }

    .ver-mas-container {
        margin-top: 2rem;
    }

    .boton-ver-mas {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .filtro-propiedades {
        width: calc(100% - 24px);
        max-width: none;
        margin: 1rem auto;
        padding: 16px;
        border-radius: 12px;
    }

    .filtro-propiedades .filtro-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .filtro-propiedades .filtro-select {
        width: 100%;
        padding: 0.65rem 0.75rem;
        font-size: 14px;
    }

    .filtro-propiedades .boton-busqueda-props {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 14px;
    }

    .tarjetas-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0 12px;
    }

    .empty-state {
        grid-column: 1 / -1;
        min-height: 180px;
        padding: 1.5rem 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin: 16px 12px;
    }

    .pagination button {
        padding: 8px 10px;
        font-size: 13px;
    }

    #page-info {
        font-size: 13px;
    }

    .detail-container {
        padding: 0.75rem 0.75rem 2.5rem;
    }

    .detail-nav {
        margin-bottom: 1rem;
    }

    .property-title-row h1 {
        font-size: 1.35rem;
    }

    .detail-price {
        font-size: 1.4rem;
    }

    .detail-description,
    .detail-tech-specs,
    .video-tour-section,
    .detail-section {
        padding: 1rem;
    }

    .detail-description p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .mapa-embed-iframe {
        height: 280px;
    }

    footer.footer {
        padding: 32px 16px 18px !important;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding-bottom: 22px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col:first-child {
        align-items: center;
        text-align: center;
    }

    .footer-col:first-child .footer-lista-contacto li {
        justify-content: center;
    }

    .footer-col:first-child .footer-linea {
        width: 120px;
    }

    .footer-redes {
        justify-content: center;
    }

    .footer-copyright p {
        font-size: 11px !important;
        line-height: 1.5;
    }
}

/* MÓVIL COMPACTO: hasta 600px */
@media (max-width: 600px) {
    .tarjetas-container {
        gap: 12px;
    }

    .tarjeta {
        border-radius: 12px;
    }

    .tarjeta .imagen {
        aspect-ratio: 1.2 / 1;
    }

    .badge-status {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        border-width: 1px;
        font-size: 9px;
    }

    .tarjeta-cuerpo {
        gap: 3px;
        padding: 8px 8px 7px;
    }

    .tarjeta-meta {
        justify-content: flex-start;
        gap: 2px;
        font-size: 9px;
    }

    .tarjeta h3 {
        font-size: 12.5px;
        line-height: 1.25;
    }

    .tarjeta-ubicacion {
        gap: 3px;
        font-size: 10px;
    }

    .tarjeta-precio {
        font-size: 13px;
    }

    .tarjeta-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px 6px;
        margin-top: 1px;
        padding-top: 6px;
        font-size: 9px;
    }

    .tarjeta-info i {
        width: 12px;
        font-size: 9px;
    }

    .tarjeta-info em {
        display: none;
    }

    .tarjeta-agente {
        display: none;
    }

    .seccion-destacadas {
        padding: 1.5rem 0 2rem;
    }

    .titulo-seccion {
        font-size: 1.2rem;
    }
}

/* MÓVILES MUY PEQUEÑOS: hasta 359px */
@media (max-width: 359px) {
    .navbar {
        gap: 6px;
        padding: 0 10px;
    }

    .navbar-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .mobile-quick-link {
        padding: 0.5rem 0.7rem;
        font-size: 13px;
    }

    .tarjetas-container {
        grid-template-columns: 1fr;
    }

    h1.titulo-principal-brand {
        font-size: 36px !important;
    }

    h2.subtitulo-principal-brand {
        font-size: 17px !important;
    }

    .seccion-buscador {
        padding: 12px;
    }

    .seccion-buscador .filtro-select,
    .seccion-buscador .boton-busqueda {
        font-size: 13px;
    }
}

/* =========================================================
   PUBLICAR PROPIEDAD + BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */

#page-publish {
    padding-top: 112px;
    background: #F8F9FA;
}

.lista-nav li.nav-publicar a {
    background: #E28714;
    border: 1px solid #E28714;
    color: #ffffff;
    font-weight: 700;
}

.lista-nav li.nav-publicar a:hover,
.lista-nav li.nav-publicar a.active {
    background: #c9740d;
    border-color: #c9740d;
    color: #ffffff;
    transform: none;
}

.mobile-publish-link {
    display: none;
}

.publish-section {
    padding: 56px 20px 88px;
    background: linear-gradient(180deg, #ffffff 0%, #F8F9FA 100%);
}

.publish-container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.publish-info {
    padding-top: 14px;
}

.publish-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #E28714;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.publish-info h1 {
    margin: 0 0 18px;
    color: #1c2024;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.publish-lead {
    margin: 0;
    color: #5b6470;
    font-size: 1.05rem;
    line-height: 1.7;
}

.publish-benefits {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.publish-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #333a42;
    font-size: 0.98rem;
    line-height: 1.55;
}

.publish-benefits i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(226, 135, 20, 0.14);
    color: #E28714;
    font-size: 0.7rem;
}

.publish-contact {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e5e9ed;
}

.publish-contact p {
    margin: 0 0 12px;
    color: #1c2024;
    font-weight: 700;
}

.publish-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.publish-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #dfe5ea;
    border-radius: 9px;
    background: #ffffff;
    color: #1c2024;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.publish-contact-links a:hover {
    border-color: #E28714;
    box-shadow: 0 6px 16px rgba(28, 32, 36, 0.08);
    transform: translateY(-1px);
}

.publish-contact-links i {
    color: #E28714;
}

.publish-form {
    padding: 32px;
    border: 1px solid #e8ecef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(28, 32, 36, 0.08);
}

.publish-form h2 {
    margin: 0 0 6px;
    color: #1c2024;
    font-size: 1.45rem;
    line-height: 1.2;
}

.publish-form-note {
    margin: 0 0 22px;
    color: #737d88;
    font-size: 0.86rem;
}

.botcheck-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #1c2024;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9e0e5;
    border-radius: 10px;
    background: #ffffff;
    color: #1c2024;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #E28714;
    box-shadow: 0 0 0 3px rgba(226, 135, 20, 0.16);
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.publish-submit {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: #E28714;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.publish-submit:hover:not(:disabled) {
    background: #c9740d;
    box-shadow: 0 10px 22px rgba(226, 135, 20, 0.28);
    transform: translateY(-1px);
}

.publish-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.publish-form-status {
    margin: 16px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.publish-form-status.is-success {
    padding: 12px 14px;
    border: 1px solid #b7e4c7;
    border-radius: 10px;
    background: #e8f8ef;
    color: #146c43;
}

.publish-form-status.is-error {
    padding: 12px 14px;
    border: 1px solid #f5c2bd;
    border-radius: 10px;
    background: #fdecea;
    color: #a5281b;
}

.publish-privacy {
    margin: 14px 0 0;
    color: #7b848e;
    font-size: 0.78rem;
    line-height: 1.5;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:focus-visible {
    outline: 3px solid #1c2024;
    outline-offset: 3px;
}

.whatsapp-float i {
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #page-publish {
        padding-top: 92px;
    }

    .publish-section {
        padding: 40px 20px 72px;
    }

    .publish-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 760px;
    }

    .publish-info {
        padding-top: 0;
    }

    .publish-form {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    #page-publish {
        padding-top: 74px;
    }

    .navbar-logo {
        order: 1;
    }

    .mobile-quick-link {
        order: 2;
        margin-left: auto;
    }

    .mobile-publish-link {
        display: inline-flex;
        order: 3;
        align-items: center;
        justify-content: center;
        padding: 8px 11px;
        border-radius: 8px;
        background: #E28714;
        color: #ffffff;
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-publish-link.active {
        background: #c9740d;
    }

    .menu-toggle {
        order: 4;
    }

    .publish-section {
        padding: 28px 16px 64px;
    }

    .publish-container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .publish-info {
        padding-top: 0;
    }

    .publish-info h1 {
        font-size: 2.05rem;
    }

    .publish-lead {
        font-size: 0.98rem;
    }

    .publish-benefits {
        margin-top: 24px;
    }

    .publish-form {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .publish-form h2 {
        font-size: 1.25rem;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .footer-copyright {
        padding-bottom: 72px;
    }
}

@media (max-width: 359px) {
    .mobile-quick-link {
        padding: 0.5rem 0.65rem;
        font-size: 12.5px;
    }

    .mobile-publish-link {
        padding: 8px 9px;
        font-size: 12px;
    }

    .publish-form {
        padding: 20px 15px;
    }

    .publish-info h1 {
        font-size: 1.85rem;
    }
}



