/* ==========================================================================
   ESTILOS.CSS — SINCOMI
   ==========================================================================
   Variables y Reset
   Tipografía
   Utilidades
   Layout Base
   Topbar
   Header Desktop
   Header Mobile
   Home
   Secciones
   Complejos
   Departamentos
   Componentes
   Login
   Footer
   Responsive
   ============================================================== */

/* ==========================================================================
   Variables y Reset
   ========================================================================== */

:root {
    /* Alturas */
    --topbar-h: 36px;
    --header-h: 72px;

    /* Colores */
    --tiza: #fdfcf7;
    --arena: #E5D9C5;
    --crema: #F2EADF;

    /* Texto */
    --text-dark: #222;
    --text-medium: #555;
    --text-light: #aaa;

    /* Tipografía */
    --font-base: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-size-base: 15px;
    --line-height: 1.6;

    /* Espaciados */
    --gap-sm: 15px;
    --gap-md: 25px;
    --gap-lg: 40px;

    /* Bordes */
    --border-color: #dcd4c9;
    --border-radius: 4px;

    /* Sombras */
    --shadow-sm: 0 2px 6px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ---------- Reset ---------- */

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--crema);
    color: var(--text-dark);
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    overflow-x: hidden;
    padding-top: calc(var(--topbar-h) + var(--header-h));
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font: inherit;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */

h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.container {
    width: 92%;
    margin: 0 auto;
}

/* ==========================================================================
   Layout Base
   ========================================================================== */

.layout {
    display: flex;
    gap: var(--gap-md);
    width: 92%;
    margin: 0 auto;
    padding-top: 20px;
    align-items: flex-start;
}

.layout-content{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

/* Columna principal / Izquierda */
.section {
    flex: 0 0 78%;
}

.container-izquierda {
    flex: 1;
    min-width: 0;
}

/* Sidebar / Derecha */
.menuLateral {
    flex: 0 0 20%;
}

.container-derecha {
    width: 360px;
    flex-shrink: 0;
}

.menuLateral ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.menuLateral ul li a {
    color: #333;
    font-size: 14px;
    transition: color .2s ease;
}

.menuLateral ul li a:hover {
    color: #000;
    font-weight: bold;
}

/* ---------- Grilla ---------- */

.grid {
    display: grid;
    width: 100%;
    gap: var(--gap-md);
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-h);
    background-color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    color: #fff;
    z-index: 2100;
}

.topbar .left,
.topbar .right {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: 13px;
}

.topbar a {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
    transition: transform .2s ease, font-weight .2s ease, opacity .2s ease;
}

.topbar a:hover {
    opacity: 0.8;
    transform: none;
    font-weight: 600;
}

/* ==========================================================================
   Header Desktop
   ========================================================================== */

.header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 2000;
    transition: background .4s ease, box-shadow .4s ease;
}

.header .desktop-only {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--gap-lg);
    padding: 0 5%;
    background: transparent;
    transition: background .4s ease, box-shadow .4s ease;
}

/* Estado scroll */
.header.scrolled .desktop-only {
    background: var(--tiza);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #eee;
}

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

.header .nav {
    display: flex;
    gap: 20px;
}

.header .nav a {
    font-size: 14px;
    color: var(--text-dark);
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
    transition: transform .2s ease, font-weight .2s ease, opacity .2s ease;
}

.header .nav a:hover {
    opacity: 0.9;
    font-weight: 600;
    transform: translateY(-1px) scale(1.02);
}

/* ==========================================================================
   Header Mobile
   ========================================================================== */

.mobile-only .header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: var(--tiza);
    box-shadow: var(--shadow-sm);
    z-index: 2200;
}

/* Reset botón hamburguesa */
.mobile-only button,
.mobile-only .header-bar div,
.mobile-only .header-bar i {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Menú mobile */
.mobile-only .nav {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    display: none;
    flex-direction: column;
    padding: 20px 5%;
    background: var(--text-dark);
    z-index: 2100;
    overflow-y: auto;
}

.mobile-only .nav.show {
    display: flex;
}

.mobile-only .nav a {
    display: inline-block;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid #333;
    text-decoration: none;
    font-weight: 400;
    transition: transform .2s ease, font-weight .2s ease, opacity .2s ease;
}

.mobile-only .nav a:hover {
    font-weight: 600;
    transform: translateY(-1px) scale(1.02);
    opacity: 0.9;
}

/* ==========================================================================
   Home
   ========================================================================== */

.home-container {
    width: 92%;
    margin: 0 auto;
    padding: 40px 0 80px;
    min-height: calc(100vh - 180px);
    position: relative;
    overflow: hidden;
}

/* Líneas decorativas */
.home-container::before,
.home-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(205,195,185,.45);
    z-index: 0;
}

