
/* =========================================
   ESTILO DEFINITIVO SEBAFILMS: PREMIUM LOOK
   ========================================= */

:root {
    --black: #050505;
    --orange: #ff4d00;
    --white: #ffffff;
    --gray: #1a1a1a;
    --font-main: 'Inter', sans-serif;
}

/* 1. RESET Y CONFIGURACIÓN GLOBAL */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* --- OPTIMIZACIÓN GLOBAL --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Evita el scroll horizontal molesto */
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Contenedor universal para mantener márgenes limpios */
.container-fluid {
    width: 100%;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}
/* Grano Cinematográfico sutil */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Grain.png');
    opacity: 0.03; pointer-events: none; z-index: 9999;
}

/* 2. TIPOGRAFÍA GENERAL */
h1, h2, h3, .section-title, .big-logo, .num {
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.15em;
}

.text-orange { color: var(--orange) !important; }

/* Títulos de Secciones Animados */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    padding-left: 30px !important;
    margin-bottom: 60px;
    margin-left: 8%;
    text-align: left;
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    will-change: transform, opacity;
    backface-visibility: hidden; /* Evita micro-parpadeos en Chrome */
    /* MODIFICACIÓN: Desenfoque y Escala */
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    filter: blur(15px);
    transition: all 1.8s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
}

.section-title.visible, .section-title.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 0;
    background: var(--orange);
    transition: height 0.8s ease-out 0.4s;
}

.section-title.visible::before, .section-title.active::before {
    height: 100%;
}

/* =========================================
   NAVEGACIÓN: SÓLIDO -> GLASS
   ========================================= */
#navbar {
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 99999; 
    padding: 25px 0; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ESTADO INICIAL: Negro Sólido */
    background-color: #000000 !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lang-selector {
    display: inline-flex;
    gap: 10px;
    margin-right: 20px;
    vertical-align: middle;
}

.lang-btn {
    font-size: 0.65rem;
    font-weight: 800;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.1em;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--orange);
}

/* Ajuste para que el nav-right no se amontone */
.nav-right {
    display: flex;
    align-items: center;
}
/* ESTADO AL BAJAR: Estilo Glass */
#navbar.scrolled {
    padding: 12px 0;
    /* Fondo semi-transparente */
    background-color: rgba(5, 5, 5, 0.5) !important; 
    /* El efecto desenfoque */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-bottom: 1px solid rgba(255, 77, 0, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 100%;
    padding: 0 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
}

/* --- LOGO IZQUIERDA + ANIMACIÓN --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    z-index: 10;
    flex-shrink: 0;
}

.logo-main {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLogo 0.8s forwards 0.5s;
    gap: 8px;
}

.logo-divider {
    width: 1px;
    height: 18px;
    background: #ff4d00; /* var(--orange) */
    margin: 0 18px;
    animation: drawLine 0.7s forwards;
}

.logo-dev {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
    opacity: 0;
    animation: fadeInLogo 0.8s forwards 0.9s;
}

/* --- MENÚ CENTRADO --- */
.nav-menu { 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex; 
    list-style: none; 
    gap: 40px; 
}

