/* RESETEO Y FUENTES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-weight: 400;
}

/* COLOR ORO ROSA / COBRE */
.accent-line {
    width: 60px;
    height: 2px;
    background-color: #c48b71; 
    margin: 20px 0; 
}

/* MENÚ DE NAVEGACIÓN SUPERIOR FLOTANTE */
.menu-superior {
    position: fixed;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    padding: 15px 40px;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(196, 139, 113, 0.3); 
    border-radius: 50px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.menu-superior nav {
    display: flex;
    gap: 40px; 
}

.menu-superior nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.menu-superior nav a:hover, 
.menu-superior nav a.activo {
    color: #c48b71;
}

/* PORTADA INTEGRADA EN EL FONDO (INICIO) */
.hero-dos-columnas {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0; 
    opacity: 0; 
    transition: opacity 1s ease;
}

.hero-dos-columnas.visible {
    opacity: 1;
}

.foto-columna {
    flex: 1;
    height: 100vh; 
}

.foto-columna img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; 
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.texto-columna {
    flex: 1;
    text-align: left;
    padding: 0 10% 0 5%; 
}

.texto-columna h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1.2rem;
    color: #c48b71;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* CONTACTO HERO */
.contacto-hero {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}
.contacto-hero a {
    color: #c48b71;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.contacto-hero a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}
.contacto-hero .separador {
    color: #333;
    font-weight: 300;
}

.enlace-bajar {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #c48b71;
    padding-bottom: 5px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.enlace-bajar:hover {
    color: #c48b71;
}

/* SECCIONES Y BLOQUES HISTORIA (INICIO) */
#historia {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px 20px; 
}

.bloque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 50px;
}

.bloque.reverso {
    flex-direction: row-reverse;
}

.texto-bloque {
    flex: 1;
}

.texto-bloque h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-left: 3px solid #c48b71;
    padding-left: 15px;
}

.texto-bloque p {
    font-size: 1.1rem;
    color: #a0a0a0;
    text-align: justify;
}

.imagen-bloque {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.imagen-bloque img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.75) contrast(1.1);
    transition: all 0.5s ease;
}

.imagen-bloque img:hover {
    filter: brightness(1) contrast(1);
    transform: scale(1.05);
}

.bloque:nth-of-type(1) .imagen-bloque img { object-position: center 15px; }
.bloque:nth-of-type(2) .imagen-bloque img { object-position: center 20%; }
.bloque:nth-of-type(3) .imagen-bloque img { object-position: center 50%; }
.bloque:nth-of-type(4) .imagen-bloque img { object-position: center 50%; }

/* =========================================
   GALERÍA DE VÍDEOS EN UNA SOLA LÍNEA (GOOD VIBES)
   ========================================= */
.galeria-videos {
    max-width: 1200px;
    margin: 80px auto 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; 
}

.video-item {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 9/16; 
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) grayscale(40%);
    transition: all 0.6s ease;
}

.video-item:hover .video-bg {
    filter: brightness(0.9) grayscale(10%);
    transform: scale(1.05);
}

.video-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    pointer-events: none;
}

/* ICONO DE PLAY FLOTANTE */
.icono-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 45px;
    height: 45px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
    transition: all 0.4s ease;
    opacity: 0;
}

.video-item:hover .icono-play {
    transform: translate(-50%, -50%) scale(1.1);
    color: #c48b71;
    opacity: 1;
}

.info-video {
    position: absolute;
    bottom: 20px;
    left: 15px;
    z-index: 2;
    transition: transform 0.4s ease;
}

.info-video h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.info-video p {
    font-size: 0.75rem;
    color: #c48b71;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.video-item:hover .info-video {
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #050505;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #666;
}

/* ANIMACIONES */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
.slide-up { opacity: 0; transform: translateY(50px); transition: 1s ease forwards; }
.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==========================================================
   OPTIMIZACIÓN PREMIUM PARA MÓVILES (10/10)
   ========================================================== */