.home-container::before { left: 5%; }
.home-container::after { right: 5%; }

/* ---------- HOME CARD TOP ---------- */

.home-card-top {
    position: relative;
    display: flex;
    width: 85%;
    margin: 80px 0 0 10%;
    padding: 70px 50px;
    background: #F4EEE8;
    box-shadow:
        0 18px 45px rgba(80,70,60,.12),
        0 4px 12px rgba(80,70,60,.06);
    z-index: 10;
}

/* reset interno */
.home-card-top * {
    background: transparent;
}

.pink-square {
    position: absolute;
    top: -35px;
    left: -20px;
    width: 70px;
    height: 70px;
    background: #EECFD4;
    box-shadow: 0 10px 25px rgba(150,120,130,.18);
    z-index: 20;
}

.card-content-left,
.card-content-right {
    flex: 1;
}

.card-title {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.15;
    color: #13213B;
}

.card-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #5F6676;
}

.card-content-right p {
    font-size: 15px;
    line-height: 1.9;
    color: #4F5563;
    margin: 0;
}

.card-content-right a {
    font-weight: 600;
    color: #23314D;
}

.card-content-right a:hover {
    text-decoration: underline;
}

/* ---------- HOME BOTTOM ---------- */

.home-bottom {
    display: flex;
    width: 82%;
    margin: -70px 0 0 5%;
    align-items: flex-start;
    position: relative;
    z-index: 8;
}

/* CONTACT BOX */
.contact-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 34%;
    min-height: 210px;
    margin-top: 65px;
    padding: 35px 42px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    position: relative;
}

.contact-box .card-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
    color: #5F6676;
    margin-bottom: 14px;
}

.contact-message {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    color: #33425C;
    margin: 0 0 24px;
    white-space: nowrap;
}

.btn-contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 260px;
    padding: 15px 24px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
    background: #EECFD4;
    color: #23314D;
    transition: .25s ease;
    text-decoration: none;
}

.btn-contact:hover {
    transform: scale(1.06);
    font-weight: 700;
    background: #e8c0c8;
    box-shadow: 0 10px 25px rgba(80,70,60,.18);
}

/* imagen */
.property-image {
    flex: 1;
    min-height: 500px;
    margin-left: -30px;
    background-size: cover;
    background-position: center;
}

/* info bar */
.home-info-bar {
    display: flex;
    width: 78%;
    margin: -35px 0 0 5%;
    padding: 55px 60px;
    background: #495765;
    color: #fff;
    gap: 80px;
}

.info-item { flex: 1; }

.info-label {
    font-size: 14px;
    opacity: .75;
    margin-bottom: 12px;
}

.info-value {
    font-size: 20px;
    font-weight: 300;
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.faq-item {
    background: transparent;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2b3d51;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    padding-left: 5px;
}

/* ==========================================================================
   Complejos
   ========================================================================== */
.complejo-info {
    display: flex;
    width: 95%;
    max-width: 95%;
    margin: 80px auto;
    gap: 40px;
    align-items: flex-start;
}

/* contenido izquierda */
.complejo-content {
    flex: 1;
    min-width: 0;
}

/* bloque general */
.complejo-header{
    padding-top:30px;
}

.complejo-block {
    margin-bottom: 70px;
}

.complejo-title {
    font-size: 34px;
    font-weight: 300;
    color: #23314D;
    margin-bottom: 14px;
}

.complejo-subtitle {
    font-size: 15px;
    letter-spacing: 2px;
    color: #707887;
    margin-bottom: 12px;
}

.complejo-text {
    font-size: 15px;
    line-height: 1.9;
    color: #4F5563;
}

.complejo-text p {
    margin-bottom: 14px;
}

/* Contenedor principal que envuelve todo el bloque del carrusel */
.complejo-page {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
}

.complejo-slider-wrapper {
    position: relative;
    width: 100%;
    /* max-width: 1200px;  <- eliminar esta línea */
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
}

/* La "ventana" por donde se ven las fotos. Corta lo que sobresale */
.complejo-slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px; /* Opcional, para redondear bordes */
}