.nav-menu a {
    color: #ffffff; 
    text-decoration: none; 
    font-size: 0.75rem;
    font-weight: 800; 
    letter-spacing: 0.2em; 
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-menu a:hover { color: #ff4d00; }

/* --- BOTÓN WHATSAPP --- */
.btn-nav-whatsapp {
    padding: 10px 22px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ff4d00;
    border-radius: 500px;
    transition: 0.4s;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-nav-whatsapp:hover {
    background: #ff4d00;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

/* --- NUEVO: ESTILOS HAMBURGUESA Y MENÚ MÓVIL --- */
.hamburger {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1000001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-link {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
/* --- FIN NUEVOS ESTILOS --- */

/* --- KEYFRAMES --- */
@keyframes drawLine { 
    from { height: 0; }
    to { height: 25px; } 
}

@keyframes fadeInLogo { 
    to { opacity: 1; transform: translateX(0); } 
}

/* 4. BOTONES */
.btn-main {
    display: inline-flex;
    padding: 18px 45px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-top: 30px;
    transition: 0.4s;
    border-radius: 500px;
    text-transform: uppercase;
}
.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 22px;
    background: var(--orange);
    color: white;
    border: none;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    border-radius: 500px;
    text-transform: uppercase;
}
.btn-submit:hover { background: #ff6a2a; letter-spacing: 0.3em; }

/* 5. HERO SECTION */
.hero {
    height: 100vh; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; z-index: -1;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 0;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; width: 100%; padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: 0.2em !important;
}

.hero p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
}

/* 6. SERVICIOS */
.services-section { padding: 120px 8%; }
.service-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 60px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Estado inicial: invisible, desplazado hacia abajo */
    opacity: 0;
    transform: translateY(70px);
    filter: blur(8px);
    /* Transición más lenta para cada propiedad */
    transition: opacity 1.6s cubic-bezier(0.2, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.2, 1, 0.3, 1),
                filter 1.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Activación individual cuando el ítem entra al viewport */
.service-item.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.service-item .num { font-size: 1.2rem; color: var(--orange); width: 60px; }
.service-item h2 { flex: 1; font-size: clamp(1.5rem, 4vw, 2.5rem); padding-left: 30px; margin: 0; }
.service-item p { max-width: 350px; font-size: 0.9rem; color: #777; text-align: right; }
.service-item:hover { border-bottom-color: var(--orange); background: linear-gradient(to right, rgba(255, 77, 0, 0.03), transparent); }

/* 7. PORTFOLIO — CARRUSEL RUEDA 3D */
.portfolio-slider { padding: 100px 0 60px; overflow: hidden; position: relative; }

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 600px;
    perspective: 1500px;
    width: 100%;
    margin-top: 40px;
}

.video-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 77, 0, 0.1);
    background: #000;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1),
                opacity 0.8s ease,
                filter 0.8s ease,
                width 0.8s ease,
                height 0.8s ease;
    will-change: transform, opacity, width, height;
}

.video-card video {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: filter 0.8s ease;
}

.video-card.center {
    width: 960px; height: 540px;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1; z-index: 10;
    border-color: var(--orange);
    box-shadow: 0 0 50px rgba(255, 77, 0, 0.25), 0 30px 60px rgba(0,0,0,0.8);
}
.video-card.center video { filter: brightness(1); }

.video-card.left1 {
    width: 520px; height: 292px;
    transform: translate3d(-480px, 0, -200px) rotateY(35deg);
    opacity: 0.85; z-index: 5;
}
.video-card.right1 {
    width: 520px; height: 292px;
    transform: translate3d(480px, 0, -200px) rotateY(-35deg);
    opacity: 0.85; z-index: 5;
}
.video-card.left1 video, .video-card.right1 video { filter: brightness(0.65); }
.video-card.left1:hover, .video-card.right1:hover { opacity: 0.95; }

.video-card.far {
    width: 320px; height: 180px;
    opacity: 0;
    transform: translate3d(0, 0, -600px) scale(0.5);
    z-index: 1;
    pointer-events: none;
}

.video-info { display: none; }

/* Contenedor de los controles */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
/* Botón "Ver todos mis trabajos" debajo del carrusel */
.ver-todos-wrap {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}
.btn-ver-todos {
    display: inline-block;
    padding: 16px 38px;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--orange);
    border-radius: 500px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: 0.4s;
}
.btn-ver-todos:hover {
    background: var(--orange);
    box-shadow: 0 0 25px rgba(255, 77, 0, 0.45);
}
/* Flechas (idéntico al sistema de testimonios .testi-btn) */
.slider-arrow {
    background: transparent;
    border: 1px solid rgba(255,77,0,0.4);
    color: var(--orange);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* El efecto naranja al pasar el cursor o hacer clic */
.slider-arrow:hover,
.slider-arrow:active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}
/* Puntos indicadores (idéntico al sistema de testimonios .testi-dot) */
.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.slider-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
/* Punto activo en naranja */
.slider-dots .dot.active {
    background: var(--orange);
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--orange);
}

/* Responsive carrusel */
@media (max-width: 992px) {
    .carousel-container { height: 320px; }
    .video-card.center { width: 90vw; height: 50vw; }
    .video-card.left1, .video-card.right1 { width: 45vw; height: 25vw; transform: translate3d(-52vw, 0, -200px) rotateY(30deg); }
    .video-card.right1 { transform: translate3d(52vw, 0, -200px) rotateY(-30deg); }
}
@media (max-width: 600px) {
    .carousel-container { height: 240px; }
    .video-card.center { width: 92vw; height: 52vw; }
    .video-card.left1 { transform: translate3d(-55vw, 0, -200px) rotateY(30deg); width: 40vw; height: 22vw; }
    .video-card.right1 { transform: translate3d(55vw, 0, -200px) rotateY(-30deg); width: 40vw; height: 22vw; }
}


/* 8. MODO CINE (MODAL) PREMIUM */
.video-modal {
    display: none !important;
    position: fixed; z-index: 99999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}

.video-modal.active { display: flex !important; opacity: 1; }

#modalVideo {
    width: 90%; max-width: 1200px; max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 100px rgba(0,0,0,1), 0 0 30px rgba(255, 77, 0, 0.2);
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-modal.active #modalVideo { transform: scale(1); }

.close-modal {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 60px; font-weight: 100;
    cursor: pointer; z-index: 100000; transition: 0.3s;
}
.close-modal:hover { color: var(--orange); transform: rotate(90deg); }

/* 9. CONTACTO Y SOCIAL ICONS */
.contact-wrapper {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    max-width: 1400px; 
    margin: 60px auto; 
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.03);

    /* MODIFICACIÓN: Revelación de contacto */
    opacity: 0;
    transform: translateY(100px) scale(0.98);
    filter: blur(15px);
    transition: all 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.contact-section.active .contact-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.contact-visual { padding: 60px 8%; }
.info-group { margin-bottom: 20px; }
.info-group span { display: block; font-size: 0.6rem; color: var(--orange); font-weight: 800; letter-spacing: 0.1em; }
.info-group p { font-size: 0.9rem; color: #ccc; }

.social-icons-row { display: flex; gap: 12px; margin-top: 20px; }
.social-circle {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; color: white; text-decoration: none; transition: 0.4s;
}
.social-circle:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-5px); }

