/* Variables CSS principales */
:root {
    --primary-color: #A59C95;
    --secondary-color: #C9B59A;
    --accent-color: #4A453F;
    --gold-color: #4A453F;
    --light-gray: #F7F5F2;
    --dark-gray: #4A453F;
    --white-warm: #FDFCFA;

    /* Variables de animación para compatibilidad */
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-snappy: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ========== NAVEGACIÓN ========== */
.navbar {
    background: linear-gradient(135deg,
            rgba(165, 156, 149, 0.95) 0%,
            rgba(201, 181, 154, 0.92) 50%,
            rgba(165, 156, 149, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BRAND TEXT ===== */
.navbar-brand {
    padding: 0 !important;
    margin-right: 2rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white-warm);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 2px;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== NAVEGACIÓN LINKS ===== */
.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white-warm) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    z-index: -1;
}

.navbar .nav-link:hover {
    color: var(--white-warm) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 69, 63, 0.3);
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.navbar .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
    background: rgba(0, 0, 0, 0.1) !important;
}

.navbar .nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== BOTÓN HAMBURGUESA ===== */
.navbar-toggler {
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 69, 63, 0.25);
    border-color: var(--gold-color);
}

.navbar-toggler:hover {
    background: rgba(74, 69, 63, 0.2);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A453F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}







/* ===== DROPDOWN MULTINIVEL ===== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 5px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    min-width: 200px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu.show>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-submenu>.dropdown-item:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-top-color: #6c757d;
    margin-top: 8px;
    margin-right: -10px;
}

.dropdown-submenu:hover>.dropdown-item:after {
    border-top-color: var(--accent-color);
}

/* Estilos para el dropdown principal */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    background: white;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.dropdown-menu.show,
.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mejorar el hover del dropdown toggle */
.dropdown-toggle {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.dropdown:hover>.dropdown-toggle {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Añadir área de hover extendida para evitar que se cierre el dropdown */
.dropdown {
    position: relative;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1040;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 181, 154, 0.2), transparent);
    transition: left 0.6s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--accent-color);
    transform: translateX(5px);
}

.dropdown-item:focus {
    background: var(--light-gray);
    color: var(--accent-color);
}

/* Animaciones staggered para los items del dropdown */
.dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-menu.show .dropdown-item:nth-child(1) {
    animation-delay: 0.05s;
}

.dropdown-menu.show .dropdown-item:nth-child(2) {
    animation-delay: 0.1s;
}

.dropdown-menu.show .dropdown-item:nth-child(3) {
    animation-delay: 0.15s;
}

.dropdown-menu.show .dropdown-item:nth-child(4) {
    animation-delay: 0.2s;
}

.dropdown-menu.show .dropdown-item:nth-child(5) {
    animation-delay: 0.25s;
}

.dropdown-menu.show .dropdown-item:nth-child(n+6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de hover para los elementos del navbar */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(201, 181, 154, 0.2) 0%, transparent 70%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    width: 200px;
    height: 200px;
}

/* Animación de escala para dropdowns */
.dropdown:hover .dropdown-toggle {
    transform: scale(1.05);
}

/* Animación de bounce para iconos */
.dropdown-submenu>.dropdown-item:after {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dropdown-submenu:hover>.dropdown-item:after {
    transform: translateX(3px) scale(1.2);
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg,
                rgba(165, 156, 149, 0.98),
                rgba(201, 181, 154, 0.98));
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Ajustes del submenu para móvil */
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0.5rem;
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: none;
        border-radius: 8px;
        margin-left: 1rem;
        transform: translateY(0);
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .dropdown-submenu.show .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-submenu>.dropdown-item:after {
        display: none;
    }

    .navbar-nav {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 1rem 1.25rem !important;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .nav-link i {
        font-size: 1rem;
        margin-right: 0.75rem !important;
    }

    .navbar-brand {
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }
}

/* ===== SECCION HERO ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg,
            rgba(165, 156, 149, 0.15) 0%,
            rgba(247, 245, 242, 0.95) 30%,
            rgba(253, 252, 250, 1) 70%,
            rgba(201, 181, 154, 0.15) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 2rem 0;
}

.hero-section .container {
    width: 100%;
}

/* ===== CONTENIDO HERO ===== */
.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.slogan-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.btn-custom {
    background: var(--dark-gray);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white-warm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 69, 63, 0.5);
    text-decoration: none;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 69, 63, 0.7);
    color: var(--white-warm);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
}

/* ===== LOGO HERO ===== */
.hero-logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
}

/* ===== FORMULARIO DE CONTACTO ===== */
.hero-contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.contact-form-card .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 69, 63, 0.15);
    background: white;
}

