/* =============================================
   TEMA ELEGANTE - Inmobiliaria Vives Lara
   Se carga DESPUÉS de main-styles.css.
   Para volver al diseño anterior, quitar su <link>.
   ============================================= */

:root {
    --navy: #0b2545;
    --navy-2: #13315c;
    --azul-marca: #1074CB;
    --plata: #9aa4b2;
    --plata-claro: #e9edf2;
    --crema: #f7f4ee;
    --tinta: #1c2433;
    --gris: #6b7280;
    --linea: #e8e2d6;
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    font-family: var(--sans);
    color: var(--tinta);
    background-color: var(--crema);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Tipografía de títulos ---------- */
.hero-title,
.section-title,
.cta-text h2,
.detail-header h1,
.sidebar-filters h3,
.static-page-content h1,
.locations-section .section-title,
.feature-item h3 {
    font-family: var(--serif);
    letter-spacing: 0.2px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 22px;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--plata), transparent);
    margin: 18px auto 0;
}

.section-subtitle {
    color: var(--gris);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-eyebrow {
    color: var(--plata);
    letter-spacing: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---------- Header ---------- */
.header-fijo {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    box-shadow: 0 2px 18px rgba(11, 37, 69, 0.35);
    border-bottom: 1px solid rgba(210, 217, 227, 0.4);
    padding: 10px 0;
}

.header-socials a {
    background-color: transparent;
    border: 1px solid rgba(210, 217, 227, 0.4);
    color: var(--plata-claro);
}

.header-socials a:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}

.header-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 6px;
    margin: 0 10px;
    position: relative;
    color: #eef2f8;
    background: transparent;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--plata);
    transition: width 0.3s ease, left 0.3s ease;
}

.header-nav a:hover {
    background: transparent;
    color: var(--plata-claro);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
    left: 0;
}

.header-nav a.active {
    background: transparent;
    color: var(--plata-claro);
    border-bottom: none;
}

/* ---------- Hero ---------- */
.hero-section {
    height: 82vh;
    min-height: 560px;
}

.hero-section::before {
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.55) 0%, rgba(11, 37, 69, 0.35) 45%, rgba(11, 37, 69, 0.78) 100%);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--plata-claro);
    margin-bottom: 42px;
    font-weight: 500;
}

.hero-search-form {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 14px;
    gap: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-top: 3px solid var(--plata);
}

.dropdown-toggle {
    background-color: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 8px;
    color: var(--tinta);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 14px 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: #fff;
    border-color: var(--plata);
}

.dropdown-toggle i {
    color: var(--plata);
    font-size: 0.75rem;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(11, 37, 69, 0.18);
    border: 1px solid var(--linea);
}

.dropdown-menu li a:hover {
    background-color: var(--crema);
    color: var(--navy);
}

#price-value {
    color: var(--navy);
}

.btn {
    font-family: var(--sans);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
    border-radius: 8px;
}

.btn-buscar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 15px 38px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(11, 37, 69, 0.35);
}

.btn-buscar:hover {
    background: linear-gradient(135deg, var(--navy-2) 0%, #1d4580 100%);
    transform: translateY(-1px);
}

/* ---------- Propiedades destacadas ---------- */
.featured-properties {
    background-color: #fff;
    padding: 90px 5%;
}

.filter-group {
    gap: 10px;
    margin-bottom: 26px;
}

.filter-btn {
    background-color: transparent;
    color: var(--navy);
    border: 1px solid var(--linea);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 10px 28px;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background-color: var(--crema);
    border-color: var(--plata);
    color: var(--navy);
}

.filter-btn.active {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--plata-claro);
}

.filter-location-link {
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--gris);
    transition: color 0.2s ease;
}

.filter-location-link:hover,
.filter-location-link.active {
    color: var(--navy);
}

.filter-location-link.active::after {
    height: 2px;
    background-color: var(--plata);
}

/* ---------- Tarjetas ---------- */
a.property-card {
    border-radius: 6px;
    border: 1px solid var(--linea);
    box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(11, 37, 69, 0.16);
    border-color: var(--plata-claro);
}

.property-image-container {
    overflow: hidden;
}

.property-image-container img {
    transition: transform 0.8s ease;
}

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

.property-content {
    padding: 24px 22px 22px;
}

.property-title {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
}

.property-location {
    color: var(--gris);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
}

.property-features {
    border-bottom: 1px solid var(--linea);
}

.feature {
    color: var(--tinta);
    font-size: 0.82rem;
}

.feature i {
    color: var(--plata);
}

.property-price {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
}

.card-nav-arrow {
    background-color: rgba(11, 37, 69, 0.7);
}

/* ---------- ¿Por qué elegirnos? ---------- */
.why-choose-us {
    background-color: var(--crema);
    padding: 90px 5%;
}

.feature-item h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
}

.feature-item p {
    color: var(--gris);
    line-height: 1.8;
}

.why-choose-us .feature-item img {
    filter: saturate(0.9);
}

/* ---------- CTA ---------- */
.cta-section {
    background-color: #fff;
    padding: 90px 5%;
}

.cta-container {
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(11, 37, 69, 0.14);
    border: 1px solid var(--linea);
    overflow: hidden;
}

.cta-text {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
}

.cta-text h2 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 600;
}

.cta-text p {
    color: #d6deeb;
    line-height: 1.8;
}

.btn-cta {
    background: transparent;
    border: 1px solid var(--plata);
    color: var(--plata-claro);
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #fff;
    color: var(--navy);
}

