/* =========================================
   INDEX.CSS - RESTRUCTURADO & PRO 
   (Estilo Luxury: Header Invisible & Fondo Híbrido Optimizado)
   ========================================= */

:root {
    --primary: #2C3E50;
    --accent: #D4A373;
    /* Oscurecemos la capa para mejor contraste general */
    --bg-overlay: rgba(0, 0, 0, 0.6); 
    --white: #FFFFFF;
    --shadow: 0 15px 40px rgba(0,0,0,0.15); 
    --radius: 12px; 
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Lato', sans-serif;
    --header-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* --- PRELOADER GLOBAL --- */
#page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #FAFAF5;
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 120px; animation: pulse 1.5s infinite ease-in-out; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- CONTENEDOR DE FONDOS HÍBRIDO --- */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #000; 
}

/* Imagen para Mobile (Por Defecto visible) */
.bg-image-mobile {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block; /* Visible en móviles */
}

/* Video para Desktop (Por Defecto Oculto en móviles para ahorrar batería/datos) */
.bg-video.desktop-only-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    display: none; /* Oculto en móviles */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px); 
    z-index: 1;
}

/* --- HEADER (Estilo Luxury Invisible) --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: none; 
    box-shadow: none; 
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.header-inner { width: 90%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }

.logo-link { display: flex; align-items: center; height: 100%; z-index: 1002; position: relative; pointer-events: auto; }

/* Logo siempre blanco y con tamaño fluido */
.logo-img { 
    height: clamp(40px, 4vw, 60px); 
    width: auto; 
    display: block; 
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0,0,0,0.4)) !important; 
    transition: all 0.3s ease;
}

/* --- MENÚ MOBILE --- */
.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 10px; z-index: 1001; }
.hamburger .bar { width: 25px; height: 3px; background-color: #FFF; border-radius: 2px; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.hamburger.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary); box-shadow: none; }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary); box-shadow: none; }

.nav-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #FFF;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.4s ease; z-index: 1000;
}
.nav-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-list { list-style: none !important; padding: 0; margin: 0; text-align: center; display: flex; flex-direction: column; gap: 25px; }
.nav-link { font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: 2px; color: var(--primary); text-decoration: none; }
.nav-btn-highlight { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border: 1px solid var(--accent); padding: 12px 40px; border-radius: 50px; margin-top: 15px; text-decoration: none; }

/* --- MAIN CONTENT (Flotando sobre el fondo) --- */
.index-content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding-top: var(--header-h); 
}

.main-content { flex: 1; width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px 0 60px; display: flex; flex-direction: column; justify-content: center;}
.intro-text { text-align: center; margin-bottom: 40px; }
.intro-text p { 
    font-family: var(--font-heading); 
    font-size: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: #FFF; 
    font-weight: 600; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}
.divider-small { width: 50px; height: 3px; background: var(--accent); margin: 15px auto; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.card { background: #FFF; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; display: flex; flex-direction: column; }
.card:active { transform: scale(0.98); }
.card-img-wrap { position: relative; height: 200px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card-tag { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.95); color: var(--accent); padding: 5px 12px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.card-content { padding: 30px 25px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.card-content h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 8px; color: var(--primary); font-weight: 700; letter-spacing: 0; transition: color 0.3s ease; }
.card-content p { font-size: 0.95rem; color: #666; margin: 0; line-height: 1.5; }
.btn-text { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; align-self: center; transition: gap 0.3s ease; }

/* Efectos Hover de las tarjetas */
.card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.card:hover img { transform: scale(1.08); }
.card:hover .card-content h2 { color: var(--accent); }
.card:hover .btn-text { gap: 10px; }

/* --- FOOTER & FLOATING --- */
.footer { text-align: center; padding: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.7); background: transparent; }
.floating-actions { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 1100; }
.action-bubble { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 1.3rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; text-decoration: none !important; border: none; }
.action-bubble:hover { transform: scale(1.1); color: #FFF; }
.green { background: #25D366; } .dark { background: var(--primary); }

/* --- MEDIA QUERIES (DESKTOP) --- */
@media (min-width: 1024px) {
    :root { --header-h: 110px; }
    
    /* MAGIA ACÁ: En desktop ocultamos la foto estática y mostramos el video */
    .bg-image-mobile { display: none; }
    .bg-video.desktop-only-video { display: block; }

    .hamburger { display: none; }
    .nav-menu { position: static; height: auto; width: auto; background: transparent; opacity: 1; visibility: visible; pointer-events: auto; transform: none; display: block; }
    .nav-list { flex-direction: row; gap: 40px; align-items: center; }
    
    /* Colores del menú SIEMPRE BLANCOS en desktop flotando sobre el video */
    .header .nav-link { 
        color: #FFF !important; 
        text-shadow: 0 2px 8px rgba(0,0,0,0.6); 
    }
    .header .nav-btn-highlight { 
        color: #FFF !important; 
        border-color: #FFF !important; 
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    }

    .nav-link { font-size: 0.85rem; padding: 10px 0; position: relative; }
    .nav-link::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 0; height: 1px; background: #FFF !important; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
    .nav-link:hover::after { width: 100%; }
    
    .nav-btn-highlight { padding: 10px 30px; margin: 0; font-size: 0.85rem; transition: all 0.3s ease; }
    .header .nav-btn-highlight:hover { background: #FFF !important; color: var(--primary) !important; text-shadow: none; box-shadow: 0 6px 15px rgba(0,0,0,0.4); }

    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 20px; }
    .card-img-wrap { height: 280px; } 
}