.contact-form-card .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Espaciado mejorado para formulario de dos columnas */
.hero-contact-form .row {
    margin-bottom: 0;
}

.hero-contact-form .row .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-color), var(--dark-gray));
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 69, 63, 0.4);
    background: linear-gradient(135deg, var(--dark-gray), var(--primary-color));
    color: white;
}

/* ===== SECCIÓN MÓVIL DE CONTACTO ===== */
.mobile-contact-section {
    padding: 3rem 0;
    background: linear-gradient(135deg,
            rgba(201, 181, 154, 0.1) 0%,
            rgba(165, 156, 149, 0.1) 100%);
}

.mobile-contact-form {
    max-width: 100%;
}

.mobile-contact-form .contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-contact-form .row .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Logo del formulario */
.form-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.form-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .mobile-contact-form .contact-form-card {
        padding: 1.5rem 1rem;
    }

    .mobile-contact-form .row .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 991px) {
    .hero-section {
        padding: 5rem 0 3rem 0;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-logo {
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .slogan-text {
        font-size: 1.2rem;
    }

    .hero-logo {
        max-width: 100px;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .slogan-text {
        font-size: 1.1rem;
    }

    .contact-form-card {
        padding: 1.2rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    /* En móvil, las columnas del formulario se apilan */
    .hero-contact-form .row .col-md-6 {
        margin-bottom: 0;
    }
}

/* ===== SECCIÓN DE GALERÍA ===== */
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* ===== BUSCADOR DE PROPIEDADES ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.search-box:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(201, 181, 154, 0.3);
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(201, 181, 154, 0.25);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--accent-color);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--dark-gray);
    background: transparent;
    border-radius: 50px;
}

.search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.clear-search {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.clear-search:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--accent-color);
}

.clear-search.show {
    display: block;
}

/* ===== FILTROS DE GALERÍA ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    color: var(--dark-gray);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 69, 63, 0.3);
}

/* ===== TARJETAS DE PROPIEDADES ===== */
.gallery-grid .gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-smooth);
    height: 100%;
    will-change: transform, box-shadow;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

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

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    z-index: 2;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-card:hover .property-type {
    transform: translateY(0);
    opacity: 1;
}

