@import url("https://fonts.googleapis.com/css2?family=GFS+Didot&family=Poppins:wght@300;400;500;600&display=swap");

:root {
    --brand-green: #3d5a44;
    --light-bg: #fefffb;
    --border-color: #e2e2d9;
}

body {
    color: #4A4A45;
    background: var(--light-bg);
    font-family: "Poppins", sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* CABECERA INTELIGENTE */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--light-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    padding: 20px 2%;
    transition: transform 0.4s;
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-box-small { border: none; background: transparent; padding: 0; }

.nav-brand-text p {
    line-height: 0.9;
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand-green);
    letter-spacing: 1px;
    font-family: 'GFS Didot', serif;
}

.nav-brand-text span {
    display: block;
    margin-top: 5px;
    font-size: 0.7rem;
    color: var(--brand-green);
    letter-spacing: 2px;
}

.nav-social-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    color: var(--brand-green);
    font-family: 'GFS Didot', serif;
    font-size: 0.95rem;
    cursor: pointer;
}

.insta-link {
    color: var(--brand-green);
    font-size: 1.2rem;
    text-decoration: none;
}

/* HERO DESIGN */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transform: scale(1.08);
    transition: opacity 2.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: heroZoom 9s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-link {
    font-family: "GFS Didot", serif;
    color: #FEFFFA !important;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 2px;
}

.hero-logo-box {
    width: 70px;
    height: 95px;
    border: 2px solid #FEFFFA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FEFFFA;
    font-size: 2rem;
}

/* GRID & CARDS */
.container {
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 40px 0 40px;
}

.title-lux {
    font-family: "GFS Didot", serif;
    font-size: 2.1rem;
    color: var(--brand-green);
    margin-bottom: 50px;
}

.grid-propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 10px;
}

.card-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.card-title-lux {
    font-family: "GFS Didot", serif;
    font-size: 1.8rem;
    color: var(--brand-green);
    margin-top: 15px;
}

/* FOOTER PREMIUM */
.main-footer {
    background-color: #3d4a3e;
    color: #FEFFFA;
    margin-top: 100px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    padding: 100px 5% 40px 5%;
}

.footer-nav a {
    color: #FEFFFA;
    text-decoration: none;
    font-size: 1.7rem;
    font-family: "GFS Didot", serif;
    display: block;
    margin-bottom: 12px;
}

.footer-big-phrase h1 {
    font-family: "GFS Didot", serif;
    font-size: clamp(3rem, 12vw, 15rem);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
}

.social-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-size: 1.4rem;
    padding-bottom: 10px;
}

/* Añadir esto a tu style.css al final */
.filter-group {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--brand-green);
    padding: 8px 20px;
    font-family: "GFS Didot", serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--brand-green);
    color: #FEFFFA;
    border-color: var(--brand-green);
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    display: flex;
}

.modal-content {
    background: #FEFFFA;
    padding: 60px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    border-radius: 0;
}

.about-title {
    font-family: "GFS Didot", serif;
    font-size: 3rem;
    color: var(--brand-green);
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.1rem;
    color: #4A4A45;
    line-height: 1.8;
    text-align: center;
}

/* DISEÑO LOGO SVG */
.main-logo-svg {
    width: 65%;
    /* Para dejar un margen elegante dentro del cuadro */
    height: 80%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* OPCIONAL: Si tu logo es negro, esto lo vuelve blanco nieve */
    transition: transform 0.5s ease;
}

.hero-logo-box:hover .main-logo-svg {
    transform: scale(1.1);
    /* Sutil efecto de zoom al pasar el ratón */
}