@media (max-width: 768px) {
    /* 1. MENÚ SUPERIOR - Centrado perfecto */
    .menu-superior {
        width: 90% !important;
        padding: 12px 10px !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .menu-superior nav {
        gap: 12px !important; 
        justify-content: center !important;
        flex-wrap: wrap; 
        width: 100%;
    }
    .menu-superior nav a {
        font-size: 0.65rem !important; 
        letter-spacing: 1px !important;
    }

    /* 2. INICIO - Portada arreglada (Adiós al corte de foto y texto) */
    .hero-dos-columnas { 
        flex-direction: column; 
        min-height: auto; 
        padding-top: 120px; 
        gap: 30px; 
    }
    .foto-columna { 
        height: auto !important; 
        width: 100%; 
        display: flex; 
        justify-content: center; 
    }
    .foto-columna img {
        width: 250px !important; 
        height: 320px !important;
        border-radius: 20px; 
        object-fit: cover;
        object-position: center 20%;
        -webkit-mask-image: none !important; 
        mask-image: none !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }
    .texto-columna { 
        text-align: center; 
        padding: 0 15px 40px 15px !important; 
        margin-top: 0 !important; 
    }
    
    /* TU NOMBRE: Ajuste específico para que jamás se corte de línea */
    .texto-columna h1 {
        font-size: 1.7rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
        white-space: nowrap !important; /* Fuerza a mantenerse en una sola línea */
    }

    /* Resto de Títulos Gigantes (Finanzas, Acción, etc.) */
    .titulo-principal, 
    h1[style*="3.5rem"], 
    h1[style*="3rem"] {
        font-size: 2.2rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
        hyphens: none !important; 
    }

    /* Contacto apilado para que no se salga por la derecha */
    .contacto-hero { 
        flex-direction: column; 
        justify-content: center; 
        gap: 12px; 
    }
    .contacto-hero .separador { 
        display: none; 
    }

    /* BLOQUES DE HISTORIA (INICIO) - Reducción masiva de letras para móvil */
    .bloque, .bloque.reverso { 
        flex-direction: column; 
        gap: 20px !important; /* Bloques más compactos */
    }
    .imagen-bloque img { 
        height: 250px !important; 
        border-radius: 15px; 
    }
    
    .texto-bloque h2 {
        font-size: 1.4rem !important; /* Títulos mucho más finos y elegantes */
        margin-bottom: 10px !important;
        letter-spacing: 0.5px !important;
    }
    
    .texto-bloque p {
        font-size: 0.85rem !important; /* Letra tipo revista, muy fácil de leer */
        line-height: 1.6 !important;
    }

    /* 3. GOOD VIBES - Adiós al "Textaco" abrumador y Carrusel Horizontal */
    .hero-suave p {
        font-size: 0.85rem !important; 
        font-weight: 300 !important; 
        line-height: 1.6 !important;
        padding: 0 5px !important; 
        text-align: center !important; 
        color: #c8c8c8 !important;
    }

    /* Transformación de la galería a Carrusel Deslizable */
    .galeria-videos { 
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory; 
        gap: 15px !important; 
        margin-top: 20px !important;
        padding-bottom: 30px !important;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    .galeria-videos::-webkit-scrollbar { 
        display: none; 
    }
    .video-item { 
        flex: 0 0 75% !important; 
        scroll-snap-align: center; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* 4. ESPACIOS GENERALES (Reducción de aire vacío) */
    .cabecera-accion, 
    .cabecera-finanzas, 
    section[style*="padding: 180px"] {
        padding-top: 130px !important;
        padding-bottom: 20px !important;
    }

    /* Pilares de finanzas y subtítulos generales */
    .texto-pilar, .subtitulo {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* 5. EMBUDO (Finanzas) */
    .contenedor-embudo { padding: 40px 15px !important; }
    .pregunta-embudo { font-size: 1.3rem !important; }
    .btn-opcion { padding: 15px !important; font-size: 0.85rem !important; }
}