/* ==========================================================================
   SCHEILA VARGAS - PORTFOLIO v2.3 (Aesthetic Pastel & Slideshow Fix)
   ========================================================================== */

/* Variables */
:root {
    --bg-main: #000000; 
    --bg-card: rgba(255, 255, 255, 0.05); /* Glassmorphism oscuro */
    
    /* Navigation Backgrounds */
    --bg-nav-transparent: transparent;
    --bg-nav-scrolled: rgba(0, 0, 0, 0.9);
    
    --text-main: #FFFFFF; 
    --text-muted: #BBBBBB; 
    
    /* Accents */
    --accent-light: #FFD1DC; 
    --accent-medium: #FFA6C1; 
    --accent-dark: #E63971; 
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 20px 40px rgba(230, 57, 113, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

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

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; /* Tamaño del header para frenar exacto */
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.6;
    position: relative;
}

/* Typography base */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; }
p { color: var(--text-muted); }
a { text-decoration: none; color: inherit; }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav-transparent); 
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

header.scrolled .nav-container { padding: 12px 24px; }

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; 
    transition: var(--transition-fast);
}

header.scrolled .logo { color: #FFF; }

.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    transition: var(--transition-fast);
    position: relative;
}

header.scrolled .nav-links a { color: #FFF; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a:active { 
    color: var(--accent-medium);
}
header.scrolled .nav-links a:hover, header.scrolled .nav-links a:active {
    color: var(--accent-medium);
}

.nav-links a:hover::after, .nav-links a:active::after { width: 100%; }

/* Mobile Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    transition: var(--transition-fast);
}

header.scrolled .menu-btn { color: #FFF; }

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh; /* Fallback for old browsers */
    height: 100svh; /* Previene que el Hero se agrande/salte cuando se oculta la barra de direcciones en el celular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    /* Máscara general para el fundido hacia la siguiente sección */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-cover-photo {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top; 
    opacity: 0.85; /* Para que el NeuralNoise afecte la foto */
    z-index: -2;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    /* Gradiente fundido de negro sólido (fondo) a rosa semitransparente hacia arriba */
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(230, 57, 113, 0.4) 30%, transparent 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin-top: 15vh;
}

.hero-content p.subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 2px 20px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
    font-style: italic;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.6);
}

.btn-principal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-dark);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(230, 57, 113, 0.4);
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 57, 113, 0.4);
    background: #C51F5D;
}
.btn-principal:active {
    transform: scale(0.96);
}

/* Sections Base */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { 
    text-align: center; 
    font-size: clamp(2.2rem, 5vw, 3rem); 
    margin: 100px 0 60px; 
    color: #FFF; 
    /* Sombreado premium: capa oscura fuerte para legibilidad + brillo rosa sutil detrás */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 166, 193, 0.2);
}

/* About Section */
.about-section {
    padding: 50px 5% 50px; 
    position: relative;
    background: transparent;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.about-image-wrapper::before { display: none; }

.about-text h2 { 
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    white-space: nowrap;
    margin-bottom: 30px; 
}
.about-text p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }

/* Video Grids */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.video-grid > .video-card {
    width: 320px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .grid-locales {
        max-width: 700px;
        margin: 0 auto;
    }
}

.video-card, .service-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.video-card:hover, .service-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-wrapper { 
    position: relative; width: 100%; aspect-ratio: 9/16; 
    background: #111; overflow: hidden;
}

.video-wrapper video { 
    width: 100%; height: 100%; object-fit: cover; 
    display: block; transition: var(--transition-smooth); cursor: pointer;
}

.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(6px);
}
.play-overlay svg { width: 30px; height: 30px; margin-left: 4px; fill: white; }
.video-wrapper.is-playing .play-overlay { opacity: 0; }
.video-card:hover video { transform: scale(1.03); }

.card-info { padding: 30px 24px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; height: 220px; }
.card-info h3 { font-size: 1.25rem; margin-bottom: 12px; color: #FFF; font-weight: 600;}
.card-info p { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.4; color: var(--text-muted); flex-grow: 1; }

.wa-link {
    font-size: 0.85rem; color: var(--accent-medium); text-decoration: none; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent-dark);
    padding-bottom: 2px; transition: var(--transition-fast); align-self: center;
    border-radius: 8px;
}
.wa-link:hover {
    background-color: var(--accent-light);
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(255, 166, 193, 0.3);
}
.wa-link:active {
    transform: scale(0.96);
}

/* Promotora Slider */
.promotora-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 0.5s ease;
}
.promotora-slide.active {
    opacity: 1;
}
.video-card:hover .promotora-slide.active {
    transform: scale(1.03); /* Zoom sutil al hacer hover en la tarjeta */
}

/* Promotora Featured Card (Horizontal) */
.video-grid > .promotora-featured {
    width: 100%;
    max-width: 900px;
}
.promotora-featured {
    display: flex;
    flex-direction: row;
    max-width: 900px;
    margin: 0 auto;
}
.promotora-featured .video-wrapper {
    flex: 1;
    aspect-ratio: 4/5; 
}
.promotora-featured .promotora-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
    height: auto; /* Anula el height: 220px de .card-info */
}
.promotora-featured .promotora-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    flex-grow: 0;
}

