/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
:root {
    --primary-color: #0d6efd;
    --purple-light: #f3e5f5; /* Morado claro para el buscador */
    --purple-dark: #4a148c;  /* Morado oscuro para títulos */
    --success-color: #198754;
    --text-color: #212529;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. BLOQUE HERO: VÍDEO SUPERIOR --- */
.hero-video-container {
    width: 100%;
    height: 60vh; /* Altura del bloque de vídeo */
    background-color: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra el vídeo completo sin recortes */
}

/* --- 3. SECCIÓN DEL LOGO (Sobre el fondo de página) --- */
.logo-main-container {
    padding: 60px 0 20px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.logo-grande {
    height: 220px; /* Tamaño imponente */
    width: auto;
    max-width: 90%;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

/* --- 4. BLOQUE DE BÚSQUEDA (Morado Claro) --- */
.search-section-purple {
    background-color: var(--purple-light);
    border-radius: 25px;
    padding: 60px 30px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(74, 20, 140, 0.05);
}

.search-section-purple h1 {
    color: var(--purple-dark);
    font-weight: 800;
}

/* Redondear los inputs del buscador para estilo moderno */
.search-section-purple .form-control, 
.search-section-purple .form-select {
    border-radius: 50px;
    padding: 12px 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- 5. TARJETAS DE PROPIEDADES --- */
.card-property {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

@media (min-width: 992px) {
    .card-property:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }
}

/* --- 6. ANIMACIONES Y RESPONSIVE --- */
@keyframes slide-up {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-entry {
    animation: slide-up 1.2s ease-out forwards;
    opacity: 0;
}

/* Tipografía Adaptable */
h1 { font-size: 2.2rem; }
@media (min-width: 992px) {
    h1 { font-size: 3rem; }
}

/* Botones en móvil */
@media (max-width: 767.98px) {
    .hero-video-container { height: 40vh; }
    .logo-grande { height: 140px; }
    .btn-lg-mobile { width: 100%; display: block; }
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
}