.contact-form-container { padding: 60px; background: #0a0a0a; }
.modern-form input, .modern-form textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #1a1a1a;
    padding: 12px 0; margin-bottom: 25px; color: white; outline: none; font-size: 0.85rem;
}
.modern-form input:focus { border-bottom-color: var(--orange); }

/* 10. FOOTER PREMIUM */
footer {
    padding: 100px 0 50px; 
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.footer-logo-md {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 0.35em;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.footer-logo-md span { color: var(--orange); text-shadow: 0 0 10px rgba(255, 77, 0, 0.5); }

.footer-brand p {
    font-size: 0.75rem;
    letter-spacing: 0.7em;
    color: #555;
    text-transform: uppercase;
    margin-top: 10px;
}

.footer-divider {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--orange), transparent);
    margin: 40px auto;
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; padding: 20px 8% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-nav { display: flex; gap: 35px; }
.footer-nav a { color: #777; text-decoration: none; font-size: 0.7rem; font-weight: 700; transition: 0.4s; }
.footer-nav a:hover { color: var(--orange); }
.copyright { font-size: 0.65rem; color: #333; letter-spacing: 0.15em; }

/* 11. WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    background: var(--orange); color: white; padding: 15px 25px;
    border-radius: 50px; text-decoration: none; font-weight: 800;
    font-size: 0.75rem; box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
    display: flex; align-items: center; gap: 10px;
}

/* 12. RESPONSIVO */
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; } /* Mostramos hamburguesa */
    .nav-container { justify-content: space-between; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .video-card { flex: 0 0 85vw; height: 250px; }
    .hero h1 { letter-spacing: 0.1em !important; }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 77, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}

.whatsapp-btn, .btn-nav-whatsapp:hover {
    animation: pulse-orange 2s infinite;
}

/* =========================================
   SISTEMA DE REVELACIÓN (SCROLL CINEMÁTICO)
   ========================================= */

/* Configuración de secciones genéricas reveal */
.reveal {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    filter: blur(20px);
    transition: all 1.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity, filter;
    will-change: transform, opacity;
    backface-visibility: hidden; /* Evita micro-parpadeos en Chrome */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
/* ==========================================================================
   13. SECCIÓN BIOGRAFÍA (ZIG-ZAG + NEÓN STYLE)
   ========================================================================== */

.bio-section {
    padding: 100px 10%;
    background: #050505;
}

.bio-container-zigzag {
    display: flex;
    flex-direction: column;
    gap: 120px; /* Separación épica entre bloques */
    margin-top: 60px;
}

.bio-row {
    display: flex;
    align-items: center;
    gap: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.bio-container-zigzag .bio-row:nth-child(even) {
    flex-direction: row-reverse !important;
}

/* Los impares se mantienen normales */
.bio-container-zigzag .bio-row:nth-child(odd) {
    flex-direction: row !important;
}

/* Responsivo para celulares (todo se apila verticalmente y centrado) */
@media (max-width: 768px) {
    .bio-container-zigzag .bio-row,
    .bio-container-zigzag .bio-row:nth-child(even),
    .bio-container-zigzag .bio-row:nth-child(odd) {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
}
/* Animación cuando entra en pantalla */
.bio-row.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- BORDE NEÓN EN MULTIMEDIA --- */
.bio-media {
    flex: 1.2;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
    /* Efecto Neón Naranja */
    border: 2px solid var(--orange);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4), 
                inset 0 0 10px rgba(255, 77, 0, 0.2);
    transition: box-shadow 0.4s ease;
    will-change: transform, opacity;
    backface-visibility: hidden; /* Evita micro-parpadeos en Chrome */
    height: 500px;
    background: #000;
}

.bio-media:hover {
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.7);
}

.bio-media img, 
.bio-media video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    object-position: center; /* Centra el encuadre */
    display: block;
}

.bio-media:hover img, 
.bio-media:hover video {
    transform: scale(1.05);
}

/* --- RECUADRO DE TEXTO MODERNO (GLASSMORPHISM) --- */
.bio-info-card {
    flex: 0.8;
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bio-info-card .num {
    font-size: 0.8rem;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 15px;
}

.bio-info-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bio-info-card p {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
}

/* --- RESPONSIVE (ADAPTACIÓN A MÓVILES) --- */
@media (max-width: 1100px) {
    .bio-row, .bio-row.reverse {
        gap: 40px;
    }
    .bio-info-card h3 { font-size: 1.8rem; }
}

@media (max-width: 992px) {
    .bio-section { padding: 80px 5%; }
    
    .bio-row, .bio-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .bio-media {
        width: 100%;
        height: 300px;
    }
    
    .bio-media img, 
    .bio-media video {
        height: 350px;
    }

    .bio-info-card {
        width: 100%;
        padding: 40px 30px;
        margin-top: -40px; /* Efecto de solapamiento sobre la imagen */
        z-index: 2;
    }
}
/* --- BOTÓN WHATSAPP FLOTANTE --- */
/* Contenedor principal del botón */
.whatsapp-btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde de WhatsApp */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 15px; /* Mantiene el botón redondo inicialmente */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    z-index: 999;
    overflow: hidden; /* Evita que el texto se salga antes de la animación */
}

/* Ícono de WhatsApp */
.whatsapp-btn-float i {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto oculto por defecto */
.whatsapp-btn-float span {
    max-width: 0;
    opacity: 0;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-left: 0;
    transition: all 0.3s ease-in-out;
}

/* Expansión del botón al hacer hover */
.whatsapp-btn-float:hover {
    padding: 15px 25px; /* Agrega espacio a los lados para que respire el texto */
    background-color: #20b858; /* Verde ligeramente más oscuro al pasar el mouse */
}

/* Aparición del texto al hacer hover */
.whatsapp-btn-float:hover span {
    max-width: 150px; /* Ancho máximo para que entre la palabra */
    opacity: 1;
    margin-left: 10px; /* Separa el texto del ícono */
}
/* =========================================
   REPARACIÓN DE AJUSTE TOTAL (MÓVIL)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Reset de desbordamiento */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* 2. Ajuste del Navbar y Logo */
    #navbar {
        padding: 15px 0 !important;
    }

    .logo-main {
        font-size: 0.35rem !important; /* Logo más pequeño para que no choque */
        letter-spacing: 0.3em !important;
    }

    .logo-divider {
        margin: 0 8px !important;
    }

    .logo-dev {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
    }

    .btn-nav-whatsapp {
        padding: 8px 15px !important;
        font-size: 0.55rem !important;
    }

    /* 3. Títulos (Sección Proyectos Cinematográficos) */
    .section-title {
        font-size: 1.6rem !important; /* Evita que el título se corte */
        margin-left: 5% !important;   /* Menos margen para ganar espacio */
        padding-left: 20px !important;
        width: 90% !important;
        letter-spacing: 0.1em !important;
        line-height: 1.1;
    }

    /* 4. Portfolio 3D (Ajuste Elástico) */
    .carousel-container {
        padding: 40px 10vw !important; /* Centra el carrusel en la pantalla */
        gap: 20px !important;
        perspective: none !important; /* Quitamos la perspectiva fuerte para evitar cortes */
    }

    .video-card {
        flex: 0 0 80vw !important; /* La tarjeta ahora mide el 80% de la pantalla */
        height: 220px !important;
        transform: rotateY(0deg) scale(1) !important; /* Eliminamos el giro que corta los bordes */
        opacity: 0.6;
    }

    .video-card.center {
        opacity: 1 !important;
        transform: scale(1.08) !important; /* Solo un pequeño zoom para destacar */
    }

    /* 5. Biografía y Contenido */
    .bio-section {
        padding: 60px 5% !important;
    }

    .bio-container-zigzag {
        gap: 60px !important;
    }

    .bio-media img, .bio-media video {
        height: 250px !important; /* Altura controlada */
    }

    .bio-info-card {
        padding: 30px 20px !important;
        margin-top: -20px !important; /* Mantiene el look premium sin estorbar */
    }

    .bio-info-card h3 {
        font-size: 1.5rem !important;
    }

    /* 6. Contacto */
    .contact-wrapper {
        margin: 20px auto !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    .contact-form-container {
        padding: 40px 20px !important;
    }

    /* 7. Footer */
    .footer-bottom {
        flex-direction: column !important;
        gap: 25px;
        padding-bottom: 100px; /* Espacio para el botón de WhatsApp flotante */
    }
}
/* =========================================
   SECCIÓN MARCAS (FICTICIAS + LOOP)
   ========================================= */
.brands-section {
    padding: 60px 0;
    background: #050505;
    border-top: 1px solid rgba(255, 77, 0, 0.2);
    overflow: hidden;
    display: block !important; /* Forzamos visibilidad */
    opacity: 1 !important;
}

.brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: scrollBrands 45s linear infinite;
    will-change: transform;
}

/* Bloques de marca: logo en imagen + texto de respaldo (se muestra solo si la imagen no carga) */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 220px;
    height: 75px;
    margin: 0 40px;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.6);
    transition: filter 0.3s ease;
}