/* ---------- Zonas ---------- */
.locations-section {
    background: linear-gradient(180deg, var(--navy) 0%, #081a33 100%);
    padding: 90px 5%;
    color: #fff;
}

.locations-section .section-title {
    color: #fff;
}

.locations-section .section-title::after {
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

.locations-section .section-subtitle {
    color: #b9c4d6;
}

.locations-section .section-eyebrow {
    color: var(--plata-claro);
}

.location-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.18);
}

.location-card-content {
    background: linear-gradient(180deg, transparent 0%, rgba(11, 37, 69, 0.88) 100%);
}

.location-card-content h3 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
}

.more-details {
    white-space: nowrap;
    font-size: 0.7rem;
    color: #fff;
    letter-spacing: 2.5px;
}

/* ---------- Contacto ---------- */
.contact-section {
    background-color: #fff;
    padding: 90px 5%;
}

.contact-icon-item img {
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.15);
}

.contact-icon-item strong {
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
}

.contact-icon-item span {
    color: var(--gris);
}

.form-control {
    background-color: var(--crema);
    border: 1px solid var(--linea);
    border-bottom: 2px solid var(--linea);
    border-radius: 6px;
    font-family: var(--sans);
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--plata);
    border-bottom: 2px solid var(--plata);
    box-shadow: 0 0 0 3px rgba(154, 164, 178, 0.25);
}

.btn-enviar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--plata-claro);
    border-radius: 6px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.btn-enviar:hover {
    background: var(--navy-2);
    color: #fff;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    border-top: 2px solid var(--plata);
    padding: 40px 0;
}

.footer-logo a,
.footer-copy p {
    color: #aebbd0;
}

.footer-logo a:hover {
    color: var(--plata-claro);
}

.footer-contacto a {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--plata-claro);
}

/* ---------- Página de propiedades ---------- */
.sidebar-filters {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}

.sidebar-filters h3 {
    font-weight: 600;
    font-size: 1.7rem;
    border-bottom: 1px solid rgba(210, 217, 227, 0.4);
}

.filter-list label {
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.custom-checkbox {
    border-radius: 3px;
    border-color: var(--plata);
}

.custom-checkbox::after {
    color: var(--navy);
}

.main-content-filters {
    background-color: var(--crema);
}

/* ---------- Página de detalle ---------- */
.detail-header h1 {
    font-weight: 600;
    color: var(--navy);
}

.detail-header .property-price {
    color: var(--plata);
}

.detail-features-bar i,
.detail-features-bar .feature-item i {
    color: var(--plata);
}

.detail-description-section h3,
.detail-map-section h3,
.detail-table-blue h3 {
    font-family: var(--serif);
    font-weight: 600;
}

.gallery-thumbnails .thumbnail.active {
    border-color: var(--plata);
}

.detail-table-blue {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}

/* ---------- Selector de idioma ---------- */
.header-info {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 22px;
    border-left: 1px solid rgba(210, 217, 227, 0.35);
    color: rgba(233, 237, 242, 0.5);
}

.lang-switch button {
    background: transparent;
    border: none;
    color: rgba(233, 237, 242, 0.65);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-switch button:hover {
    color: #fff;
}

.lang-switch button.activo {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* ---------- Proceso: pasos numerados ---------- */
.proceso {
    background-color: var(--crema);
    padding: 90px 5%;
    text-align: center;
}

.proceso-pasos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 46px auto 0;
    position: relative;
}

/* línea que une los círculos */
.proceso-pasos::before {
    content: '';
    position: absolute;
    top: 29px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--linea);
}

.paso {
    position: relative;
    padding: 0 8px;
}

.paso-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    box-shadow: 0 0 0 6px var(--crema), 0 8px 20px rgba(11, 37, 69, 0.22);
    transition: transform 0.3s ease, background 0.3s ease;
}

.paso:hover .paso-numero {
    transform: translateY(-4px);
    background: var(--navy-2);
}

.paso h3 {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.paso p {
    color: var(--gris);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---------- Detalles finos ---------- */
::selection {
    background: #cfd6e0;
    color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--plata);
    outline-offset: 2px;
}

/* ---------- Página 404 ---------- */
.pagina-404 {
    text-align: center;
    padding: 90px 20px 110px;
}

.pagina-404 .codigo-404 {
    font-family: var(--serif);
    font-size: 7rem;
    font-weight: 600;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 8px;
}

.pagina-404 h1 {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 14px;
}

.pagina-404 p {
    color: var(--gris);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.acciones-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.acciones-404 .btn {
    display: inline-block;
}

.btn-enlace-404 {
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--plata);
    padding-bottom: 3px;
}

.btn-enlace-404:hover {
    color: var(--navy-2);
    border-bottom-color: var(--navy);
}

/* ---------- Celular ---------- */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 520px;
        padding: 40px 5%;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 26px;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-properties,
    .why-choose-us,
    .proceso,
    .cta-section,
    .locations-section,
    .contact-section {
        padding: 56px 5%;
    }

    .header-nav a {
        margin: 0;
        font-size: 0.74rem;
        letter-spacing: 1.5px;
        padding: 8px 4px;
    }

    .header-nav a::after {
        bottom: 0;
    }

    .header-info {
        width: 100%;
        gap: 8px;
    }

    .header-info .header-nav {
        flex: 1;
    }

    .lang-switch {
        padding-left: 10px;
    }

    .proceso-pasos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 16px;
        margin-top: 34px;
    }

    .proceso-pasos::before {
        display: none;
    }

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

    .sidebar-filters {
        padding: 20px 5%;
    }

    .sidebar-filters .filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .main-content-filters {
        padding: 20px 4%;
    }

    .properties-grid,
    .main-content-filters .properties-grid {
        grid-template-columns: 1fr;
    }
}