/* La tira larga que contiene todas las fotos en una sola línea horizontal */
#sliderTrack {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Cada una de las diapositivas */
.slider-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.slider-item img {
    width: 100%;
    height: 450px; /* Ajustá la altura según tu diseño */
    object-fit: cover;
    display: block;
}

/* Flechas de Navegación del Complejo */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10; /* Evita que las fotos tapen el clic */
    transition: background 0.2s, transform 0.2s;
}

.slider-arrow:hover {
    background: #fff;
}

.slider-arrow.left {
    left: 15px;
}

.slider-arrow.right {
    right: 15px;
}

/* CONTENEDOR DEL CARRUSEL */
.slider-track {
    flex-wrap: nowrap;
    overflow: visible;
}

/* CADA SLIDE */
.slider-item {
    flex: 0 0 100%;
    min-width: 100%;
}

/* IMAGEN */
.slider-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* ---------- TAGS / AMENITIES ---------- */

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    min-height: 52px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(70,70,70,.10);
    border-radius: 14px;
    transition: .25s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.40);
    border-color: rgba(70,80,100,.16);
}

.tag-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: .82;
}

.tag-item span {
    font-size: 14px;
    font-weight: 500;
    color: #33425C;
}

/* ==========================================================================
   Departamentos
   ========================================================================== */


.departamento-hero {
    position: relative;
    width: 100vw;
    height: 680px;
    margin-top: calc(-1 * var(--header-h));
    overflow: hidden;
    background: #222;
}

/* Oscurecimiento progresivo para poder leer el título */
.departamento-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(15, 22, 32, .72) 0%,
            rgba(15, 22, 32, .35) 48%,
            rgba(15, 22, 32, .05) 75%
        ),
        linear-gradient(
            0deg,
            rgba(15, 22, 32, .45) 0%,
            transparent 45%
        );
}

.departamento-hero-imagen {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Información superpuesta */
.departamento-hero-contenido {
    position: absolute;
    left: 5%;
    bottom: 115px;
    width: min(900px, 90%);
    z-index: 2;
    color: #fff;
}

.departamento-hero-tipo {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: .85;
}

.departamento-hero-titulo {
    max-width: 700px;
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .25);
}

.departamento-hero-detalles {
    margin: 22px 0 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .4px;
    color: rgba(255, 255, 255, .92);
}

.departamento-hero-aviso {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .7px;
    color: rgba(255, 255, 255, .72);
    white-space: nowrap;
}

/* ==========================================================================
   Departamento — Contenido
   ========================================================================== */

.departamento-layout {
    padding-top: 65px;
    padding-bottom: 60px;
}

.departamento-contenido {
    min-width: 0;
}

.departamento-contenido .complejo-slider-wrapper {
    width: 100%;
    margin: 0 0 55px;
}

/* Altura específica del carrusel de departamentos */
.departamento-contenido .slider-item img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
}

/* Columna reservada para precio y consulta */
.departamento-sidebar {
    min-height: 200px;
}


/* ==========================================================================
   Componentes
   ========================================================================== */

/* ---------- FORMULARIO CONSULTA ---------- */
.consulta-form {
    width: 320px;
    flex-shrink: 0;
}

.consulta-box {
    width: 100%;
    padding: 36px;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.form-header {
    margin-bottom: 25px;
}

.form-mini {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6f5f4d;
    margin-bottom: 8px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    color: #1f1f1f;
}

.form-header p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.consulta-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consulta-box input,
.consulta-box textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    border: 1px solid #d8d8d8;
    background: #fff;
    outline: none;
    transition: .25s;
    box-sizing: border-box;
}

.consulta-box textarea {
    min-height: 130px;
    resize: vertical;
}

.consulta-box input:focus,
.consulta-box textarea:focus {
    border-color: #b69367;
    box-shadow: 0 0 0 3px rgba(182,147,103,.15);
}