.brand-fallback-text {
    display: none;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-item:hover {
    opacity: 1;
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(1);
}

.brand-item:hover .brand-fallback-text {
    color: var(--orange);
}

@keyframes scrollBrands {
    0% { transform: translate3d(0,0,0); }
    100% { transform: translate3d(-50%,0,0); }
}
/* =========================================
   SECCIÓN TESTIMONIOS (OPINIONES AJUSTADAS)
   ========================================= */
.testimonials-section {
    padding: 150px 0;
    background: #050505;
}

.testimonials-container {
    display: grid;
    /* Cuadrícula adaptable para escritorio y móvil */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px; /* Espaciado premium */
    padding: 0 10%;
}

.testimonial-card {
    background: transparent; /* Fondo flotante minimalista */
    border: none;
    padding: 20px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Línea de neón vertical sutil */
.testimonial-card::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    opacity: 0.5;
    transition: opacity 0.4s;
}

.testimonial-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--orange);
}

.quote-icon {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: var(--orange);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.15;
    line-height: 1;
}

.testimonial-text {
    /* --- AJUSTE DE TAMAÑO SOLICITADO --- */
    font-size: 1.15rem; /* Intermedio elegante */
    font-weight: 300;
    color: #eee;
    line-height: 1.7;
    margin-bottom: 35px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    font-style: italic; /* Da un aire más personal y de lujo */
}

