:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
}

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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
        }

        /* Ocultar contenido principal cuando está embebido y tiene hash */
        body.embedded-with-hash .header,
        body.embedded-with-hash .hero,
        body.embedded-with-hash .features-section,
        body.embedded-with-hash .properties-section,
        body.embedded-with-hash .upload-section {
            display: none !important;
        }

        body.embedded-with-hash {
            background: #000;
        }

        /* HEADER STYLES */
        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            color: #667eea;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #667eea;
        }

        /* HERO SECTION */
        .hero {
            text-align: center;
            padding: 4rem 0;
            color: white;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* SECTIONS */
        .properties-section {
            background: white;
            padding: 4rem 0;
        }

        .upload-section {
            background: #f8f9fa;
            padding: 4rem 0;
        }

        .features-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4rem 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #333;
        }

        .features-section .section-title {
            color: white;
        }

        /* PROPERTY CARDS */
        .properties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .property-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .property-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .property-image {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .view-360-btn {
            background: rgba(102, 126, 234, 0.9);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .view-360-btn:hover {
            background: rgba(102, 126, 234, 1);
            transform: scale(1.05);
        }

        .property-info {
            padding: 1.5rem;
        }

        .property-price {
            font-size: 1.5rem;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 0.5rem;
        }

        .property-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .property-location {
            color: #666;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .property-features {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            color: #666;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* BUTTONS */
        .contact-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.3s;
        }

        .contact-btn:hover {
            background: #5a6fd8;
        }

        .embed-btn {
            background: #28a745;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.3s;
            min-width: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .embed-btn:hover {
            background: #218838;
        }

        .submit-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 1.1rem;
            cursor: pointer;
            width: 100%;
            transition: background 0.3s;
        }

        .submit-btn:hover {
            background: #5a6fd8;
        }

        /* MODALS */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
        }

        .modal-content {
            position: relative;
            margin: 5% auto;
            width: 90%;
            max-width: 1000px;
            height: 80vh;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
        }

        .close:hover {
            opacity: 0.3;
        }

        #panorama {
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }

        .modal-info {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 15px;
            border-radius: 8px;
            z-index: 1001;
        }

        /* FEATURES GRID */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            transition: transform 0.3s;
        }

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

        .feature-card i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #fff;
        }

        /* UPLOAD FORM */
        .upload-form {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: #333;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .file-upload {
            border: 2px dashed #667eea;
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .file-upload:hover {
            background: #f0f2ff;
        }

        .file-upload i {
            font-size: 3rem;
            color: #667eea;
            margin-bottom: 1rem;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .modal-content {
                width: 95%;
                height: 70vh;
            }
            
            .properties-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ANIMATIONS */
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }


/* Estilos para el botón de galería */
.gallery-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Estilos para miniaturas */
.miniatura:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .modal-content {
        width: 98% !important;
        margin: 1% auto !important;
    }
    
    #imagenGrande {
        max-height: 300px !important;
    }
}


/* Estilos para vista embebida */
body.embedded-with-hash .hero,
body.embedded-with-hash .filtros-section,
body.embedded-with-hash .properties-section,
body.embedded-with-hash .features-section,
body.embedded-with-hash .upload-section,
body.embedded-with-hash .footer,
body.embedded-with-hash .nav-links,
body.embedded-with-hash .logo {
    display: none !important;
}

body.embedded-with-hash {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Asegurar que el modal panorama ocupe toda la pantalla en iframe */
body.embedded-with-hash #panoramaModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

body.embedded-with-hash #panoramaModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}


/* Estilos adicionales para el sistema de login - Agregar al final de styles.css */

/* Header con menú de usuario */
.user-menu {
    position: relative;
}

.login-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

/* Prompt de login */
.login-prompt {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    border: 2px dashed #667eea;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.login-prompt-content i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.login-prompt-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.login-prompt-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-prompt-buttons .btn {
    min-width: 160px;
}

/* Footer dinámico */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

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

.footer-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-contact i {
    width: 16px;
    color: #667eea;
}

/* Footer para usuarios logueados */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Agregar estos estilos CSS en el archivo index.html dentro de la sección <style> */

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.user-avatar i {
    font-size: 1.5rem;
    color: white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.user-avatar img:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Efecto hover para el panel de usuario completo */
.user-panel:hover .user-avatar {
    transform: scale(1.1);
}

/* Animación suave para la carga del avatar */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.user-avatar img {
    animation: fadeIn 0.3s ease-out;
}

.user-details h3 {
    color: #0D0D0C;
    margin-bottom: 0.5rem;
}

.user-details p {
    color: #0D0D0C;
    margin-bottom: 0.5rem;
}

.user-role {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* Botones mejorados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        right: -1rem;
        left: -1rem;
    }
    
    .login-prompt-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .login-prompt-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats {
        justify-content: center;
    }
}

/* Estados de carga */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Mensajes de estado */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Mejoras de accesibilidad */
.btn:focus,
.dropdown-toggle:focus,
input:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animaciones suaves */
* {
    scroll-behavior: smooth;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes para modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: #2c3e50;
        border: 1px solid #34495e;
    }
    
    .dropdown-menu a {
        color: #ecf0f1;
    }
    
    .dropdown-menu a:hover {
        background: #34495e;
    }
}