.consulta-box button {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: #1e2b39;
    color: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.consulta-box button:hover {
    background: #b69367;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- CONTACTO POR WHATSAPP ---------- */

.consulta-whatsapp {
    margin-top: 22px;
}
 
.consulta-separador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #595959;
    font-size: 12px;
    text-align: center;
}

.consulta-separador::before,
.consulta-separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,.12);
}

.btn-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #087a3f;
    background: #087a3f;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-whatsapp:hover {
    background: #066532;
    border-color: #066532;
}

.btn-whatsapp:focus {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37,211,102,.22);
}

.btn-whatsapp i {
    font-size: 21px;
}

/* ---------- MAPAS / UBICACIÓN ---------- */
.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0 35px;
}

.map-box {
    border: 1px solid rgba(70,70,70,.10);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.3);
}

.map-title {
    padding: 18px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #23314D;
    border-bottom: 1px solid rgba(70,70,70,.08);
}

.map-box iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* ---------- CERCANÍAS ---------- */
.location-benefits {
    margin-top: 30px;
    padding: 32px;
    border-radius: 18px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(70,70,70,.10);
}

.location-benefits h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #23314D;
}

.nearby-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255,255,255,.35);
    border-radius: 12px;
}

.location-item span {
    font-size: 24px;
}

.location-item strong {
    flex: 1;
    color: #23314D;
}

.location-item small {
    font-size: 14px;
    color: #777;
}

/* ---------- TABLA UNIDADES ---------- */
.tabla-unidades-container {
    width: 100%;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

.tabla-unidades-header {
    display: flex;
    background: #1a2e3b;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tabla-unidades-fila {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: background .2s ease;
}

.tabla-unidades-fila:hover {
    background: #f8f9fa;
}

.tabla-unidades-fila:last-child {
    border-bottom: none;
}

.tabla-unidades-header > div,
.tabla-unidades-fila > div {
    padding: 14px 16px;
}

/* Proporciones para Escritorio */
@media (min-width: 769px) {
    .col-dormitorios {
        flex: 0 0 55%;
        max-width: 55%;
    }
    .col-superficie {
        flex: 0 0 15%;
        max-width: 15%;
        text-align: center;
    }
    .col-precio {
        flex: 0 0 15%;
        max-width: 15%;
        text-align: center;
    }
    .col-accion {
        flex: 0 0 15%;
        max-width: 15%;
        text-align: right;
    }
}

.btn-ver-ficha {
    display: inline-block;
    padding: 6px 12px;
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid #1a2e3b;
    color: #1a2e3b;
    border-radius: 4px;
    text-decoration: none;
    transition: .2s ease;
}

.btn-ver-ficha:hover {
    background: #1a2e3b;
    color: #fff;
}

/* ==========================================================================
   Login
   ========================================================================== */

.login-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border: 1px solid var(--border-color);
    background: var(--tiza);
}

.login-box h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 25px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.login-form input:focus {
    border-color: var(--arena);
    box-shadow: 0 0 0 3px rgba(229,217,197,.4);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid var(--border-color);
    background: var(--arena);
    cursor: pointer;
    transition: .2s ease;
}

.btn-login:hover {
    background: #d4c5ab;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: 40px;
    padding: 40px 5%;
    background: var(--text-dark);
    color: #fff;
}

.footer .columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer .footer-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer ul li {
    padding: 4px 0;
}

.footer ul li a {
    font-size: 14px;
    color: #ccc;
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
    transition: transform .2s ease, font-weight .2s ease, opacity .2s ease;
}

.footer ul li a:hover {
    color: #fff;
    transform: none;
    font-weight: 600;
}

.footer-breadcrumb {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: var(--text-light);
}