.testimonial-author {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.author-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
}

.author-position {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }
    .testimonials-container {
        padding: 0 5%;
        gap: 40px;
    }
    .testimonial-text {
        font-size: 1rem; /* Un poco más pequeño en móvil para legibilidad */
    }
}
/* =========================================
   TÍTULO PREMIUM (SOLUCIÓN DEFINITIVA)
   ========================================= */

.title-premium {
    /* Eliminamos el line-height problemático */
    line-height: 1.2; 
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    color: white;
    /* Usamos Flexbox para apilar Título + Subtítulo */
    display: block;
    flex-direction: column;
    
    
    margin-bottom: 30px;
    padding-top: 20px; /* Espacio extra para que no se corte la tilde */

    /* Degradado Metálico */
    background: linear-gradient(to bottom, #ffffff 45%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Subtítulo Naranja (PARTNERS / REVIEWS) */
.title-premium::after {
    content: attr(data-subtitle);
    display: block;
    
    /* Estilo del subtítulo */
    font-size: 0.65rem;
    letter-spacing: 1.2em;
    font-weight: 400;
    margin-top: 15px; /* Separación controlada del título principal */
    
    /* Reset de color para que Brille en Naranja */
    color: var(--orange) !important;
    -webkit-text-fill-color: var(--orange)!important;
    
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
    text-transform: uppercase;
}

/* Línea de Neón */
.title-separator {
    width: 50px;
    height: 2px;
    background: var(--orange);
    margin: 0 auto 80px; /* Centrado simple */
    box-shadow: 0 0 15px var(--orange);
}
/* Animación de entrada para los links del móvil */
.mobile-menu-overlay.active .mobile-link {
    animation: slideInUp 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Retraso para cada link */
.mobile-link:nth-child(1) { animation-delay: 0.2s; }
.mobile-link:nth-child(2) { animation-delay: 0.3s; }
.mobile-link:nth-child(3) { animation-delay: 0.4s; }
.mobile-link:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* Aceleración por Hardware */
.video-card video, #modalVideo {
    transform: translateZ(0); 
    will-change: transform;
    backface-visibility: hidden;
}
.contact-info-blocks {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-group span {
    display: block;
    font-size: 0.7rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 5px;
}

.info-group p {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
}

/* Efecto hover en los iconos sociales */
.social-circle {
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-circle:hover {
    transform: translateY(-5px);
    background: var(--orange);
    color: white !important;
}
/* --- OVERLAY DE MENÚ MÓVIL --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95); /* Fondo negro profundo */
    backdrop-filter: blur(15px); /* Desenfoque elegante */
    z-index: 99999;
    display: none; /* Se activa con .active */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    animation: fadeInMenu 0.3s ease;
}

/* LA CRUZ DE CIERRE */
.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3.5rem;
    color: var(--orange); /* Tu color naranja */
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
}

/* LINKS DEL MENÚ */
.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--orange);
}