/* --------------------------------------------*/
/* Estilos corregidos para el menú de usuario - Agregar a styles.css */

/* Header con menú de usuario - CORREGIDO */
.user-menu {
    position: relative;
}

.login-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.login-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    color: white; /* Mantener color blanco */
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.3);
    color: #94194F; /* Color blanco para el texto */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #ED5F9D; /* Mantener color blanco en hover */
}

.dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    color: white; /* Mantener color blanco en focus */
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333; /* Color oscuro para texto del menú */
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: red; /* Color blanco en hover */
    transform: translateX(5px);
}

.dropdown-menu a:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.dropdown-menu a:hover i {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
    margin: 0.5rem 0;
}

/* Icono de verificación en dropdown */
.verified-icon {
    color: #28a745 !important;
    font-size: 0.9rem;
    margin-left: 0.25rem;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Mejorar contraste en footer para usuarios */
.user-details h3 {
    color: #0D0D0C !important; /* Texto claro en footer */
    font-weight: 600;
}

.user-details p {
    color: #0D0D0C !important; /* Texto menos prominente pero legible */
    margin-bottom: 0.5rem;
}

.user-role {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9) !important; /* Color claro */
    font-weight: 500;
}

.verification-badge {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4CAF50 !important; /* Verde más claro para contraste */
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Responsive para menú */
@media (max-width: 768px) {
    .dropdown-menu {
        right: -1rem;
        left: -1rem;
        min-width: auto;
    }
    
    .dropdown-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .user-menu {
        width: 100%;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
}

/* Estados adicionales */
.dropdown-menu a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.dropdown-menu a:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-menu a:disabled:hover {
    background: transparent;
    color: #333;
    transform: none;
}

/* Animación de entrada mejorada */
.dropdown:hover .dropdown-menu {
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mejora visual del nombre de usuario en dropdown */
.dropdown-toggle .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0D0D0C;
}

/* Indicador de estado online */
.dropdown-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* estilos para buscador---*/
/* Efectos visuales para scroll automático de filtros */
.properties-section {
    scroll-margin-top: 80px; /* Compensar header fijo */
    position: relative;
    transition: all 0.5s ease;
}

/* Efecto de resaltado para la sección cuando se aplican filtros */
.properties-section.highlighting {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.1);
}

/* Animación para el título cuando se actualizan resultados */
.section-title.updating {
    position: relative;
    animation: titlePulse 0.6s ease-out;
}

@keyframes titlePulse {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.02);
        color: #28a745;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

.section-title.updating::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    animation: underlineExpand 0.6s ease-out;
}

@keyframes underlineExpand {
    0% { width: 0; }
    50% { width: 80px; }
    100% { width: 0; }
}

/* Efecto de carga mejorado */
.loading-filters {
    position: relative;
    overflow: hidden;
}

.loading-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.1), 
        transparent
    );
    animation: loadingSweep 1.5s infinite;
    z-index: 1;
}

@keyframes loadingSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Botón de aplicar filtros con mejor feedback */
.filtros-acciones button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.filtros-acciones button:active {
    transform: translateY(0);
}

/* Indicador de filtros activos */
.filtro-activo {
    position: relative;
}