.hero-logo-box {
    width: 65px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Borde más fino para look minimal */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ALINEACIÓN PERFECTAMENTE HORIZONTAL */
.hero-nav-container {
    display: flex;
    align-items: center;
    /* ALINEACIÓN VERTICAL (Misma línea) */
    justify-content: center;
    /* CENTRADO HORIZONTAL */
    gap: 80px;
    /* Espacio entre los 3 elementos. Ajustar a tu gusto */
    width: 100%;
    margin: 0 auto;
}

.hero-link {
    font-family: 'GFS Didot', serif;
    color: #FEFFFA !important;
    font-size: 1.6rem;
    text-decoration: none;
    letter-spacing: 2.5px;
    text-transform: capitalize;
    flex-shrink: 0;
    /* Previene que el texto se deforme */
    transition: opacity 0.4s ease;
}

.hero-link:hover {
    opacity: 0.6;
}

.hero-logo-box {
    width: 70px;
    height: 95px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.main-logo-svg {
    width: 70%;
    height: 85%;
    object-fit: contain;
}

/* IMPORTANTE: ESTO EVITA QUE SE ROMPA EN MÓVIL */
@media (max-width: 600px) {
    .hero-nav-container {
        gap: 30px;
        /* Reducimos el espacio en pantallas pequeñas */
    }

    .hero-link {
        font-size: 1.1rem;
        /* Reducimos la letra en móvil */
    }

    .hero-logo-box {
        width: 50px;
        height: 70px;
    }
}

/* DISEÑO LOGO SVG SIN MARCO */
.hero-logo-box {
    width: 70px;
    /* Mantener el ancho del logo */
    height: 95px;
    /* Mantener el alto del logo */
    border: none;
    /* ELIMINAMOS EL BORDE */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: default;
    /* Si no es un enlace, quitamos la mano */
}

.main-logo-svg {
    width: 100%;
    /* Ahora el logo puede usar todo el espacio */
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Efecto sutil al pasar el ratón (Opcional) */
.hero-logo-box:hover .main-logo-svg {
    transform: scale(1.05);
    /* Muy ligero zoom */
}

/* DISEÑO GRID 2 COLUMNAS */
.grid-propiedades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Máximo 2 propiedades por fila */
    gap: 25px;
    margin-top: 30px;
}

.card-luxury {
    background: transparent;
    transition: transform 0.4s ease;
    border: none;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    display: block;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #eee;
    text-decoration: none;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body-lux {
    padding: 25px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title-lux {
    font-family: 'GFS Didot', serif;
    font-size: 1.4rem;
    color: #6F7F6A;
    margin: 0;
    line-height: 1.2;
}

.card-loc-lux {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4A4A45;
    margin: 10px 0;
    font-weight: 600;
}

.card-desc-lux {
    font-size: 0.85rem;
    color: #4A4A45;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CARACTERÍSTICAS (ICONOS) */
.card-specs-lux {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: #4A4A45;
    margin-top: auto;
    padding-top: 15px;
    flex-wrap: wrap;
}

.card-specs-lux span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-specs-lux i {
    color: #AEB9A6;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.card-specs-lux span:hover i {
    color: #4F5E4A;
}

/* FOOTER DE TARJETA (3 BLOQUES SIMÉTRICOS) */
.card-footer-lux {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #6F7F6A;
    height: 55px;
    align-items: center;
    margin-top: 0;
}

.footer-btn-lux {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: none;
    color: #6F7F6A;
    font-size: 26px;
    /* Max ~30px */
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-btn-lux:hover {
    color: #4F5E4A;
    background: transparent;
}

/* Tooltip Premium para Copiar Enlace */
.btn-share {
    position: relative;
}

.btn-share::after {
    content: "Enlace copiado";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--brand-green);
    color: #FEFFFA;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 99;
    letter-spacing: 0.5px;
}

.btn-share::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--brand-green) transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.btn-share.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-share.copied::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-price-lux {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #6F7F6A;
    letter-spacing: 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-price-lux:hover {
    color: #4F5E4A;
}

@media (max-width: 768px) {
    .grid-propiedades {
        grid-template-columns: 1fr;
        /* 1 columna en móvil */
    }
}

/* DISEÑO SOBRE NOSOTROS LUXURY */
.about-section {
    background-color: #f4f2ed;
    /* Crema suave idéntico a tu cabecera */
    padding: 10px 0 0 0;
    margin-top: 60px;
    text-align: center;
}

.about-title {
    font-family: 'GFS Didot', serif;
    font-size: 2.6rem;
    color: var(--brand-green);
    margin: 0;
    letter-spacing: 0;
}

.about-text {
    font-size: 1.1rem;
    color: #4A4A45;
    line-height: 1.8;
    max-width: 850px;
    margin: 30px auto;
}

/* IMAGEN FULL WIDTH (RELACIÓN 16:9) */
.about-img-full {
    width: 100%;
    max-width: 1320px;
    /* Alineada con el contenedor de arriba */
    margin: 60px auto 0 auto;
    height: auto;
    overflow: hidden;
}

.about-img-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 650px;
    
}

/* RESPONSIVE PARA MÓVIL */
@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }

    .about-text {
        font-size: 0.95rem;
        margin-top: 20px;
    }

    .about-img-full {
        margin-top: 40px;
    }
}

/* DISEÑO CONTACTO PREMIUMN */
.contact-section {
    padding: 0 0 30px 0;
    background: transparent;
    /* Mantenemos blanco o el fondo que desees */
    text-align: center;
}

.contact-form-wrapper {
    max-width: 500px;
    /* Ancho controlado del formulario */
    margin: 60px auto 0 auto;
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Espaciado idéntico a tu imagen */
}

/* Campos de texto elegantes */
.lux-input {
    background-color: #F1EFED;
    /* Crema suave neutro */
    border: none;
    padding: 18px 25px;
    font-family: 'GFS Didot', serif;
    /* Misma fuente que los títulos */
    font-size: 1.1rem;
    color: #4A4A45;
    width: 100%;
    box-sizing: border-box;
}

.lux-input::placeholder {
    color: #AAA;
    opacity: 1;
}

.lux-input:focus {
    outline: none;
    background-color: #ECEAE7;
}

/* Botón de enviar */
.lux-submit-btn {
    background-color: #7E8A7B;
    /* Verde oliva profundo atenuado */
    color: #FEFFFA;
    border: none;
    padding: 20px;
    font-family: 'GFS Didot', serif;
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 1px;
    margin-top: 20px;
}

.lux-submit-btn:hover {
    background-color: #6B7769;
    /* Oscurecer al pasar el ratón */
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        width: 90%;
    }
}

/* FILTRO DE LOCALIZACIÓN (DROPDOWN) */
.filter-wrapper {
    margin-bottom: 30px;
    text-align: right;
    padding: 0 10px;
}

.lux-select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 40px 12px 20px;
    font-family: 'GFS Didot', serif;
    font-size: 1.25rem;
    color: var(--brand-green);
    cursor: pointer;
    border-radius: 0;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233d5a44%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 55%;
    background-size: 12px auto;
    transition: all 0.3s ease;
}