/* SELECTOR DE IDIOMA EN MÓVIL */
.mobile-lang-switch {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

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

/* 1. El contenedor del texto (oculto por defecto) */
.video-info {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--white);
    text-align: center;
    
    /* Estado inicial: invisible y un poco movido hacia abajo */
    opacity: 0; 
    transform: translateY(15px);
    
    /* Transición suave para que "aparezca" */
    transition: opacity 0.6s ease, transform 0.6s ease;
    
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 100%;
}

/* 2. SOLO cuando la tarjeta tiene la clase .center, mostramos el texto */
.video-card.center .video-info {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Ajuste para móviles: que el texto no sea tan grande */
@media (max-width: 768px) {
    .video-info {
        font-size: 0.8rem;
        margin-top: 15px;
        padding: 0 10px;
    }
}
/* =========================================
   TÍTULOS UNIFICADOS — ESTILO PREMIUM
   Segunda palabra en naranja, centrado,
   subtítulo naranja, barra neón
   ========================================= */

.title-premium {
    text-align: center !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    margin-bottom: 30px;
    line-height: 1.2;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    background: linear-gradient(to bottom, #ffffff 45%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-top: 20px;
    /* animación */
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
    transition: all 1.4s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.title-premium.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Sin barra lateral */
.title-premium::before { display: none !important; }

/* Subtítulo naranja neón */
.title-premium::after {
    content: attr(data-subtitle);
    display: block;
    font-size: 0.65rem;
    letter-spacing: 1.2em;
    font-weight: 400;
    margin-top: 15px;
    color: var(--orange) !important;
    -webkit-text-fill-color: var(--orange) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
    text-transform: uppercase;
}

/* Segunda palabra en naranja */
.title-premium .split-orange {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--orange) !important;
    color: var(--orange) !important;
}

/* Barra separadora con neón */
.title-separator {
    width: 50px;
    height: 2px;
    background: var(--orange);
    margin: 0 auto 80px;
    box-shadow: 0 0 15px var(--orange), 0 0 30px rgba(255,77,0,0.4);
}

/* text-orange dentro de service-item h2 no hereda el clip */
.service-item h2 .text-orange,
.bio-info-card h3 .text-orange {
    color: var(--orange) !important;
    -webkit-text-fill-color: var(--orange) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* =========================================
   TESTIMONIOS — CARRUSEL AUTO + COMENTARIOS
   ========================================= */

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 10% 30px;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 clamp(280px, 38vw, 460px);
    scroll-snap-align: center;
    background: transparent;
    border: none;
    padding: 20px 20px 20px 30px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    opacity: 0.5;
    transition: opacity 0.4s;
}
.testimonial-card:hover::before { opacity: 1; box-shadow: 0 0 15px var(--orange); }

.quote-icon {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    color: var(--orange);
    position: absolute;
    top: -5px; left: 0px;
    opacity: 0.15;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.88rem;
    font-weight: 300;
    color: #ddd;
    line-height: 1.75;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.author-name { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 3px; color: var(--white); text-transform: uppercase; }
.author-position { font-size: 0.65rem; color: #666; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; display: block; }

/* Controles carrusel testimonios */
.testi-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.testi-btn {
    background: transparent;
    border: 1px solid rgba(255,77,0,0.4);
    color: var(--orange);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.testi-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }

.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
.testi-dot.active { background: var(--orange); width: 20px; border-radius: 3px; box-shadow: 0 0 8px var(--orange); }

/* Formulario de opiniones */
.comment-form-wrapper {
    max-width: 680px;
    margin: 50px auto 0;
    padding: 50px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,77,0,0.15);
}

.comment-form-title {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 35px;
    color: white;
    background: none !important;
    -webkit-text-fill-color: white !important;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 0;
    margin-bottom: 20px;
    color: white;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-bottom-color: var(--orange); }
.comment-form textarea { resize: none; display: block; }

.btn-submit-comment {
    width: 100%;
    padding: 18px;
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    border-radius: 500px;
    font-family: var(--font-main);
}
.btn-submit-comment:hover {
    background: var(--orange);
    color: white;
    box-shadow: 0 0 20px rgba(255,77,0,0.3);
    letter-spacing: 0.3em;
}

@media (max-width: 768px) {
    .comment-form-row { grid-template-columns: 1fr; }
    .comment-form-wrapper { padding: 30px 20px; margin: 40px 5% 0; }
    .testimonial-card { flex: 0 0 82vw; }
    .testimonials-track { padding: 10px 5% 25px; gap: 20px; }
    .title-separator { margin-bottom: 50px; }
}

/* ==========================================================================
   17. SECCIÓN PORTAFOLIO COMPLETO (GRID + FILTROS + LINK A YOUTUBE)
   ========================================================================== */
.full-portfolio-section {
    padding: 130px 8% 140px;
    position: relative;
}

/* Filtros de categoría */
.pf-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 70px;
}
.pf-filter {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 11px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.pf-filter:hover {
    border-color: var(--orange);
    color: var(--white);
}
.pf-filter.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

/* Contenedor de la grilla: define el borde donde "corta" el fade */
.pf-grid-wrap {
    position: relative;
}

/* Grid de proyectos — altura fija con scroll interno para que la página
   no crezca al agregar más videos */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px 30px;
    max-height: 780px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 16px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(255, 255, 255, 0.06);
}
.pf-grid::-webkit-scrollbar { width: 7px; }
.pf-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.pf-grid::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}
.pf-grid::-webkit-scrollbar-thumb:hover { background: #ff7733; }

/* Degradado inferior que insinúa que hay más contenido para scrollear */
.pf-grid-fade {
    position: absolute;
    left: 0;
    right: 16px;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, var(--black) 92%);
    pointer-events: none;
}

/* Indicador animado debajo de la grilla */
.pf-scroll-hint {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    color: var(--orange);
    font-size: 1rem;
    opacity: 0.75;
    cursor: pointer;
    animation: pfBounce 1.8s ease-in-out infinite;
    transition: opacity 0.4s ease;
}
.pf-scroll-hint.is-hidden { opacity: 0; }
@keyframes pfBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.pf-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.pf-item.active { opacity: 1; transform: translateY(0); }
.pf-item.pf-hidden { display: none; }

/* Cascada sutil por columna (grid de hasta 4) */
.pf-grid .pf-item:nth-child(4n+2) { transition-delay: 0.08s; }
.pf-grid .pf-item:nth-child(4n+3) { transition-delay: 0.16s; }
.pf-grid .pf-item:nth-child(4n+4) { transition-delay: 0.24s; }

/* Miniatura */
.pf-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) brightness(0.85);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), filter 0.6s ease;
}
.pf-item:hover .pf-thumb img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