.filtro-activo::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Animación de conteo de resultados */
.contador-animado {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de enfoque en la grid de propiedades */
.properties-grid.focused {
    animation: gridFocus 1s ease-out;
}

@keyframes gridFocus {
    0% {
        opacity: 0.7;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador visual de scroll activo */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 10px;
    border-radius: 50%;
    z-index: 1000;
    animation: scrollBounce 0.6s ease-out;
    pointer-events: none;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    40% {
        transform: translateY(-50%) translateX(-10px);
    }
    60% {
        transform: translateY(-50%) translateX(-5px);
    }
}

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

/* Para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .properties-section {
        scroll-behavior: auto;
    }
    
    .section-title.updating {
        animation: none;
    }
    
    .properties-grid.focused {
        animation: none;
    }
}

/* Responsive para efectos móviles */
@media (max-width: 768px) {
    .properties-section {
        scroll-margin-top: 60px;
    }
    
    .scroll-indicator {
        right: 10px;
        padding: 8px;
    }
}

/* Estado de éxito para búsquedas exitosas */
.search-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    animation: successFade 2s ease-out;
}

@keyframes successFade {
    0% {
        opacity: 0;
        background: rgba(40, 167, 69, 0.2);
    }
    50% {
        opacity: 1;
        background: rgba(40, 167, 69, 0.1);
    }
    100% {
        opacity: 1;
        background: transparent;
    }
}


/* Estilos para enlaces de contacto */
.footer-contact a {
    color: #bdc3c7 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-contact a:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
    padding-left: 8px;
    transform: translateX(4px);
}

/* Icono específico para WhatsApp */
.footer-contact a[href*="wa.me"] i {
    color: #25D366; /* Color oficial de WhatsApp */
}

.footer-contact a[href*="wa.me"]:hover {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1);
}

/* Icono específico para email */
.footer-contact a[href*="mailto"] i {
    color: #667eea;
}

.footer-contact a[href*="mailto"]:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
}

/* Efecto adicional de hover */
.footer-contact a:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* ------------------- CSS adicional para verificación -- */

        /* Estilos para badges de confianza */
        .hero-trust {
            margin-top: 30px;
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .trust-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }
        
        .trust-indicators {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .trust-indicators .trust-badge {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            border-color: rgba(102, 126, 234, 0.2);
            font-size: 0.8rem;
            padding: 4px 12px;
        }
        
        /* Estilos para prompts de verificación */
        .verification-benefits {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 25px 0;
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }
        
        .benefit-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #333;
            font-weight: 500;
        }
        
        .benefit-item i {
            color: #28a745;
            width: 20px;
            flex-shrink: 0;
        }
        
        .verification-steps {
            display: flex;
            justify-content: space-between;
            margin: 25px 0;
            padding: 20px;
            background: rgba(33, 150, 243, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(33, 150, 243, 0.1);
        }
        
        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex: 1;
            position: relative;
        }
        
        .step-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -50%;
            top: 15px;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, #2196f3, transparent);
        }
        
        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2196f3, #1976d2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }
        
        .verification-required {
            background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
            border: 2px solid #2196f3 !important;
        }
        
        .help-text {
            margin-top: 20px;
            font-size: 0.9rem;
            color: #666;
            text-align: center;
        }
        
        .help-text a {
            color: #2196f3;
            text-decoration: none;
        }
        
        .help-text a:hover {
            text-decoration: underline;
        }
        
        /* Header verificado para formulario */
        .verified-user-header {
            background: linear-gradient(135deg, #d4edda, #c3e6cb);
            color: #155724;
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            border: 1px solid #c3e6cb;
        }
        
        .verified-icon {
            color: #28a745 !important;
            font-size: 1.1rem;
        }
        
        /* Footer mejorado */
        .verification-benefits-footer {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 15px 0 20px 0;
        }
        
        .benefit-item-small {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #555;
        }
        
        .benefit-item-small i {
            color: #28a745;
            font-size: 0.8rem;
            width: 12px;
        }
        
        /* Badge de verificación en usuario */
        .user-status {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 5px;
        }
        
        .verification-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid rgba(40, 167, 69, 0.2);
        }
        
        /* Notificación flotante */
        .verification-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #2196f3, #1976d2);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
            z-index: 10000;
            animation: slideInRight 0.3s ease-out;
        }
        
        .notification-content {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .notification-content button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 5px;
            border-radius: 3px;
            margin-left: 10px;
        }
        
        .notification-content button:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        /* Animaciones */
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes fadeInUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.6s ease-out both;
        }
        
        /* Responsive para verificación */
        @media (max-width: 768px) {
            .hero-trust {
                flex-direction: column;
                align-items: center;
            }
            
            .verification-benefits {
                grid-template-columns: 1fr;
            }
            
            .verification-steps {
                flex-direction: column;
                gap: 20px;
            }
            
            .step-item::after {
                display: none;
            }
            
            .verification-notification {
                right: 10px;
                left: 10px;
                top: 10px;
            }
        }