.property-type {
    background: rgba(74, 69, 63, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Badge de estado en parte superior izquierda */
.property-status-badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Colores diferentes según el tipo de badge */
.badge-exclusive {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.badge-construction {
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.badge-view {
    background: linear-gradient(45deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.badge-light {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.badge-premium {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.badge-special {
    background: linear-gradient(45deg, #6f42c1, #9b59b6);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.badge-new {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.badge-default {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.property-card:hover .property-status-badge-top {
    transform: scale(1.05);
}

.property-card:hover .badge-exclusive {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.property-card:hover .badge-construction {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

.property-card:hover .badge-view {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.property-card:hover .badge-light {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.property-card:hover .badge-premium {
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
}

.property-card:hover .badge-special {
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.6);
}

.property-card:hover .badge-new {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.property-card:hover .property-actions {
    transform: translateY(0);
    opacity: 1;
}

.btn-view {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-view:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-view:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.property-info {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i {
    color: var(--accent-color);
}

/* ===== LIGHTBOX MODAL ===== */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: var(--dark-gray);
    color: white;
    border: none;
}

.modal-body {
    padding: 0;
}

#lightboxImage {
    display: block;
}

/* ===== RESPONSIVE BUSCADOR ===== */
@media (max-width: 768px) {
    .search-container {
        padding: 0 1rem;
    }

    .search-input {
        padding: 14px 18px 14px 50px;
        font-size: 0.9rem;
    }

    .search-input::placeholder {
        font-size: 0.85rem;
    }

    .search-icon {
        left: 18px;
        font-size: 1rem;
    }

    .clear-search {
        right: 12px;
        padding: 6px;
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVE GALERÍA ===== */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 0;
    }

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

    .filter-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
        min-width: 100px;
        flex: 0 1 auto;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .property-image {
        height: 200px;
    }

    .property-info {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .property-image {
        height: 180px;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .filter-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        width: auto;
        min-width: 90px;
    }
}

/* ===== SECCIÓN BANNER CTA ===== */
.cta-banner-section {
    background: linear-gradient(135deg,
            rgba(201, 181, 154, 0.95) 0%,
            rgba(165, 156, 149, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1200&h=400&fit=crop&crop=entropy&auto=format') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accent-text {
    color: var(--accent-color);
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(201, 181, 154, 0.5));
    border-radius: 2px;
}

.btn-cta-contact {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    border: 2px solid var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(201, 181, 154, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn-cta-contact:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-contact:hover {
    background: linear-gradient(135deg, #8b7355 0%, var(--accent-color) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(201, 181, 154, 0.4);
    color: white;
}

.btn-cta-contact i {
    transition: transform 0.3s ease;
}

.btn-cta-contact:hover i {
    transform: translateX(5px);
}

/* ===== RESPONSIVE BANNER CTA ===== */
@media (max-width: 992px) {
    .cta-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cta-banner-section {
        padding: 3rem 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta-contact {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .cta-banner-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .btn-cta-contact {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .cta-banner-section {
        padding: 2rem 0;
    }
}

/* ===== SECCIÓN DE UBICACIÓN ===== */
.location-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.location-info {
    padding: 3rem 2.5rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(201, 181, 154, 0.2);
    overflow: hidden;
}

.location-header {
    margin-bottom: 2rem;
}

.location-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.location-title i {
    color: var(--accent-color);
    font-size: 2rem;
}

.location-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.location-address {
    margin-bottom: 2rem;
}

.address-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 181, 154, 0.2);
}

.address-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.address-title i {
    color: var(--dark-gray);
}

.address-details {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.address-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    font-size: 1rem;
    width: 16px;
}

.location-highlights {
    margin-bottom: 2rem;
}

.highlights-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.highlights-title i {
    color: var(--accent-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(201, 181, 154, 0.2);
}

.highlight-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 181, 154, 0.2);
}

.highlight-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.highlight-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Estilos para la nueva estructura simplificada */
.highlights-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 181, 154, 0.1);
}

.highlight-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(201, 181, 154, 0.15);
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 0.8rem;
    min-width: 20px;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.nearby-places {
    margin-bottom: 2.5rem;
}

.nearby-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.nearby-title i {
    color: var(--accent-color);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.place-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(201, 181, 154, 0.1);
}

.place-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 181, 154, 0.2);
    border-color: var(--accent-color);
}

.place-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(201, 181, 154, 0.12);
}

.place-name {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.location-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-location-primary,
.btn-location-secondary {
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid;
    text-decoration: none;
}

.btn-location-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    border-color: var(--accent-color);
    color: white;
}

.btn-location-primary:hover {
    background: linear-gradient(135deg, #8b7355 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 181, 154, 0.3);
    color: white;
}

.btn-location-secondary {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-location-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 181, 154, 0.3);
}

/* ===== MAPA INTERACTIVO ===== */
.map-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.map-frame {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1) brightness(1.05);
    transition: all 0.3s ease;
    border-radius: 0;
    display: block;
}

.map-container:hover .map-frame iframe {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
}

.map-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 181, 154, 0.2);
    z-index: 10;
}

.map-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 0.3rem 0;
}

.map-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.marker-dot {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(201, 181, 154, 0.5);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Tooltip para marcadores */
.marker[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 10px;
}

.marker[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-gray);
    margin-bottom: 4px;
    z-index: 100;
}

/* ===== RESPONSIVE UBICACIÓN ===== */
@media (max-width: 992px) {
    .location-info {
        padding: 3rem 2rem;
    }

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

    .map-container {
        height: 400px;
    }

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

@media (max-width: 768px) {
    .location-info {
        padding: 2rem 1.5rem;
    }

    .location-title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .location-title i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .address-card {
        padding: 1.5rem;
    }

    .location-actions {
        flex-direction: column;
    }

    .btn-location-primary,
    .btn-location-secondary {
        text-align: center;
        width: 100%;
    }

    .map-overlay {
        top: 1rem;
        right: 1rem;
        padding: 0.8rem 1rem;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .location-title {
        font-size: 1.4rem;
    }

    .address-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .address-title i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .nearby-title {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nearby-title i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* ===== MAPA SIMULADO Y UBICACIONES ===== */
.map-location-container {
    display: flex;
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    min-height: 100vh;
    height: 100vh;
}

.map-location-container.full-height {
    height: 100vh;
}

.map-area {
    flex: 2;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    position: relative;
    min-height: 100vh;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        radial-gradient(circle at 30% 70%, rgba(201, 181, 154, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(165, 156, 149, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
}

.map-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--accent-color);
}

.map-streets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.street {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.street-horizontal {
    height: 4px;
}

.street-vertical {
    width: 4px;
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 4px 12px rgba(201, 181, 154, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
}

.map-marker::after {
    content: attr(data-number);
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.map-compass {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--accent-color);
}

.compass-arrow {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.locations-list {
    background: white;
    padding: 2rem;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.location-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.location-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-name {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 1rem;
}

/* Hover entre mapa y lista */
.location-item:hover .location-number {
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .location-section {
        min-height: auto;
    }

    .location-info {
        height: auto;
        min-height: 60vh;
        padding: 2rem 1.5rem;
    }

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

    .map-location-container {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .map-area {
        min-height: 50vh;
    }

    .locations-list {
        width: 100%;
        padding: 1.5rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    .location-info {
        padding: 1.5rem 1rem;
    }

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

    .address-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .highlight-card {
        padding: 1rem;
    }

    .highlights-simple {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .highlight-item {
        padding: 0.6rem;
    }

    .highlight-item i {
        font-size: 1rem;
        margin-right: 0.6rem;
    }

    .highlight-item span {
        font-size: 0.85rem;
    }

    .map-area {
        min-height: 40vh;
    }

    .locations-list {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .map-title {
        bottom: 15px;
        left: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .map-compass {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .compass-arrow {
        font-size: 1rem;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.map-container.interactive {
    box-shadow: 0 0 30px rgba(201, 181, 154, 0.4);
    transition: box-shadow 0.3s ease;
}

.map-container.interactive .map-frame iframe {
    filter: grayscale(0%) contrast(1.2) brightness(1.15) !important;
}

/* Efecto de entrada para la sección */
.location-section {
    opacity: 0;
    animation: fadeInSection 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover especial para place items */
.place-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 181, 154, 0.1), transparent);
    transition: left 0.5s ease;
}

.place-item:hover::before {
    left: 100%;
}

/* Estilo mejorado para el iframe del mapa */
.map-frame {
    border-radius: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.map-frame iframe {
    border-radius: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 18px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item span {
    color: #d0d0d0 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    text-decoration-line: none !important;
    border: none !important;
    /* Prevenir auto-detección de teléfonos en Safari */
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-color: transparent !important;
    -webkit-text-decoration-line: none !important;
}

/* Estilos específicos para evitar enlaces automáticos en Safari */
.contact-item span a,
.contact-item span a:link,
.contact-item span a:visited,
.contact-item span a:hover,
.contact-item span a:active {
    color: #d0d0d0 !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    text-decoration-line: none !important;
    border: none !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-color: transparent !important;
    -webkit-text-decoration-line: none !important;
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 50px 0 30px;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-copyright::before {
    content: '©';
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-color);
}

.separator {
    color: #555;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 40px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-heading {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .footer-description {
        text-align: left;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-item {
        padding: 12px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .separator {
        display: none;
    }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-page {
    padding-top: 80px;
}

/* Simple About Section */
.about-simple {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.about-intro .lead {
    font-size: 1.3rem;
    color: #495057;
    line-height: 1.6;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-box p {
    color: #6c757d;
    line-height: 1.6;
}

.simple-stat {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.simple-stat h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.simple-stat p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.cta-section p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.about-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-hero-description {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-hero-image {
    position: relative;
}

.about-hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.overlay-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.overlay-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.overlay-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Our Story Section */
.our-story {
    background: #fff;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.story-text {
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.story-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Team Section */
.our-team {
    background: #f8f9fa;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-content {
    padding: 2rem;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.team-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    gap: 0.5rem;
}

.team-social .social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.team-social .social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Values Section */
.value-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.value-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Awards Section */
.award-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.award-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.award-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* CTA About Section */
.cta-about {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2.5rem;
    }

    .about-hero-subtitle {
        font-size: 1.2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .stat-item {
        text-align: center;
    }

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

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

    .cta-about .col-lg-4 {
        text-align: center !important;
        margin-top: 2rem;
    }
}

/* ===== BOOTSTRAP OVERRIDES FOR CONSISTENT STYLING ===== */
.btn-primary {
    background: var(--dark-gray) !important;
    border: none !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    color: var(--white-warm) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(74, 69, 63, 0.5) !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(74, 69, 63, 0.7) !important;
    color: var(--white-warm) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%) !important;
    border-color: transparent !important;
}

.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%) !important;
    border-color: transparent !important;
    color: var(--white-warm) !important;
    box-shadow: 0 12px 30px rgba(74, 69, 63, 0.7) !important;
}

/* ===== MI EXPERIENCIA SECTION ===== */
.experience-section {
    background: linear-gradient(135deg,
            var(--light-gray) 0%,
            var(--white-warm) 50%,
            var(--light-gray) 100%);
    position: relative;
    overflow: hidden;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="%23A59C95" fill-opacity="0.03"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.experience-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.experience-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.experience-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Imagen de Experiencia */
.experience-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.experience-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.experience-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.experience-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.badge-years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Timeline */
.experience-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    margin-right: 2rem;
    position: relative;
}

.timeline-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(165, 156, 149, 0.3);
}

.timeline-content {
    flex: 1;
    padding-top: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--dark-gray);
    line-height: 1.6;
    opacity: 0.8;
}

/* Cards de Valores y Servicios */
.values-card,
.services-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(165, 156, 149, 0.1);
}

.values-card:hover,
.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.values-title,
.services-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-grid,
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item,
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(165, 156, 149, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover,
.service-item:hover {
    background: rgba(165, 156, 149, 0.1);
    transform: translateY(-3px);
}

.value-item i,
.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-item span,
.service-item span {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .experience-title {
        font-size: 2.2rem;
    }

    .experience-subtitle {
        font-size: 1.1rem;
    }

    .timeline-marker {
        margin-right: 1rem;
    }

    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .values-grid,
    .services-list {
        grid-template-columns: 1fr;
    }

    .values-card,
    .services-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .experience-badge {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }

    /* Ajustes específicos para móviles */
    .experience-overlay {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }

    .experience-image {
        margin-bottom: 1rem;
    }
}

/* === MODAL DE PROPIEDAD PROFESIONAL === */
.modal-xl {
    max-width: 1400px;
}

.modal.fade {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 156, 149, 0.3), transparent);
    z-index: 1;
}

.modal-header {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(247, 245, 242, 0.98) 100%);
    border: none;
    border-bottom: 1px solid rgba(165, 156, 149, 0.12);
    padding: 24px 32px 20px 32px;
    color: var(--dark-gray);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-gray);
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn-close {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(247, 245, 242, 0.9) 100%);
    border: 1px solid rgba(165, 156, 149, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-close:hover {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.1) 0%,
            rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(220, 38, 38, 0.2);
    transform: scale(1.05);
    box-shadow:
        0 4px 12px rgba(220, 38, 38, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-close:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.btn-close::before {
    content: "✕";
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-close:hover::before {
    color: #dc2626;
    transform: rotate(90deg);
}

.btn-close:hover::before {
    color: white;
}

.property-details-container {
    height: 100%;
    overflow-y: auto;
    max-height: 70vh;
    padding: 0 25px 30px 25px !important;
    background: white;
    scrollbar-width: thin;
    scrollbar-color: rgba(165, 156, 149, 0.2) transparent;
}

.property-details-container::-webkit-scrollbar {
    width: 4px;
}

.property-details-container::-webkit-scrollbar-track {
    background: transparent;
}

.property-details-container::-webkit-scrollbar-thumb {
    background: rgba(165, 156, 149, 0.2);
    border-radius: 2px;
}

.property-details-container::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 156, 149, 0.3);
}

.property-header {
    border-bottom: 1px solid rgba(165, 156, 149, 0.05);
    padding-bottom: 25px;
    margin-bottom: 30px;
    padding-top: 25px;
}

.property-status .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-right: 15px;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-color);
    border: none;
    color: white;
}

.property-type-badge {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(165, 156, 149, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.9rem;
    color: var(--primary-color);
    margin: 15px 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.property-address {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 35px;
    display: block;
    font-weight: 400;
    line-height: 1.5;
}

.property-address i {
    display: none;
}

.property-price {
    display: block;
    margin-bottom: 30px;
    padding: 25px 0;
    border-top: 1px solid rgba(165, 156, 149, 0.08);
    border-bottom: 1px solid rgba(165, 156, 149, 0.08);
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    display: block;
    margin-bottom: 5px;
}

.price-currency {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-highlights {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(165, 156, 149, 0.08);
}

.highlight-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: left;
}

.specs-title,
.description-title,
.amenities-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 32px 0 20px 0;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.specs-title::before,
.description-title::before,
.amenities-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    flex-shrink: 0;
}

.specs-title:first-of-type {
    margin-top: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg,
            rgba(247, 245, 242, 0.5) 0%,
            rgba(255, 255, 255, 0.8) 100%);
    border-radius: 12px;
    border: 1px solid rgba(165, 156, 149, 0.08);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(247, 245, 242, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(165, 156, 149, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(165, 156, 149, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.spec-item:hover::before {
    opacity: 1;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.spec-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.spec-value {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.8rem;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.spec-unit {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -4px;
}

.spec-label {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: -2px;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 0 0;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    columns: 1;
    column-gap: 40px;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(165, 156, 149, 0.04);
    position: relative;
    padding-left: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 450;
    line-height: 1.6;
    break-inside: avoid;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.2s ease;
}

.features-list li:hover {
    background: rgba(165, 156, 149, 0.02);
    padding-left: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Estilos para los iconos profesionales con círculos */
.features-list .feature-icon-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.features-list li:hover .feature-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animación sutil para los iconos internos */
.features-list .feature-icon-wrapper i {
    transition: all 0.2s ease;
}

.features-list li:hover .feature-icon-wrapper i {
    transform: scale(1.1);
}

/* Mejoras adicionales para el contenedor de características */
.features-section {
    margin-top: 20px;
}

.features-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Eliminamos el punto anterior ya que tenemos iconos profesionales */

/* Ya no necesitamos puntos con los nuevos iconos profesionales */

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    flex: 0 0 auto;
    min-width: 140px;
}

.amenity-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: left;
}

.property-contact {
    border-top: 1px solid rgba(165, 156, 149, 0.12);
    padding: 32px 24px 24px 24px;
    margin-top: 32px;
    background: linear-gradient(135deg,
            rgba(247, 245, 242, 0.3) 0%,
            rgba(255, 255, 255, 0.5) 100%);
    border-radius: 0 0 16px 16px;
}

.property-contact .btn {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow:
        0 8px 25px rgba(165, 156, 149, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    color: white;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.property-contact .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.property-contact .btn:hover::before {
    left: 100%;
}

.property-contact .btn:hover {
    background: linear-gradient(135deg,
            var(--accent-color) 0%,
            var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 12px 35px rgba(165, 156, 149, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.property-contact .btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.property-contact .btn:focus {
    outline: none;
    box-shadow:
        0 12px 35px rgba(165, 156, 149, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(165, 156, 149, 0.3);
    outline-offset: 2px;
}

.property-contact .btn i {
    margin-right: 12px;
    font-size: 1rem;
}

/* Carousel Profesional */
/* Carousel Container */
.carousel-container {
    background: #000;
    flex: 1;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo desenfocado de la imagen del carousel */
.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    z-index: 0;
    transform: scale(1.1);
    transition: background-image 0.5s ease;
}

#propertyCarousel {
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Override de Bootstrap para transiciones más suaves */
#propertyCarousel .carousel-inner {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* Transiciones suaves y elegantes para el carousel */
#propertyCarousel .carousel-item {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
    position: relative;
}

#propertyCarousel .carousel-item-next,
#propertyCarousel .carousel-item-prev {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Transición suave para las imágenes al cambiar */
#propertyCarousel .carousel-item-next.carousel-item-start,
#propertyCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

#propertyCarousel .carousel-item-next:not(.carousel-item-start),
#propertyCarousel.carousel-item-prev:not(.carousel-item-end) {
    transition-duration: 0.8s;
}

.carousel-item img {
    height: 700px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    position: relative;
    z-index: 2;
}

.carousel-item.active img {
    transform: scale(1);
}

/* Property Details Container */
.property-details-container {
    background: white;
    padding: 30px;
    max-height: 700px;
    overflow-y: auto;
    border-left: 1px solid rgba(165, 156, 149, 0.1);
}

.property-content {
    display: flex;
    min-height: 700px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: none;
    transition: background 0.2s ease;
    opacity: 0.8;
    z-index: 10;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

#propertyCarousel:hover .carousel-control-prev,
#propertyCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
    transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

.carousel-indicators {
    margin-bottom: 15px;
    gap: 4px;
    z-index: 10;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: rgba(165, 156, 149, 0.3);
    border: none;
    transition: background 0.2s ease;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 0;
}

.carousel-indicators button:hover {
    background: rgba(165, 156, 149, 0.6);
}

/* Responsive Modal */
@media (max-width: 1200px) {
    .modal-xl {
        max-width: 95%;
    }

    .carousel-item img {
        height: 600px;
    }

    .property-details-container {
        padding: 25px;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .modal-xl {
        max-width: 95%;
    }

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

    .property-details-container {
        padding: 20px;
    }

    .property-content {
        flex-direction: column;
    }

    .carousel-container {
        width: 100%;
    }

    .property-details-container {
        padding: 18px;
        border-left: none;
        border-top: 1px solid rgba(165, 156, 149, 0.05);
    }

    .carousel-item img {
        height: 450px;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
    }

    .property-name {
        font-size: 1.6rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .spec-item {
        padding: 12px;
    }

    .spec-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .spec-value {
        font-size: 1.3rem;
    }

    .amenity-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .carousel-item img {
        height: 400px;
    }

    .property-details-container {
        padding: 15px;
        max-height: calc(100vh - 400px);
    }

    .modal-header {
        padding: 15px 20px 10px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .modal-title {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .btn-close {
        width: 28px;
        height: 28px;
    }

    .carousel-container {
        flex: none;
        min-height: 220px;
        margin-top: 60px;
        width: 100%;
    }

    .carousel-item img {
        height: 35vh;
        min-height: 220px;
        object-fit: contain;
    }

    .property-details-container {
        flex: 1;
        max-height: calc(65vh - 60px);
        min-height: calc(65vh - 60px);
        padding: 20px 15px 80px !important;
        border-left: none;
        border-top: 1px solid rgba(165, 156, 149, 0.05);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .property-header {
        padding-top: 0;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .property-name {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 25px;
    }

    .spec-item {
        padding: 15px 10px;
        text-align: center;
    }

    .spec-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .spec-value {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .spec-label {
        font-size: 0.8rem;
    }

    .specs-title,
    .description-title,
    .amenities-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .property-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 25px;
    }

    .amenity-item {
        padding: 12px 15px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
    }

    .amenity-item i {
        margin-right: 10px;
        font-size: 0.9rem;
    }

    .property-contact {
        padding-top: 15px;
        margin-top: 25px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(165, 156, 149, 0.08);
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        z-index: 999;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    }

    .property-contact .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
        letter-spacing: 0.8px;
        width: auto;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    /* Carousel controls for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        top: 50%;
        opacity: 0.9;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
        margin-bottom: 0;
    }

    .carousel-indicators button {
        width: 6px;
        height: 6px;
    }

    .carousel-indicators button.active {
        width: 15px;
    }
}

/* ===== FUNCIONALIDAD MÓVIL: CLICK EN IMÁGENES ===== */
@media (max-width: 768px) {

    /* Mejorar la experiencia táctil en móvil */
    .gallery-item .property-image {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .gallery-item .property-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 70%, rgba(255, 255, 255, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }

    .gallery-item .property-image:active::before {
        opacity: 1;
    }

    .gallery-item .property-image img {
        transition: transform 0.2s ease;
    }

    .gallery-item .property-image:active img {
        transform: scale(0.98);
    }

    /* Indicador visual de tap */
    .mobile-tap-hint {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Ocultar el botón "Ver Detalles" en móvil para dar más prominencia al tap en imagen */
    .gallery-item .btn-view {
        opacity: 0.7;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    /* Mejorar el área de toque */
    .gallery-item .property-image {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Feedback visual para el toque */
    .gallery-item.tapped .property-image {
        transform: scale(0.98);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    /* Animación de entrada para los hints */
    .mobile-tap-hint {
        animation: fadeInScale 0.5s ease-out;
    }

    @keyframes fadeInScale {
        0% {
            opacity: 0;
            transform: scale(0.5);
        }

        100% {
            opacity: 0.8;
            transform: scale(1);
        }
    }

    /* Efecto de ondas para feedback táctil */
    .gallery-item .property-image.ripple-effect {
        position: relative;
        overflow: hidden;
    }

    .gallery-item .property-image.ripple-effect::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%);
        animation: ripple 0.6s ease-out;
    }

    @keyframes ripple {
        to {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
    }

    /* ===== BOTÓN MÓVIL PARA VER DETALLES ===== */
    .mobile-hint-button {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, var(--accent-color), var(--dark-gray));
        color: var(--white-warm);
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 3px 12px rgba(74, 69, 63, 0.4);
        transition: all 0.3s ease;
        z-index: 5;
        cursor: pointer;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        animation: pulseButton 2s infinite;
    }

    .mobile-hint-button:hover,
    .mobile-hint-button:active {
        transform: translateX(-50%) scale(1.05);
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        box-shadow: 0 4px 16px rgba(165, 156, 149, 0.6);
    }

    .mobile-hint-button:active {
        transform: translateX(-50%) scale(0.95);
    }

    .mobile-hint-button i {
        margin-right: 6px;
        font-size: 0.8rem;
    }

    @keyframes pulseButton {

        0%,
        100% {
            box-shadow: 0 3px 12px rgba(74, 69, 63, 0.4);
        }

        50% {
            box-shadow: 0 4px 18px rgba(165, 156, 149, 0.6);
        }
    }
}

/* ===== ESTILOS PARA IMAGEN ÚNICA EN MODAL ===== */
.single-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

.property-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-image-container:hover .property-main-image {
    transform: scale(1.02);
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.image-counter:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.image-counter i {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Indicador de zoom para imagen única */
.zoom-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    opacity: 0.8;
}

.zoom-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: scale(1.05);
}

.zoom-indicator i {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Overlay de hover para indicar que se puede hacer zoom */
.image-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.single-image-container:hover .image-hover-overlay {
    opacity: 1;
}

.zoom-hint {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.single-image-container:hover .zoom-hint {
    transform: scale(1.1);
    background: white;
}

/* Placeholder mejorado */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

.placeholder-image i {
    opacity: 0.5;
}

.placeholder-image p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Modal de galería moderna tipo grid */
.modern-gallery-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: none;
    border-radius: 0;
    height: 100vh;
}

.modern-gallery-header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
}

.gallery-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-right: 20px;
}

.modern-gallery-header .modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-gallery-header .modal-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.image-count {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modern-gallery-body {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-image-item {
    position: relative;
    aspect-ratio: 4/3;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 3px solid transparent;
}

.gallery-image-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-image-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-image-item:hover .image-overlay {
    opacity: 1;
}

.image-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image-item:hover .zoom-icon {
    transform: scale(1.1);
    background: white;
}

.gallery-image-item.error {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-item.error::before {
    content: '🖼️\A Error al cargar imagen';
    white-space: pre;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Lightbox moderno */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-container {
    width: 95%;
    height: 95%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: white;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Controles de zoom en lightbox */
.lightbox-zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.zoom-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zoom-level {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px 0;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
}

.lightbox-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease, transform 0.3s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

/* Lightbox para imagen única - contenedor más grande */
.single-image-lightbox {
    max-height: 85vh;
}

.single-image-lightbox .lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
    max-width: 100%;
}

.lightbox-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumb.active {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

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

.lightbox-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive para galería moderna */
@media (max-width: 1024px) {
    .gallery-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .modern-gallery-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .modern-gallery-body {
        padding: 15px;
    }

    .modern-gallery-header {
        padding: 15px 20px;
    }

    .modern-gallery-header .modal-title {
        font-size: 1.2rem;
    }

    .gallery-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lightbox-container {
        width: 98%;
        height: 98%;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .lightbox-thumbnails {
        gap: 8px;
        padding: 15px 0;
    }

    .lightbox-thumb {
        width: 50px;
        height: 38px;
    }

    .lightbox-header {
        padding: 15px 0;
    }

    /* Controles de zoom en móvil */
    .lightbox-zoom-controls {
        gap: 6px;
        padding: 6px 12px;
    }

    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .zoom-level {
        font-size: 0.75rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-thumbnails {
        display: none;
        /* Ocultar thumbnails en móviles muy pequeños */
    }

    /* Simplificar controles de zoom en móviles muy pequeños */
    .lightbox-zoom-controls {
        gap: 4px;
        padding: 4px 8px;
    }

    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .zoom-level {
        font-size: 0.7rem;
        min-width: 30px;
    }

    /* Apilar controles en el header para ahorrar espacio */
    .lightbox-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
}

/* Responsive para imagen única */
@media (max-width: 991px) {
    .single-image-container {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .single-image-container {
        height: 35vh;
        min-height: 220px;
    }

    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .zoom-indicator {
        bottom: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .zoom-hint {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .placeholder-image p {
        font-size: 1rem;
    }
}

/* ===== SOLUCIÓN PARA BACKDROP MODAL EN MÓVILES ===== */
@media (max-width: 768px) {

    /* Asegurar que el backdrop se elimine correctamente */
    .modal-backdrop {
        transition: opacity 0.15s linear !important;
    }

    .modal-backdrop.fade {
        opacity: 0 !important;
    }

    .modal-backdrop.show {
        opacity: 0.5 !important;
    }

    /* Prevenir problemas de scroll en móviles */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Asegurar que no queden backdrops huérfanos */
    .modal-backdrop.fade:not(.show) {
        display: none !important;
    }

    /* Forzar limpieza del backdrop al cerrar */
    .modal.fade:not(.show)+.modal-backdrop {
        display: none !important;
    }
}

/* ===== SOLUCIÓN PARA BACKDROP MODAL EN MÓVILES ===== */
.modal-open {
    overflow: hidden !important;
}

/* Mejorar comportamiento del modal en general */
.modal {
    --bs-modal-zindex: 1055;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===== ESTILOS PARA PROPIEDADES EXCLUSIVAS ===== */
.property-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    pointer-events: none;
}

.badge-exclusive {
    background: linear-gradient(45deg, #ff6b35, #f7931e) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
    animation: pulse 2s infinite !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.badge-premium {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
    transition: all 0.3s ease;
}

.badge-construction {
    background: linear-gradient(45deg, #4A5568, #718096);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.4);
    transition: all 0.3s ease;
}

/* El badge se mantiene fijo en la parte superior */
.property-card:hover .badge-exclusive {
    transform: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
        transform: translateY(-2px);
    }

    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
}

.property-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.property-price .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilos mejorados para tarjetas de propiedades exclusivas */
.gallery-item[data-category="departamentos"] .property-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item[data-category="departamentos"] .property-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for badges */
@media (max-width: 768px) {
    .badge-exclusive {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .property-badge {
        top: 10px;
        left: 10px;
    }
}