/* Overlay al pasar el mouse (idéntico en espíritu al sistema naranja del sitio) */
.pf-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pf-item:hover .pf-overlay { opacity: 1; }

.pf-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--orange);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transform: scale(0.8);
    transition: 0.3s;
}
.pf-item:hover .pf-play {
    background: var(--orange);
    color: #fff;
    transform: scale(1);
}

.pf-yt-label {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}
.pf-item:hover .pf-yt-label { transform: translateY(0); }
.pf-yt-label i { color: var(--orange); font-size: 0.9rem; }

/* Info debajo de la miniatura */
.pf-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 2px 0;
}
.pf-num {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--orange);
    opacity: 0.75;
}
.pf-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex: 1;
    min-width: 140px;
}
.pf-cat {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Fallback visual si la miniatura de YouTube todavía no fue cargada (ID de ejemplo) */
.pf-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #111 0 10px, #161616 10px 20px);
}
.pf-fallback::before {
    content: "\f03d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.8rem;
    color: rgba(255, 77, 0, 0.45);
}

@media (max-width: 768px) {
    .full-portfolio-section { padding: 90px 5% 100px; }
    .pf-filters { gap: 10px; margin-bottom: 45px; }
    .pf-filter { padding: 9px 18px; font-size: 0.68rem; }
    .pf-grid { grid-template-columns: 1fr; gap: 40px; max-height: 640px; padding-right: 10px; }
    .pf-grid-fade { right: 10px; height: 70px; }
}

/* ==========================================================================
   17b. LIGHTBOX DE VIDEOS — reproduce sin salir de la página
   ========================================================================== */
.pf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
}
.pf-lightbox.active {
    display: flex;
    animation: fadeInMenu 0.3s ease;
}
.pf-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.pf-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
}
.pf-lightbox-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.pf-lightbox-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.pf-lightbox-close {
    position: absolute;
    top: -54px;
    right: 0;
    background: transparent;
    border: none;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--orange);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.pf-lightbox-close:hover { transform: rotate(90deg); }

@media (max-width: 768px) {
    .pf-lightbox { padding: 0; }
    .pf-lightbox-inner { max-width: 100%; }
    .pf-lightbox-close { top: -46px; right: 4px; font-size: 2.1rem; }
}