@media (max-width: 768px) {
    .promotora-featured {
        flex-direction: column;
    }
    .promotora-featured .video-wrapper {
        aspect-ratio: 9/16;
    }
    .promotora-featured .promotora-info {
        padding: 30px;
        text-align: center;
    }
}

/* DRAG SCROLL WRAPPER (Marcas y Fotos) */
.drag-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    cursor: grab;
    padding-top: 20px;
    padding-bottom: 20px;
}
.drag-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.drag-scroll-wrapper.is-dragging {
    cursor: grabbing;
}

/* Forzar que el carrusel ocupe toda la pantalla de borde a borde, ignorando el padding del container en PC y Móvil */
.container .drag-scroll-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.photo-marquee {
    display: flex;
    gap: 30px;
    width: max-content;
}

.photo-marquee .slider-item {
    flex: 0 0 auto;
    width: 300px; 
    aspect-ratio: 3/4; 
    border-radius: 20px; 
    overflow: hidden;
    /* Efecto Premium: Borde tipo cristal y doble sombra (oscura + brillo rosado sutil) */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 166, 193, 0.15);
    transition: var(--transition-smooth);
    background: #111;
}

.photo-marquee .slider-item:hover {
    border-color: rgba(255, 166, 193, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 166, 193, 0.4);
    transform: translateY(-8px);
}

.photo-marquee .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.photo-marquee .slider-item:hover img {
    transform: scale(1.05);
}

.slider-item:hover img {
    transform: scale(1.05);
}

/* Services */
.services-text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .services-text-grid {
        grid-template-columns: 1fr;
    }
}

.service-box { padding: 40px 30px; text-align: center; }
.service-box h3 { margin-bottom: 15px; font-size: 1.4rem; color: #FFF; }
.service-box p { margin-bottom: 25px; color: var(--text-muted); }

/* Brands Marquee */
.brands-section {
    padding: 40px 0; 
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0 60px; 
}

.brands-title {
    text-align: center; 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    text-transform: uppercase;
    letter-spacing: 4px; 
    color: var(--accent-medium); 
    margin-bottom: 60px; 
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 0 20px rgba(255, 166, 193, 0.3);
}

.marquee-container { 
    width: 100%; 
    /* El overflow hidden se pasa al brands-section para que los logos no se corten verticalmente al hacer hover */
    display: flex; 
    padding: 20px 0;
}

.brands-section .marquee {
    display: flex; gap: 50px; align-items: center; padding: 60px 30px; /* Padding vertical gigante para que la sombra no se corte */
    will-change: transform;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    width: max-content;
}

.marquee:hover, .marquee:active {
    animation-play-state: paused;
}

.brands-section .marquee img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: contain;
    border-radius: 50%; /* RESTAURADO: Mantiene la forma redonda original */
    background: transparent; 
    padding: 0; 
    box-shadow: none; 
    transition: var(--transition-smooth);
    -webkit-user-drag: none; /* Previene arrastrar la imagen fantasma */
    user-select: none;
}

.marquee img:hover {
    transform: scale(1.1) translateY(-4px);
    /* Usamos doble box-shadow circular intenso. 
       Eliminamos filter: drop-shadow porque crea un cuadrado invisible alrededor de la imagen original ignorando el border-radius */
    box-shadow: 0 0 25px rgba(255,255,255,0.4), 0 0 45px rgba(255,255,255,0.2);
    z-index: 10;
    position: relative;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contacto Section */
.contacto-section {
    padding: 50px 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(230, 57, 113, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.contacto-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: var(--shadow-soft);
}
.contacto-container .section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
}
.contacto-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* Footer & Redes Sociales */
footer { padding: 100px 24px 40px; text-align: center; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    color: #000; /* Ícono negro sobre círculo blanco para que se vea perfectamente */
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links-footer a:hover {
    color: var(--accent-medium);
    transform: translateY(-3px);
}

.footer-lucas {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-hover);
}

.footer-lucas h4 { font-size: 2rem; margin-bottom: 15px; color: var(--accent-dark); }
.footer-lucas p { font-size: 1.1rem; margin-bottom: 25px; }

.btn-lucas-footer {
    display: inline-block;
    background: transparent;
    color: var(--accent-dark);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent-dark);
    transition: var(--transition-fast);
}

.btn-lucas-footer:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(230, 57, 113, 0.3);
}

.copyright { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.copyright p { margin-bottom: 5px; }

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 50px; }
    .about-image-wrapper::before { top: -10px; left: -10px; right: 10px; bottom: 10px; }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    
    .logo { color: #fff; } /* Aseguramos que el logo sea blanco en móvil si no está scrolled */

    .hero-cover-photo {
        /* Movemos la foto un poco más a la derecha (40% es el punto medio) */
        background-position: 40% top;
    }

    .nav-links {
        position: absolute;
        top: 80px; 
        right: 24px;
        left: auto;
        width: 220px;
        height: auto;
        border-radius: 15px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        
        /* Animación de dropdown */
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-links.active { 
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a { font-size: 1.1rem; color: var(--text-main); }

    .hero h1 { font-size: 3.5rem; }
    .section-title { margin: 70px 0 40px; }
    .video-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .footer-lucas { padding: 40px 20px; }
}