.lux-select:focus,
.lux-select:hover {
    border-color: var(--brand-green);
    outline: none;
    background-color: var(--light-bg);
}

.lux-select option {
    font-family: 'Poppins', sans-serif;
    padding: 10px;
    background: #FEFFFA;
    color: #4A4A45;
}

.lux-select optgroup {
    background-color: #F4F2ED;
    color: var(--brand-green);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ENCABEZADO Y FILTRO ALINEADOS */
.propiedades-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 35px !important;
}

.header-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8rem;
    color: #4a5d4e;
    flex-shrink: 0;
}

.filter-wrapper-minimal {
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.minimal-select {
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    color: #4A4A45 !important;
    padding: 0 15px 0 0 !important;
    background-size: 9px auto !important;
    background-position: right top 60% !important;
    background-color: transparent !important;
    cursor: pointer;
    box-shadow: none !important;
}

.minimal-select:focus,
.minimal-select:hover {
    background-color: transparent !important;
    color: #222 !important;
    outline: none !important;
}

.minimal-select option {
    background-color: #FEFFFA !important;
    color: #4A4A45 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.95rem !important;
}

.minimal-select optgroup {
    background-color: #F4F2ED !important;
    color: #3d5a44 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}






/* Footer specific overrides */
.footer-contact-data a {
    color: #FEFFFA !important;
    text-decoration: none;
}

.footer-big-phrase {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.footer-big-phrase h1 {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-size: clamp(3rem, 11vw, 15rem);
}

.footer-big-phrase .social-corner {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0 10px 10px;
    margin: 0;
}

.footer-big-phrase .social-corner a i,
.footer-big-phrase .social-corner div i {
    color: #FEFFFA !important;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 5px;
}

.footer-brand {
    margin-bottom: 10px;
}

.footer-info .footer-brand p {
    white-space: nowrap;
    font-family: 'GFS Didot', serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 0px;
}

.footer-info .footer-brand span {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.footer-logo-box {
    width: 60px;
    height: 80px;
    border: none; /* Removed border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.about-img-full {
    line-height: 0;
}

.about-img-full img {
    display: block;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: -400px;
    left: 0;
    width: 100%;
    background-color: var(--brand-green);
    color: #FEFFFA;
    padding: 20px 5%;
    box-sizing: border-box;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    gap: 30px;
}

.cookie-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-btn {
    background-color: #FEFFFA;
    color: var(--brand-green);
    border: none;
    padding: 10px 30px;
    font-family: 'GFS Didot', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #e2e2d9;
    letter-spacing: 1px;
}

/* FOOTER EXTRA INSTA ALIGN */
.footer-social-info {
    margin-top: 10px;
    display: none;
}

.footer-social-info a i {
    font-size: 1.5rem;
    color: #FEFFFA;
    transition: color 0.3s;
}

.footer-social-info a:hover i {
    color: #e2e2d9;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* LOGO OFFICIAL STYLES */
.main-header-logo {
    height: 35px;
    width: auto;
    display: block;
}
.main-footer-logo {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

/* ======================================== */
/* BADGE TIPO PROPIEDAD (VENTA / ALQUILER) */
/* ======================================== */
.card-img-wrapper {
    position: relative;
}

.card-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FEFFFA;
    z-index: 5;
    pointer-events: none;
    line-height: 1;
}

.card-type-badge.badge-venta {
    background-color: var(--brand-green);
}

.card-type-badge.badge-alquiler {
    background-color: #6F7F6A;
}

/* FILTRO POR TIPO (PILLS) */
.type-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.type-filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: #4A4A45;
    padding: 7px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    letter-spacing: 0.5px;
}

.type-filter-btn:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.type-filter-btn.active {
    background: var(--brand-green);
    color: #FEFFFA;
    border-color: var(--brand-green);
}

.price-suffix {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 2px;
}

/* ======================================================== */
/* RESPONSIVE MÓVIL — NO ALTERA NADA EN ESCRITORIO          */
/* ======================================================== */

@media (max-width: 768px) {

    /* --- CONTAINER GENERAL --- */
    .container {
        padding: 0 16px;
        margin: 40px auto;
    }

    /* --- HEADER / NAV FIJA --- */
    #main-nav {
        padding: 12px 4%;
    }

    .nav-brand-text p {
        font-size: 0.9rem;
    }

    .nav-brand-text span {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .nav-social-group {
        gap: 12px;
    }

    /* --- HERO --- */
    .hero {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .hero-nav-container {
        flex-direction: row;
        gap: 24px;
        justify-content: center;
    }

    .hero-link {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .hero-logo-box {
        width: 55px;
        height: 75px;
    }

    /* --- PROPIEDADES: TÍTULO + FILTROS --- */
    .propiedades-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    .header-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .propiedades-header > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .type-filter-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        margin: 0 !important;
    }

    .type-filter-btn {
        padding: 7px 14px !important;
        font-size: 0.78rem !important;
        border-radius: 30px !important; /* Sleek rounded pill style */
        white-space: nowrap !important;
    }

    .filter-wrapper-minimal {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .lux-custom-select {
        min-width: 140px !important;
        text-align: center !important;
    }
    
    .lux-select-trigger {
        font-size: 0.82rem !important;
        padding: 6px 14px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 30px !important; /* Elegant matching pill structure */
        background-color: #FEFFFA !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .select-trigger-arrow {
        margin-left: 6px !important;
    }

    .lux-select {
        font-size: 1rem;
        padding: 10px 32px 10px 14px;
    }

    .minimal-select {
        font-size: 16px !important; /* Mínimo 16px para evitar auto-zoom */
        padding-top: 4px !important;
    }

    /* --- CARDS DE PROPIEDADES --- */
    .card-img-wrapper {
        height: 260px;
    }

    .card-body-lux {
        padding: 18px 0;
    }

    .card-title-lux {
        font-size: 1.2rem;
    }

    .card-loc-lux {
        font-size: 0.68rem;
        margin: 6px 0;
    }

    .card-desc-lux {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 14px;
    }

    .card-specs-lux {
        gap: 12px;
        font-size: 0.7rem;
        padding-top: 10px;
    }

    .card-footer-lux {
        height: 48px;
    }

    .footer-btn-lux {
        font-size: 22px;
    }

    .footer-price-lux {
        font-size: 0.95rem;
    }

    /* --- BADGE TIPO --- */
    .card-type-badge {
        padding: 5px 12px;
        font-size: 0.6rem;
        top: 10px;
        left: 10px;
    }

    /* --- TOOLTIP COPIAR --- */
    .btn-share::after {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    /* --- SOBRE NOSOTROS --- */
    .about-section {
        padding: 5px 0 0 0;
        margin-top: 30px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.88rem;
        margin-top: 16px;
        padding: 0 8px;
    }

    .about-img-full {
        margin-top: 30px;
    }

    .about-img-full img {
        max-height: 300px;
    }

    /* --- CONTACTO --- */
    .contact-section {
        padding: 0 0 20px 0;
    }

    .contact-form-wrapper {
        width: 92%;
        margin: 30px auto 0 auto;
    }

    .lux-input,
    .lux-textarea,
    .modal-content input,
    .modal-content select {
        font-size: 16px !important; /* Mínimo 16px para evitar auto-zoom en iOS */
        padding: 16px 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .lux-submit-btn,
    .modal-content button {
        font-size: 16px !important;
        padding: 16px !important;
        letter-spacing: 1.5px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* --- FOOTER --- */
    .main-footer {
        margin-top: 50px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 60px 5% 30px 5%;
        gap: 30px;
        margin-bottom: 20px;
    }

    .footer-nav {
        order: 2;
    }

    .footer-nav a {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .footer-info {
        align-items: center;
        text-align: center;
        order: 1;
    }

    .footer-big-phrase {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
    }

    .footer-big-phrase h1 {
        font-size: clamp(2rem, 10vw, 5rem);
        white-space: normal;
        word-break: break-word;
        text-align: center;
        letter-spacing: -1px;
    }

    .footer-big-phrase .social-corner {
        position: static;
        flex-direction: row;
        gap: 16px;
        padding: 16px 0;
        justify-content: center;
    }

    /* --- MODAL --- */
    .modal-content {
        padding: 40px 24px;
        width: 94%;
        max-width: 400px;
    }

    /* --- COOKIE BANNER --- */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-content p {
        font-size: 0.78rem;
    }

    .cookie-btn {
        font-size: 0.95rem;
        padding: 8px 24px;
    }
}

/* --- EXTRA PEQUEÑO (< 480px) --- */
@media (max-width: 480px) {

    .hero {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .hero-link {
        font-size: 0.95rem;
    }

    .hero-logo-box {
        width: 45px;
        height: 62px;
    }

    .header-title {
        font-size: 1.3rem !important;
        text-align: center !important;
    }

    .card-img-wrapper {
        height: 220px;
    }

    .card-specs-lux {
        gap: 8px;
        font-size: 0.65rem;
    }

    .footer-price-lux {
        font-size: 0.82rem;
    }

    .footer-big-phrase h1 {
        font-size: clamp(1.8rem, 9vw, 3.5rem);
    }

    .footer-nav a {
        font-size: 1.1rem;
    }

    .about-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   SELECT DE LOCALIZACIÓN PERSONALIZADO (LUXURY)
   ============================================= */
.lux-custom-select {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #4A4A45;
    min-width: 190px;
    user-select: none;
    text-align: right;
}

.lux-select-trigger {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0 8px 16px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #4A4A45;
    letter-spacing: 0.5px;
}

.lux-select-trigger:hover {
    color: #222;
}

.select-trigger-arrow {
    font-size: 0.72rem;
    color: var(--brand-green);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    margin-top: 2px;
}

.lux-custom-select.open .select-trigger-arrow {
    transform: rotate(180deg);
}

.lux-select-options {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: #FEFFFA; /* Fondo crema de la web */
    border: 1px solid #e2e2d9; /* Borde refinado */
    box-shadow: 0 12px 35px rgba(61, 90, 68, 0.12); /* Sombra elegante verdosa/suave */
    z-index: 1050;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.lux-custom-select.open .lux-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lux-select-option {
    padding: 10px 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
}

.lux-select-option:hover {
    background-color: #F4F2ED; /* Fondo crema un tono más oscuro al pasar mouse */
    color: var(--brand-green); /* Color verde oliva corporativo */
    padding-left: 26px; /* Efecto micro-desplazamiento interactivo */
}

.lux-select-option.active {
    background-color: #ECEAE7;
    color: var(--brand-green);
    font-weight: 600;
}

/* Ajustes de responsividad para el select personalizado */
@media (max-width: 768px) {
    .lux-custom-select {
        min-width: 150px;
        text-align: left;
    }
    
    .lux-select-trigger {
        font-size: 1.05rem;
        padding: 6px 0;
    }
    
    .lux-select-options {
        left: 0;
        right: auto;
        min-width: 200px;
    }
}