.footer-links {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-links p {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   Pagina Error 404
   ========================================================================== */
.error404-opciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0 50px;
}

.error404-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(70,70,70,.12);
    border-radius: 10px;

    color: #23314d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.error404-link:hover,
.error404-link:focus {
    color: #23314d;
    text-decoration: none;
    background: rgba(255,255,255,.65);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

.error404-link strong {
    font-size: 18px;
    font-weight: 700;
    color: #23314d;
    text-decoration: none;
}

.error404-link span {
    font-size: 15px;
    font-weight: 500;
    color: #707887;
    text-decoration: none;
}
@media (max-width: 768px) {
    .error404-opciones {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Evita desplazamiento de la página cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden;
}


/* ==========================================================================
   Tablet — hasta 992px
   ========================================================================== */

@media (max-width: 992px) {

    /* Layout general */

    .layout,
    .complejo-info {
        gap: 28px;
    }

    .layout-content {
        gap: 28px;
    }

    .container-derecha {
        width: 300px;
    }

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

    /* Home */

    .home-card-top {
        flex-direction: column;
        width: 88%;
        padding: 50px 40px;
    }

    .card-content-left {
        margin-bottom: 25px;
    }

    .home-bottom {
        width: 88%;
        flex-direction: column;
    }

    .contact-box {
        width: 100%;
        margin-top: 0;
    }

    .property-image {
        width: 100%;
        min-height: 380px;
        margin-left: 0;
    }

    .home-info-bar {
        width: 88%;
        gap: 30px;
        padding: 45px 40px;
    }

    /* Complejos */

    .complejo-info {
        width: 92%;
    }

    .slider-item img {
        height: 500px;
    }

    /* Departamentos */

    .departamento-hero {
        height: 560px;
    }

    .departamento-hero-contenido {
        bottom: 50px;
    }

    .departamento-contenido .slider-item img {
        height: 460px;
    }

    /* Componentes */

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

    .nearby-list {
        grid-template-columns: 1fr;
    }

    /* Footer */

    .footer .columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 25px;
    }
}

/* ==========================================================================
   Mobile — hasta 768px
   ========================================================================== */

@media (max-width: 768px) {

    :root {
        --header-h: 56px;
    }

    body {
        padding-top: calc(var(--topbar-h) + var(--header-h));
    }

    /* Mostrar y ocultar encabezados */

    .desktop-only,
    .header .desktop-only,
    .topbar .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    /* Topbar */

    .topbar {
        padding: 0 16px;
    }

    .topbar .left {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        text-align: center;
    }

    /* Header móvil */

    .header {
        top: var(--topbar-h);
        height: var(--header-h);
    }

    .mobile-only .header-bar {
        top: var(--topbar-h);
    }

    .mobile-only .nav {
        top: calc(var(--topbar-h) + var(--header-h));
        height: calc(100dvh - var(--topbar-h) - var(--header-h));
        padding: 18px 20px;
    }

    body.scrolled .mobile-only .header-bar {
        top: 0;
    }

    body.scrolled .mobile-only .nav {
        top: var(--header-h);
        height: calc(100dvh - var(--header-h));
    }

    .mobile-only .nav ul {
        width: 100%;
    }

    .mobile-only .nav li {
        width: 100%;
    }

    .mobile-only .nav a {
        display: block;
        width: 100%;
    }

    .menu-toggle {
        padding: 8px;
        font-size: 26px;
        line-height: 1;
        color: var(--text-dark);
    }

    .store-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
    }

    /* Contenedores generales */

    .container,
    .layout,
    .complejo-page {
        width: 92%;
    }

    .layout,
    .layout-content,
    .complejo-info {
        flex-direction: column;
    }

    .layout-content {
        width: 100%;
        gap: 35px;
    }

    .section,
    .menuLateral,
    .container-izquierda,
    .container-derecha,
    .complejo-content,
    .consulta-form {
        width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }

    .container-derecha,
    .consulta-form {
        flex-shrink: 1;
    }

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

    /* Home */

    .home-container {
        width: 100%;
        padding: 25px 0 50px;
    }

    .home-container::before,
    .home-container::after {
        display: none;
    }

    .home-card-top {
        width: auto;
        margin: 35px 20px 0;
        padding: 45px 25px 35px;
    }

    .pink-square {
        top: -20px;
        left: -8px;
        width: 52px;
        height: 52px;
    }

    .card-title {
        font-size: 38px;
    }

    .card-content-left {
        margin-bottom: 22px;
    }

    .card-content-right p {
        font-size: 14px;
        line-height: 1.75;
    }

    .home-bottom {
        width: auto;
        margin: 25px 20px 0;
    }

    .contact-box {
        min-height: auto;
        margin: 0;
        padding: 30px 25px;
    }

    .contact-message {
        font-size: 25px;
        white-space: normal;
    }

    .btn-contact {
        width: 100%;
    }

    .property-image {
        min-height: 300px;
    }

    .home-info-bar {
        flex-direction: column;
        width: auto;
        margin: 0 20px;
        padding: 30px 25px;
        gap: 22px;
    }

    .info-item {
        width: 100%;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    .info-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .info-label {
        margin-bottom: 5px;
    }

    .info-value {
        font-size: 18px;
    }

    /* Complejos */

    .complejo-header {
        padding-top: 15px;
    }

    .complejo-info {
        width: 92%;
        margin: 45px auto;
        gap: 35px;
    }

    .complejo-block {
        margin-bottom: 45px;
    }

    .complejo-title {
        font-size: 28px;
    }

    .complejo-slider-container {
        border-radius: 8px;
    }

    .slider-item img {
        height: 360px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .slider-arrow.left {
        left: 8px;
    }

    .slider-arrow.right {
        right: 8px;
    }

    .tags-grid {
        gap: 10px;
    }

    .tag-item {
        width: 100%;
    }

    /* Departamentos */

    .departamento-hero {
        width: 100%;
        height: 440px;
        margin-top: 0;
    }

    .departamento-hero-contenido {
        left: 6%;
        bottom: 35px;
        width: 88%;
    }

    .departamento-hero-titulo {
        font-size: 32px;
    }

    .departamento-hero-detalles {
        margin-top: 15px;
        font-size: 14px;
    }

    .departamento-hero-aviso {
        font-size: 11px;
        letter-spacing: .2px;
        white-space: normal;
    }

    .departamento-layout {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .departamento-contenido .complejo-slider-wrapper {
        margin-bottom: 40px;
    }

    .departamento-contenido .slider-item img {
        height: 360px;
    }

    /* Formularios */

    .consulta-box {
        padding: 28px 22px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    /* Mapas y cercanías */

    .maps-container {
        gap: 20px;
    }

    .map-box iframe {
        height: 300px;
    }

    .location-benefits {
        padding: 24px 18px;
    }

    .location-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .location-item strong {
        min-width: calc(100% - 50px);
    }

    .location-item small {
        width: 100%;
        padding-left: 39px;
    }

    /* Tabla de unidades convertida en fichas */

    .tabla-unidades-container {
        border: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .tabla-unidades-header {
        display: none;
    }

    .tabla-unidades-fila {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }

    .tabla-unidades-fila > div {
        max-width: none;
        padding: 8px;
        text-align: left;
    }

    .tabla-unidades-fila .col-dormitorios {
        grid-column: 1 / -1;
        font-weight: 600;
    }

    .tabla-unidades-fila .col-accion {
        grid-column: 1 / -1;
    }

    .btn-ver-ficha {
        width: 100%;
        padding: 10px 12px;
        text-align: center;
    }

    /* Login */

    .login-container {
        width: 92%;
        margin: 0 auto;
    }

    .login-box {
        padding: 30px 22px;
    }

    /* Footer */

    .footer {
        margin-top: 25px;
        padding: 35px 6%;
    }

    .footer .columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-links {
        margin-top: 25px;
    }
}

/* ==========================================================================
   Mobile pequeño — hasta 480px
   ========================================================================== */

@media (max-width: 480px) {

    .home-card-top {
        margin-left: 14px;
        margin-right: 14px;
        padding: 40px 20px 30px;
    }

    .home-bottom,
    .home-info-bar {
        margin-left: 14px;
        margin-right: 14px;
    }

    .card-title {
        font-size: 30px;
    }

    .contact-message {
        font-size: 21px;
    }

    .btn-contact {
        font-size: 12px;
    }

    .property-image {
        min-height: 240px;
    }

    .slider-item img,
    .departamento-contenido .slider-item img {
        height: 290px;
    }

    .departamento-hero {
        height: 360px;
    }

    .departamento-hero-titulo {
        font-size: 27px;
    }

    .departamento-hero-tipo {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .departamento-hero-aviso {
        font-size: 10px;
    }

    .consulta-box {
        padding: 24px 16px;
    }

    .map-box iframe {
        height: 250px;
    }
}