/* FRANCISCO SANTELICES CREATIVE CONTENT - Universal Menu System */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --black: #0D1117;
    --dark-gray: #161B22;
    --medium-gray: #21262D;
    --light-gray: #30363D;
    --text-primary: #FFFFFF; /* Pure White for better contrast */
    --text-secondary: #8B949E;
    --accent-yellow: #f0b90c;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Typography Scale - Based on 1.25 ratio (Perfect Fifth) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

body, html {
    margin: 0;
    padding: 0;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--text-primary);
}

body.cursor-hover #custom-cursor {
    transform: scale(1.8);
    border-bottom-color: var(--accent-yellow);
    transition: transform 0.2s ease-out, border-bottom-color 0.2s ease-out;
}

/* --- Universal Header & Menu --- */

.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 40px;
    border-bottom: 1px solid var(--light-gray);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

#menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px; /* Add padding for better touch target */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Hover only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    #menu-trigger:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Enhanced touch target for mobile */
@media (hover: none) and (pointer: coarse) {
    #menu-trigger {
        padding: 12px 16px;
        min-height: 44px;
        min-width: 44px;
    }
}

.menu-trigger-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.menu-trigger-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

.main-navigation {
    position: fixed;
    top: 85px; /* Position below the header */
    right: 40px;
    background-color: var(--dark-gray);
    border: 1px solid var(--light-gray);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border-radius: 5px;
    z-index: 1200;
    transform-origin: top right;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.main-navigation.active {
    display: flex; /* Make it visible */
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 18px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover only for devices that support hover (desktop) */
@media (hover: hover) and (pointer: fine) {
    .nav-btn:hover {
        color: var(--text-primary);
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.nav-btn.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Enhanced touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        padding: 16px 18px; /* Larger tap target */
        min-height: 48px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
}

/* --- Footer --- */

.main-footer {
    background: var(--black);
    border-top: 1px solid var(--light-gray);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
}

.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    padding: 0 40px 0 0;
}

.credit-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.7;
}

.credit-name {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.8;
}

.credit-year {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    line-height: 1.2;
    opacity: 0.6;
}

/* Footer responsive */
@media screen and (max-width: 768px) {
    .main-footer {
        padding: 16px 0;
        margin-top: 30px;
    }
    
    .footer-content {
        width: 100vw;
        display: flex;
        justify-content: center;
    }
    
    .footer-credit {
        gap: 3px;
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .credit-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }
    
    .credit-name {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .credit-year {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
}

@media screen and (max-width: 480px) {
    .main-footer {
        padding: 12px 0;
        margin-top: 20px;
    }
    
    .footer-content {
        width: 100vw;
        display: flex;
        justify-content: center;
    }
    
    .footer-credit {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .credit-label {
        font-size: 8px;
        letter-spacing: 0.1px;
    }
    
    .credit-name {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    
    .credit-year {
        font-size: 7px;
        letter-spacing: 0.1px;
    }
}

/* --- Other Sections --- */

/* Terminal Section (Hidden for now) */
.terminal-section { display: none; }

/* General Section Styling */
section {
    padding: 120px 60px 0 60px;
    border-bottom: 1px solid var(--light-gray);
    margin: 0;
}

/* Override for sections that should not have padding */
section.seccion-video-principal,
section.animated-text-section,
section.seccion-video-insert,
section.youtube-video-section,
section.creative-video-section,
section.mix-3d-video-section,
section.motion-graphics-section,
section.bfa-video-section,
section.indh-video-section,
section.artistas-yungay-video-section,
section.photography-grid {
    border-bottom: none;
    padding: 0;
    margin: 0;
}

/* Specific margin-top for video section to account for fixed header */
/* Desktop - Header height calculation: 12px padding + 60px logo + 12px padding + 1px border = 85px */
section.seccion-video-principal {
    margin-top: 85px;
}

/* Seccion Video Principal */
.seccion-video-principal {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    border: none;
    margin-bottom: 0;
}

.hero-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-video, .side-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintains original video aspect ratio */
    object-position: center top; /* Keeps top part always visible */
    pointer-events: none;
}

.video-click-blocker {
    position: absolute;
    top: 0; /* Revertido a la posición original */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent; /* Eliminado el fondo rojo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

/* Seccion Texto Animado */
.seccion-texto-animado {
    height: 100vh;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
}

#typewriter {
    font-family: var(--font-primary);
    font-size: 6vw;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
    min-height: 1.2em;
}

/* Seccion Video Insert */
.seccion-video-insert {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    border: none;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.atmospheric-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
}

/* Creative Video Section */
.creative-video-section {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    border: none;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.creative-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.creative-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
}

/* Mix 3D Video Section */
.mix-3d-video-section {
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    border: none;
    margin: 0;
    margin-bottom: 0;
    height: auto;
}

.mix-3d-video-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.mix-3d-video {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: block;
}

.typewriter-cursor {
    display: inline-block;
    width: 0.7em;
    height: 1em;
    background-color: var(--text-primary);
    margin-left: 15px; /* Desktop value - reduced in mobile media queries */
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Seccion Let's Create */
#reset-animation-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    z-index: 1300;
}

.reset-triangle-outline {
    width: 200px;
    height: 173px;
    background-color: transparent;
    border: 2px solid white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
}

.reset-triangle-solid {
    width: 80px;
    height: 70px;
    background-color: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
}

.seccion-lets-create {
    min-height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px; /* Margen interno reducido */
}

.chat-container {
    width: 100%;
    max-width: 800px;
    /* Se elimina la altura fija para que se ajuste al contenido */
    min-height: 400px; /* Asegura una altura mínima */
    border: 1px solid var(--light-gray);
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative; /* Añadido para posicionar el cursor/temporizador */
}

.chat-title-container {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
}

#chat-title-main {
    font-family: var(--font-primary);
    font-weight: 300; /* Light by default */
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.5s ease-in-out;
    white-space: nowrap;
}

#chat-title-sub {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-yellow);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-in-out;
    margin-left: 15px;
}

/* Active state for title animation */
#chat-title-main.active {
    color: #FFFFFF; /* Becomes white and bold */
    font-weight: 700;
}

.chat-container.title-active #chat-title-main {
    color: #FFFFFF; /* Becomes white and bold */
    font-weight: 700;
}

.chat-container.title-active #chat-title-sub {
    opacity: 1;
    transform: translateX(0);
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

.chat-message {
    margin-bottom: 15px;
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    opacity: 1; /* DEBUG: Force visibility */
}

.chat-message.user,
.chat-message.bot {
    color: var(--text-primary);
}

.chat-message.bot {
    color: #FFFFFF !important; /* Force white color for bot responses */
}

.chat-message.user::before,
.chat-message.bot::before {
    content: '> ';
    color: var(--accent-yellow);
}

.chat-input-container {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.chat-prompt {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--accent-yellow);
    margin-right: 15px;
}

#chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 18px;
}

#chat-input:focus {
    outline: none;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.grid-item {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(26, 43, 60, 0.1);
}

/* Photography Grid Section */
.photography-grid {
    padding: 120px 60px;
    margin: 0;
}

/* Motion Graphics Section */
.motion-graphics-section {
    background: var(--black);
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Ensure no gap between mix-3d and motion-graphics sections */
.mix-3d-video-section + .motion-graphics-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Video Container */
.motion-graphics-video-container {
    width: 100%;
    position: relative;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Remove any spacing between consecutive video containers */
.motion-graphics-video-container + .motion-graphics-video-container {
    margin-top: 0;
    padding-top: 0;
}

.motion-graphics-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background-color: var(--black);
    margin: 0;
    padding: 0;
    display: block;
}

/* Motion Graphics Sound Controls Below Video */
.motion-graphics-controls-below {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: var(--black);
    margin: 0;
}

/* Motion Graphics Sound Button - Smaller Size */
.motion-graphics-sound-small {
    font-size: 10px !important;
    padding: 6px 12px !important;
    letter-spacing: 0.3px !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    line-height: 1.3 !important;
}

/* BFA 2025 Section */
.bfa-video-section, .indh-video-section, .artistas-yungay-video-section, .ruta-sanpedro-video-section, .muros-chile-video-section {
    background: var(--black);
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 0;
}

.bfa-video-container, .indh-video-container, .artistas-yungay-video-container, .ruta-sanpedro-video-container, .muros-chile-video-container {
    width: 100%;
    position: relative;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    aspect-ratio: 16/9;
}

.bfa-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background-color: var(--black);
    margin: 0;
    padding: 0;
    display: block;
}

/* BFA controls styles removed - now uses same style as YouTube section */

.bfa-text-container, .indh-text-container, .artistas-yungay-text-container, .ruta-sanpedro-text-container, .muros-chile-text-container, .th-hunter-text-container {
    background: #0D1117;
    padding: 0 60px 40px 60px;
    width: 100%;
}

.bfa-text-layout, .indh-text-layout, .artistas-yungay-text-layout, .ruta-sanpedro-text-layout, .muros-chile-text-layout, .th-hunter-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    background: transparent;
}

.bfa-title-section, .indh-title-section, .artistas-yungay-title-section, .ruta-sanpedro-title-section, .muros-chile-title-section, .th-hunter-title-section {
    display: flex;
    flex-direction: column;
}

.bfa-title-section h3, .indh-title-section h3, .artistas-yungay-title-section h3, .ruta-sanpedro-title-section h3, .muros-chile-title-section h3, .th-hunter-title-section h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
}

.bfa-title-section h3 .subtitle, .indh-title-section h3 .subtitle, .artistas-yungay-title-section h3 .subtitle, .ruta-sanpedro-title-section h3 .subtitle, .muros-chile-title-section h3 .subtitle, .th-hunter-title-section h3 .subtitle {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-top: 2px;
}

.bfa-description-section, .indh-description-section, .artistas-yungay-description-section, .ruta-sanpedro-description-section, .muros-chile-description-section, .th-hunter-description-section {
    display: flex;
    flex-direction: column;
}

.bfa-description-section p, .indh-description-section p, .artistas-yungay-description-section p, .ruta-sanpedro-description-section p, .muros-chile-description-section p, .th-hunter-description-section p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px; /* Same as video-description-text */
    color: #8B949E; /* Same as video-description-text */
    margin: 0;
    line-height: 1.5;
    text-align: justify;
}

/* Responsive styles to match video-description text sizes */
@media (max-width: 1024px) {
    .bfa-title-section h3, .indh-title-section h3, .artistas-yungay-title-section h3, .ruta-sanpedro-title-section h3, .muros-chile-title-section h3, .th-hunter-title-section h3 {
        font-size: 11px; /* Same as video-title */
        letter-spacing: 0.8px;
        line-height: 1.4;
    }
    
    .bfa-title-section h3 .subtitle, .indh-title-section h3 .subtitle, .artistas-yungay-title-section h3 .subtitle, .ruta-sanpedro-title-section h3 .subtitle, .muros-chile-title-section h3 .subtitle, .th-hunter-title-section h3 .subtitle {
        font-size: 0.75em; /* 75% of 11px = 8.25px */
        margin-top: 3px;
    }
    
    .bfa-description-section p, .indh-description-section p, .artistas-yungay-description-section p, .ruta-sanpedro-description-section p, .muros-chile-description-section p, .th-hunter-description-section p {
        font-size: 11px; /* Same as video-description-text */
        line-height: 1.5;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .bfa-title-section h3, .indh-title-section h3, .artistas-yungay-title-section h3, .ruta-sanpedro-title-section h3, .muros-chile-title-section h3, .th-hunter-title-section h3 {
        font-size: 8px !important; /* Same as video-title */
        letter-spacing: 0px;
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important;
    }
    
    .bfa-title-section h3 .subtitle, .indh-title-section h3 .subtitle, .artistas-yungay-title-section h3 .subtitle, .ruta-sanpedro-title-section h3 .subtitle, .muros-chile-title-section h3 .subtitle, .th-hunter-title-section h3 .subtitle {
        font-size: 0.75em !important; /* 75% of 8px = 6px */
        margin-top: 1px;
        text-align: left !important;
    }
    
    .bfa-description-section p, .indh-description-section p, .artistas-yungay-description-section p, .ruta-sanpedro-description-section p, .muros-chile-description-section p, .th-hunter-description-section p {
        font-size: 8px !important; /* Same as video-description-text */
        line-height: 1.3;
        color: #8B949E;
        text-align: justify;
    }
}

@media (max-width: 320px) {
    .bfa-title-section h3, .indh-title-section h3, .artistas-yungay-title-section h3, .ruta-sanpedro-title-section h3, .muros-chile-title-section h3, .th-hunter-title-section h3 {
        font-size: 7px !important; /* Same as video-title */
        letter-spacing: 0px;
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important;
    }
    
    .bfa-title-section h3 .subtitle, .indh-title-section h3 .subtitle, .artistas-yungay-title-section h3 .subtitle, .ruta-sanpedro-title-section h3 .subtitle, .muros-chile-title-section h3 .subtitle, .th-hunter-title-section h3 .subtitle {
        font-size: 0.75em !important; /* 75% of 7px = 5.25px */
        margin-top: 1px;
        text-align: left !important;
    }
    
    .bfa-description-section p, .indh-description-section p, .artistas-yungay-description-section p, .ruta-sanpedro-description-section p, .muros-chile-description-section p, .th-hunter-description-section p {
        font-size: 7px !important; /* Same as video-description-text */
        line-height: 1.2;
        color: #8B949E;
        text-align: justify;
    }
}

/* Motion Graphics Sound Control */
.motion-graphics-controls {
    position: absolute;
    bottom: 20%;
    right: 20px;
    z-index: 15;
}

.motion-graphics-sound-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.motion-graphics-sound-btn:hover {
    color: var(--text-primary);
}

.motion-graphics-sound-btn .sound-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.motion-graphics-sound-btn.sound-enabled .sound-cursor {
    transform: translateX(8px);
    background-color: var(--accent-yellow);
    animation: blink 1s step-end infinite;
}

.motion-graphics-sound-btn.sound-enabled .sound-text {
    color: var(--text-primary);
}

.motion-graphics-sound-btn.sound-enabled .sound-text:after {
    content: " ACTIVADO";
}

/* Text Container */
.motion-graphics-text-container {
    width: 100%;
    padding: 1rem 4rem 2rem 4rem;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.desc-symbol {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.desc-content h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px; /* Matches video description title size */
    color: #FFFFFF; /* Matches video description title color */
    letter-spacing: 1px; /* Matches video description title letter-spacing */
    text-transform: uppercase;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.justified-text {
    text-align: justify;
    text-justify: inter-word;
    font-size: clamp(var(--text-xs), 2vw, var(--text-base));
    line-height: 1.6;
    color: var(--text-secondary);
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-gray);
    text-align: center;
}

.contact-content h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Footer */
.main-footer {
    padding: 50px 60px;
    background: var(--black);
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Bio Section - Nuevo diseño de cuadrícula elegante */
.bio-section {
    background-color: var(--dark-gray);
    padding-top: 160px;
    padding-bottom: 100px;
}

.bio-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.bio-text-content {
    margin-bottom: 60px;
}

/* Header elegante */
.bio-header {
    margin-bottom: 50px;
    text-align: center;
}

.bio-header h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.bio-header h2 {
    font-size: clamp(var(--text-sm), 2vw, var(--text-lg));
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bloques de contenido elegantes */
.bio-block {
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-block:last-of-type {
    border-bottom: none;
}

.bio-block h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.bio-block p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: justify;
    text-justify: inter-word;
    font-weight: 300;
    hyphens: auto;
    word-spacing: 0.1em;
}

.bio-block p:last-child {
    margin-bottom: 0;
}

/* Contacto minimalista */
.bio-contact {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.bio-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    text-align: center;
}

/* Header actions elegantes */
.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.header-actions .menu-trigger-text {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-actions .menu-trigger-text:hover {
    color: var(--text-primary);
}

/* Botón de descarga CV en header */
.cv-download-header {
    display: flex;
    align-items: center;
}

.cv-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv-link:hover {
    transform: translateY(-1px);
}

.cv-link:hover .cv-text {
    color: var(--text-primary);
}

.cv-link:hover .cursor-blink {
    color: var(--text-primary);
}

.cv-text {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.cursor-blink {
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--text-primary);
    margin-left: 3px;
    animation: blink-cursor 1s step-end infinite;
    transition: color 0.3s ease;
}

@keyframes blink-cursor {
    from, to { 
        opacity: 1; 
    }
    50% { 
        opacity: 0; 
    }
}

.bio-text-content ul {
    list-style: none;
    padding-left: 0;
}

.bio-text-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.bio-text-content li::before {
    content: "▪";
    color: var(--accent-yellow);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.bio-text-content a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bio-text-content a:hover {
    color: var(--text-primary);
}

/* Galería horizontal de imágenes */
.bio-images-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bio-image-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--black);
    aspect-ratio: 4/5;
}

.bio-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bio-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    filter: grayscale(10%);
}

.bio-image-item:hover img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* Detectar dispositivos touch y ocultar cursor personalizado */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
    
    body.cursor-hover #custom-cursor {
        display: none !important;
    }
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet styles (768px and below) */
@media screen and (max-width: 768px) {
    /* BFA section responsive */
    .bfa-text-container, .indh-text-container, .artistas-yungay-text-container, .ruta-sanpedro-text-container, .muros-chile-text-container, .th-hunter-text-container {
        padding: 0 40px 30px 40px;
    }
    
    .bfa-text-layout, .indh-text-layout, .artistas-yungay-text-layout, .ruta-sanpedro-text-layout, .muros-chile-text-layout, .th-hunter-text-layout {
        gap: 30px;
        grid-template-columns: 1fr 1fr;
        padding: 15px 0;
    }
    
    /* Video sections sin padding en tablet */
    section.mix-3d-video-section,
    section.motion-graphics-section,
    section.bfa-video-section,
    section.indh-video-section,
    section.artistas-yungay-video-section,
    section.ruta-sanpedro-video-section,
    section.muros-chile-video-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Header adjustments con tipografía mejorada */
    .main-header {
        padding: 0.75rem 1.25rem;
        position: fixed !important;
        top: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-image {
        height: 2.8rem;
    }
    
    .logo-main {
        font-size: 0.75rem;
        letter-spacing: 0.05rem;
    }
    
    .logo-sub {
        font-size: 0.6rem;
    }
    
    .header-actions {
        gap: 1.5rem;
    }
    
    .header-actions .menu-trigger-text,
    .cv-text {
        font-size: 0.5rem;
        letter-spacing: 0.02rem;
    }
    
    .main-navigation {
        top: 4.7rem;
        right: 1.25rem;
    }
    
    /* Video principal section - sin franjas negras */
    /* Tablet - Header height: 0.75rem(12px) + 2.8rem(45px) + 0.75rem(12px) + 1px border = 70px */
    section.seccion-video-principal {
        height: 50vh;
        min-height: 20rem;
        margin: 0;
        margin-top: 70px !important;
        padding: 0;
        border: none;
        background-color: var(--black);
        overflow: hidden;
    }
    
    .hero-video-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .hero-video, .side-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    /* Animated text section - pegado completamente */
    .seccion-texto-animado {
        height: 60vh;
        padding: 0 0.49rem; /* 30% reduction from 0.7rem */
        margin: 0;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
        background-color: var(--black);
        overflow: hidden;
    }
    
    /* Text adjustments con clamp() para fluidez */
    #typewriter {
        font-size: clamp(2rem, 8vw, 4rem);
        letter-spacing: 0.175rem; /* 30% reduction from 0.25rem */
    }
    
    /* Typewriter cursor spacing reduction for tablet */
    .typewriter-cursor {
        margin-left: 10.5px; /* 30% reduction from 15px */
    }
    
    /* Chat section con menos padding */
    .chat-section {
        padding: 1.25rem;
        height: 90vh; /* Altura fija para el viewport de la herramienta */
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .chat-container {
        height: 100%; /* Ocupar toda la altura del padre */
        padding: 1.25rem;
        width: 100%;
        display: flex; /* Asegurar que sea flex para sus hijos */
        flex-direction: column;
    }
    
    /* Grid adjustments optimizado */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
        padding: 0;
    }
    
    /* Motion Graphics section responsive */
    .motion-graphics-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .motion-graphics-text-container {
        padding: 0.75rem 1.25rem 1.5rem 1.25rem;
        text-align: center;
    }
    
    .motion-graphics-video-container {
        aspect-ratio: 16/9;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .desc-content h3 {
        font-size: 11px; /* Matches video description title tablet size */
        letter-spacing: 1px; /* Matches video description */
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
    
    /* Motion Graphics sound button tablet positioning */
    .motion-graphics-controls {
        bottom: 26%;
        right: 18px;
    }
    
    .justified-text {
        text-align: justify; /* Rectangular justification */
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        font-size: 11px; /* Matches video description tablet size */
        line-height: 1.5; /* Matches video description line height */
    }
    
    /* Bio section responsivo mejorado */
    .bio-content-wrapper {
        padding: 0 1.25rem;
    }
    
    .bio-images-horizontal {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2.5rem;
        max-width: 25rem;
    }
    
    .bio-image-item {
        aspect-ratio: 3/2;
    }
    
    .bio-header h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        letter-spacing: 0.125rem;
    }
    
    .bio-block {
        margin-bottom: 2.5rem;
        padding: 1.875rem 0;
    }
    
    .bio-block h3 {
        font-size: clamp(1.25rem, 4vw, 1.4rem);
    }
    
    .bio-block p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Reducir espaciado general entre secciones */
    section {
        padding: 4rem 1.25rem 0 1.25rem;
    }
    
    /* Video y animated text sin padding top extra */
    section.seccion-video-principal,
    section.animated-text-section,
    section.seccion-video-insert,
    section.youtube-video-section,
    section.creative-video-section,
    section.mix-3d-video-section {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    
    /* Photography section con padding adecuado */
    section.photography-grid {
        padding: 4rem 1.25rem;
        margin: 0;
    }
    
    /* Mix 3D video section responsive */
    .mix-3d-video-section {
        height: auto;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .mix-3d-video-container {
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }
    
    .mix-3d-video {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }
    
    /* Video controls tablet positioning */
    .video-controls {
        bottom: 26%;
        right: 18px;
    }
    
    /* Video crop overlays tablet proportions */
    .video-crop-top {
        height: 32%;
        top: -8px;
    }
    
    .video-crop-bottom {
        height: 32%;
        bottom: -8px;
    }
    
    /* Footer optimizado */
    .main-footer {
        padding: 1.875rem 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* Mobile styles (480px and below) */
@media screen and (max-width: 480px) {
    /* BFA section mobile responsive */
    .bfa-text-container, .indh-text-container, .artistas-yungay-text-container, .ruta-sanpedro-text-container, .muros-chile-text-container, .th-hunter-text-container {
        padding: 0 20px 20px 20px;
    }
    
    .bfa-text-layout, .indh-text-layout, .artistas-yungay-text-layout, .ruta-sanpedro-text-layout, .muros-chile-text-layout, .th-hunter-text-layout {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 10px 0;
    }
    
    /* Video sections sin padding en móvil */
    section.mix-3d-video-section,
    section.motion-graphics-section,
    section.bfa-video-section,
    section.indh-video-section,
    section.artistas-yungay-video-section,
    section.ruta-sanpedro-video-section,
    section.muros-chile-video-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Header con mejor legibilidad */
    .main-header {
        padding: 0.25rem 1rem;
        position: fixed !important;
        top: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-image {
        height: 2.2rem;
    }
    
    .logo-main {
        font-size: 0.5rem;
        letter-spacing: 0;
        white-space: nowrap;
    }
    
    .logo-sub {
        font-size: 0.5rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .menu-trigger-text {
        font-size: 0.65rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }
    
    .cv-text {
        font-size: 0.28rem;
        letter-spacing: 0;
    }
    
    
    .main-navigation {
        top: 3.75rem;
        right: 1rem;
    }
    
    /* Menú con mejor tipografía */
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    /* Video principal section - completamente sin franjas */
    /* Mobile - Header height: 0.25rem(4px) + 2.2rem(35px) + 0.25rem(4px) + 1px border = 44px */
    section.seccion-video-principal {
        height: 40vh;
        min-height: 18rem;
        margin: 0;
        margin-top: 44px !important;
        padding: 0;
        border: none;
        background-color: var(--black);
        overflow: hidden;
        position: relative;
    }
    
    .hero-video-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        margin: 0;
        padding: 0;
        background-color: var(--black);
    }
    
    .hero-video, .side-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
        margin: 0;
        padding: 0;
        border: none;
        background-color: var(--black);
    }
    
    /* Animated text section - pegado sin espacios */
    .seccion-texto-animado {
        height: 50vh;
        padding: 0 0.35rem; /* 30% reduction from 0.5rem */
        margin: 0;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
        background-color: var(--black);
        overflow: hidden;
    }
    
    /* Text con tipografía fluida y mejor legibilidad */
    #typewriter {
        font-size: clamp(1.5rem, 10vw, 3rem);
        letter-spacing: 0.0875rem; /* 30% reduction from 0.125rem */
    }
    
    /* Typewriter cursor spacing reduction for mobile */
    .typewriter-cursor {
        margin-left: 10.5px; /* 30% reduction from 15px - consistent with tablet */
    }
    
    /* Let's Create section mobile responsive */
    .seccion-lets-create {
        min-height: 27vh;
        padding: 1rem;
    }
    
    /* Chat section con mejor UX */
    .chat-section {
        padding: 1rem;
        height: 90vh; /* Altura fija también para móviles más pequeños */
        min-height: auto;
    }
    
    .chat-container {
        height: 100%;
        padding: 1rem;
    }
    
    #chat-title-main {
        font-size: 0.9rem;
        letter-spacing: 0.125rem;
    }
    
    .chat-input-container {
        padding-top: 1rem;
    }
    
    #chat-input {
        font-size: 1rem; /* Mínimo 16px para evitar zoom en iOS */
    }
    
    /* Grid optimizado para móvil */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 0.625rem;
        padding: 0;
    }
    
    /* Contact section responsivo */
    .contact-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Bio section mobile optimizado */
    .bio-content-wrapper {
        padding: 0 1rem;
    }
    
    .bio-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: 0.06rem;
    }
    
    .bio-header h2 {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .bio-block {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .bio-block h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin-bottom: 1rem;
    }
    
    .bio-block p {
        font-size: 0.95rem; /* Ligeramente menor para mejor ajuste */
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        word-spacing: 0.05em;
    }
    
    .bio-images-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
        max-width: 18.75rem;
    }
    
    .bio-image-item {
        aspect-ratio: 4/5;
    }
    
    /* Espaciado reducido entre secciones para móvil */
    section {
        padding: 1.8rem 1rem 0 1rem;
    }
    
    /* Video y animated text sin padding extra */
    section.seccion-video-principal,
    section.animated-text-section,
    section.seccion-video-insert,
    section.youtube-video-section,
    section.creative-video-section,
    section.mix-3d-video-section,
    section.motion-graphics-section,
    section.bfa-video-section,
    section.indh-video-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .motion-graphics-video-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Motion Graphics section mobile responsive */
    .motion-graphics-text-container {
        padding: 0.5rem 1rem 1rem 1rem;
        text-align: center;
    }
    
    .motion-graphics-video-container {
        aspect-ratio: 16/9;
        width: 100%;
    }
    
    .desc-content h3 {
        font-size: 8px; /* Matches video description title mobile size */
        letter-spacing: 1px;
    }
    
    .justified-text {
        font-size: 8px; /* Matches video description mobile size */
        line-height: 1.3; /* Matches video description mobile line height */
        text-align: justify; /* Rectangular justification */
    }
    
    /* Motion Graphics sound button mobile positioning */
    .motion-graphics-controls {
        bottom: 31%;
        right: 15px;
    }
    
    /* Photography section mobile con padding adecuado */
    section.photography-grid {
        padding: 1.8rem 1rem;
        margin: 0;
    }
    
    /* Mix 3D video section mobile responsive */
    .mix-3d-video-section {
        height: auto;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background-color: var(--black);
    }
    
    .mix-3d-video-container {
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
        background-color: var(--black);
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }
    
    .mix-3d-video {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        background-color: var(--black);
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }
    
    /* YouTube video section mobile responsive */
    .youtube-video-section {
        height: 35vh;
        min-height: 15rem;
    }
    
    /* Video controls mobile positioning */
    .video-controls {
        bottom: 31%;
        right: 15px;
    }
    
    /* Video crop overlays mobile proportions */
    .video-crop-top {
        height: 34%;
        top: 0px;
    }
    
    .video-crop-bottom {
        height: 40%;
        bottom: -15px;
    }
    
    /* Footer mobile */
    .main-footer {
        padding: 1.25rem 1rem;
    }
}

/* Extra small mobile styles (375px and below) */
@media screen and (max-width: 375px) {
    /* Video crop overlays extra small mobile proportions */
    .video-crop-top {
        height: 34%;
        top: 0px;
    }
    
    .video-crop-bottom {
        height: 42%;
        bottom: -20px;
    }
}


/* === YouTube Video Slider Section === */
.youtube-slider-container {
    width: 100%;
    background-color: var(--black);
    padding: 4rem 2rem;
    position: relative;
}

.slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.slider-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.slider-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.video-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.video-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background-color: #1a1a1a;
    width: 100%;
    margin: 0;
    padding: 0;
}

.video-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.video-slide.active {
    display: block;
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container iframe,
.video-container > div,
.portfolio-video {
    width: 100%;
    height: auto;
    border: none;
    object-fit: cover;
    object-position: center center;
    background-color: var(--black);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.video-slide.active .video-thumbnail {
    opacity: 0;
    pointer-events: none;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    z-index: 2;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide YouTube branding elements */
.video-container iframe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.video-info {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.combined-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.combined-controls .slider-nav {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    top: auto;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.combined-controls .slider-nav:hover {
    transform: translateY(-2px);
}

.video-portfolio-container {
    padding-bottom: 60px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.sound-activation-btn {
    background: none;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sound-activation-btn:hover {
    background: var(--accent-yellow);
    color: var(--black);
    transform: scale(1.05);
}

.sound-activation-btn.active {
    background: var(--accent-yellow);
    color: var(--black);
}

.video-container {
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-family: var(--font-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-50%) translateY(-2px);
}

.slider-nav:active {
    transform: translateY(-50%) translateY(0);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid var(--text-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.indicator.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.indicator:active {
    transform: translateY(0);
}

/* Mobile responsive for YouTube slider */
@media screen and (max-width: 768px) and (min-width: 481px) {
    .youtube-slider-container {
        padding: 2rem 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: -20px;
    }
    
    .slider-next {
        right: -20px;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    /* Combined controls responsive for tablet */
    .combined-controls {
        gap: 15px;
        margin-top: 25px;
    }
    
    .combined-controls .sound-activation-btn {
        width: 140px;
        height: 36px;
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .combined-controls .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    /* Video portfolio full width for tablet */
    .video-portfolio-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .video-slider-wrapper,
    .video-slider,
    .video-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .video-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    .video-slide.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .portfolio-video {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        max-width: none !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .video-slider-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }
    
    .video-slider {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
    }
}

@media screen and (max-width: 768px) and (min-width: 321px) {
    .slider-nav {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        display: inline-block !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    /* Combined controls for this range */
    .combined-controls {
        gap: 15px !important;
        margin-top: 25px !important;
    }
    
    .combined-controls .sound-activation-btn {
        width: 140px !important;
        height: 36px !important;
        font-size: 10px !important;
        padding: 8px 12px !important;
    }
    
    .combined-controls .slider-nav {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    /* Ensure BFA section spacing in mobile */
    .bfa-video-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .slider-nav:hover {
        transform: translateY(-2px);
    }
    
    .video-slider-wrapper {
        text-align: center;
    }
    
    .video-info {
        padding: 0.75rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Combined controls responsive for mobile */
    .combined-controls {
        gap: 10px;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .combined-controls .sound-activation-btn {
        width: 120px;
        height: 32px;
        font-size: 9px;
        padding: 6px 10px;
        letter-spacing: 0.5px;
    }
    
    .combined-controls .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Ensure no container limits width in mobile */
    body, main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow-x: hidden !important;
    }
    
    /* Video portfolio full width for mobile */
    .video-portfolio-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .video-slider-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }
    
    .video-slider {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
    }
    
    .video-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .video-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    .video-slide.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .portfolio-video {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        max-width: none !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
        aspect-ratio: 16/9 !important;
    }
    
}


/* Force video visibility on all mobile screens */
@media screen and (max-width: 768px) {
    .video-portfolio-container .video-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-height: 200px !important;
    }
    
    .video-portfolio-container .portfolio-video {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        display: block !important;
        visibility: visible !important;
        object-fit: cover !important;
    }
}

/* Navigation buttons responsive styles for all screen sizes */
.prev-btn, .next-btn {
    font-size: 16px !important;
    padding: 8px 12px !important;
    letter-spacing: 0 !important;
    min-width: auto !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tablet styles for navigation buttons */
@media screen and (max-width: 768px) {
    .prev-btn, .next-btn {
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
}

/* Fix para orden correcto en móvil */
main {
    display: flex;
    flex-direction: column;
}

.bfa-video-section {
    order: 1;
}

.indh-video-section {
    order: 2;
}

.ruta-sanpedro-video-section {
    order: 3;
}

.artistas-yungay-video-section {
    order: 4;
}

.muros-chile-video-section {
    order: 5;
}

.motion-graphics-section {
    order: 6;
}

.mix-3d-video-section {
    order: 7;
}

/* Mobile styles for navigation buttons */
/* Navigation hint message styles */
.navigation-hint {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navigation-hint:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .navigation-hint {
        font-size: 10px !important;
        margin-top: 6px;
    }
}

@media screen and (max-width: 480px) {
    .prev-btn, .next-btn {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
    
    .navigation-hint {
        font-size: 9px !important;
        margin-top: 5px;
        letter-spacing: 0.3px;
    }
}

@media screen and (max-width: 320px) {
    .navigation-hint {
        font-size: 8px !important;
        margin-top: 4px;
    }
}

/* Video Description Container Styles */
.video-description-section {
    background: #0D1117;
    padding: 0 60px 0 60px;
    width: 100%;
    margin-bottom: 0;
}

.video-description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal halves */
    gap: 40px; /* Increased for elegance */
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px; /* Only top padding */
    background: transparent;
}

.video-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px; /* Same as description */
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.4; /* More elegant spacing */
    padding-right: 20px; /* Symmetric padding */
    text-align: left; /* Left align, not justify */
    overflow: hidden;
}

.video-title .subtitle {
    display: block; /* Force to new line */
    font-size: 0.75em; /* 75% of main title size */
    font-weight: 400; /* Lighter weight */
    letter-spacing: 0.5px; /* Reduced letter spacing */
    text-transform: none; /* No uppercase for subtitle */
    margin-top: 4px; /* Small gap between lines */
    text-align: left; /* Left align, not justify */
}

.video-description-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px; /* Increased by 1px from 11px */
    color: #8B949E;
    margin: 0;
    line-height: 1.6; /* More elegant line spacing */
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    padding-left: 20px; /* Symmetric with title padding */
}

/* Tablet styles for video description */
@media screen and (max-width: 768px) {
    .video-description-section {
        padding: 0 40px 30px 40px; /* Symmetric padding maintained */
    }
    
    .video-description-grid {
        gap: 30px; /* Proportional reduction */
        grid-template-columns: 1fr 1fr; /* Keep elegant two halves */
        padding: 15px 0; /* Proportional vertical padding */
    }
    
    .video-title {
        font-size: 11px; /* Same as description */
        letter-spacing: 0.8px;
        line-height: 1.4;
        padding-right: 15px; /* Symmetric padding */
    }
    
    .video-title .subtitle {
        font-size: 0.75em; /* 75% of 11px = 8.25px */
        margin-top: 3px;
    }
    
    .video-description-text {
        font-size: 11px; /* Increased by 1px from 10px */
        line-height: 1.5; /* Elegant spacing maintained */
        padding-left: 15px; /* Symmetric with title padding */
    }
}

/* Mobile styles for video description */
@media screen and (max-width: 480px) {
    .video-description-section {
        padding: 0 20px 20px 20px; /* Symmetric all around */
    }
    
    .video-description-grid {
        grid-template-columns: 1fr 1fr; /* Elegant two halves maintained */
        gap: 20px; /* Proportional and symmetric */
        padding: 10px 0; /* Symmetric vertical spacing */
    }
    
    .video-title {
        font-size: 8px !important; /* Same as description */
        letter-spacing: 0px; /* No spacing to fit in one line */
        padding-right: 10px; /* Symmetric padding */
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important; /* Force left align */
    }
    
    .video-title .subtitle {
        font-size: 0.75em !important; /* 75% of 8px = 6px */
        margin-top: 1px;
        text-align: left !important; /* Force left align */
    }
    
    .video-description-text {
        font-size: 8px !important; /* Increased by 1px from 7px */
        line-height: 1.3; /* More compact */
        color: #8B949E;
        padding-left: 10px; /* Symmetric with title */
    }
}

/* ==============================================
   SISTEMA DE CROP REUTILIZABLE v1.0
   Sistema para crear barras visuales de recorte
   ============================================== */

/* Variables CSS para fácil personalización */
:root {
  --crop-color: #0D1117;          /* Color por defecto (fondo de controles) */
  --crop-height: 30px;            /* Altura por defecto de las barras */
  --crop-z-index: 10;             /* Z-index para flotar sobre contenido */
}

/* Clase base crop */
.crop {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--crop-height);
  background-color: var(--crop-color);
  z-index: var(--crop-z-index);
  pointer-events: none; /* No interfiere con interacciones */
  transition: transform 0.3s ease; /* Suaviza movimientos */
}

/* Modificadores de posición */
.crop-top {
  top: 0;
}

.crop-bottom {
  bottom: 0;
}

/* Sistema de movimiento vertical */
.move-up-1  { transform: translateY(-1px); }
.move-up-2  { transform: translateY(-2px); }
.move-up-3  { transform: translateY(-3px); }
.move-up-5  { transform: translateY(-5px); }
.move-up-8  { transform: translateY(-8px); }
.move-up-10 { transform: translateY(-10px); }
.move-up-15 { transform: translateY(-15px); }
.move-up-20 { transform: translateY(-20px); }
.move-up-25 { transform: translateY(-25px); }
.move-up-30 { transform: translateY(-30px); }

.move-down-1  { transform: translateY(1px); }
.move-down-2  { transform: translateY(2px); }
.move-down-3  { transform: translateY(3px); }
.move-down-5  { transform: translateY(5px); }
.move-down-8  { transform: translateY(8px); }
.move-down-10 { transform: translateY(10px); }
.move-down-15 { transform: translateY(15px); }
.move-down-20 { transform: translateY(20px); }
.move-down-25 { transform: translateY(25px); }
.move-down-30 { transform: translateY(30px); }

/* Clases utilitarias de altura */
.crop-thin     { --crop-height: 15px; }
.crop-medium   { --crop-height: 30px; }
.crop-thick    { --crop-height: 45px; }

/* Clases utilitarias de color */
.crop-controls { --crop-color: #0D1117; } /* Color de fondo de controles */
.crop-black    { --crop-color: #000; }
.crop-dark     { --crop-color: #0D1117; }

/* Contenedor helper */
.crop-container {
  position: relative;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .crop {
    --crop-height: 25px;
  }
}

@media (max-width: 480px) {
  .crop {
    --crop-height: 20px;
  }
}

/* ==============================================
   SISTEMA ESTÁNDAR PARA CONTENEDORES DE VIDEO
   Clases reutilizables para futuros videos
   ============================================== */

/* Contenedor principal de sección de video */
.video-section-standard {
    background: var(--black);
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 0;
}

/* Contenedor del iframe/video */
.video-container-standard {
    width: 100%;
    position: relative;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    aspect-ratio: 16/9;
}

/* Iframe del video */
.video-iframe-standard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--black);
}

/* Controles de sonido estándar */
.video-controls-standard {
    background: #0D1117;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.video-controls-container-standard {
    background: #0D1117;
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-sound-btn-standard {
    background: #f0b90c;
    color: #000;
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    min-width: fit-content;
    transition: all 0.3s ease;
}

/* Contenedor de texto estándar */
.video-text-container-standard {
    background: #0D1117;
    padding: 0 60px 40px 60px;
    width: 100%;
}

/* Layout de texto estándar (grid 2 columnas) */
.video-text-layout-standard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    background: transparent;
}

/* Sección de título estándar */
.video-title-section-standard {
    display: flex;
    flex-direction: column;
}

.video-title-section-standard h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
}

.video-title-section-standard h3 .subtitle {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-transform: none;
    margin-top: 4px;
    font-family: var(--font-primary);
}

/* Sección de descripción estándar */
.video-description-section-standard {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.video-description-section-standard p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    color: #8B949E;
    margin: 0;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-wrap: break-word;
}

/* ==============================================
   RESPONSIVE PARA CLASES ESTÁNDAR
   ============================================== */

/* Tablet */
@media screen and (max-width: 768px) {
    .video-text-container-standard {
        padding: 0 40px 30px 40px;
    }
    
    .video-text-layout-standard {
        gap: 30px;
        grid-template-columns: 1fr 1fr;
        padding: 15px 0;
    }
    
    .video-title-section-standard h3 {
        font-size: 11px;
        letter-spacing: 0.8px;
        line-height: 1.4;
    }
    
    .video-title-section-standard h3 .subtitle {
        font-size: 0.75em;
        margin-top: 3px;
    }
    
    .video-description-section-standard p {
        font-size: 11px;
        line-height: 1.5;
        text-align: justify;
    }
    
    .video-section-standard {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .video-text-container-standard {
        padding: 0 20px 20px 20px;
    }
    
    .video-text-layout-standard {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 10px 0;
    }
    
    .video-title-section-standard h3 {
        font-size: 8px !important;
        letter-spacing: 0px;
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important;
    }
    
    .video-title-section-standard h3 .subtitle {
        font-size: 0.75em !important;
        margin-top: 1px;
        text-align: left !important;
    }
    
    .video-description-section-standard p {
        font-size: 8px !important;
        line-height: 1.3;
        color: #8B949E;
        text-align: justify;
    }
    
    .video-section-standard {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Extra Small */
@media (max-width: 320px) {
    .video-title-section-standard h3 {
        font-size: 7px !important;
        letter-spacing: 0px;
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important;
    }
    
    .video-title-section-standard h3 .subtitle {
        font-size: 0.75em !important;
        margin-top: 1px;
        text-align: left !important;
    }
    
    .video-description-section-standard p {
        font-size: 7px !important;
        line-height: 1.2;
        color: #8B949E;
        text-align: justify;
    }
    
    .video-section-standard {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Extra small screens (very narrow) */
@media screen and (max-width: 320px) {
    /* Video sections sin padding en pantallas extra pequeñas */
    section.mix-3d-video-section,
    section.motion-graphics-section,
    section.bfa-video-section,
    section.indh-video-section,
    section.ruta-sanpedro-video-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .prev-btn, .next-btn {
        font-size: 10px !important;
        padding: 4px 6px !important;
    }
    
    .video-description-section {
        padding: 0 15px 15px 15px; /* Symmetric all around */
    }
    
    .video-description-grid {
        grid-template-columns: 1fr 1fr; /* Elegant two halves maintained */
        gap: 15px; /* Proportional and symmetric */
        padding: 8px 0; /* Symmetric vertical spacing */
    }
    
    .video-title {
        font-size: 7px !important; /* Same as description */
        letter-spacing: 0px; /* No spacing for very small screens */
        padding-right: 8px; /* Symmetric padding */
        white-space: normal;
        line-height: 1.1;
        font-weight: 700;
        color: #FFFFFF;
        text-transform: uppercase;
        text-align: left !important; /* Force left align */
    }
    
    .video-title .subtitle {
        font-size: 0.75em !important; /* 75% of 7px = 5.25px */
        margin-top: 1px;
        text-align: left !important; /* Force left align */
    }
    
    .video-description-text {
        font-size: 7px !important; /* Increased by 1px from 6px */
        line-height: 1.2; /* More compact */
        color: #8B949E;
        padding-left: 8px; /* Symmetric with title */
    }
    
    /* Ensure no container limits width in extra small mobile */
    body, main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow-x: hidden !important;
    }
    
    .video-portfolio-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        overflow-x: hidden !important;
        display: block !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .video-slider-wrapper,
    .video-slider,
    .video-container {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .video-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    .video-slide.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .portfolio-video {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure BFA section spacing in extra small mobile */
    .bfa-video-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
}

/* === VIDEO PORTFOLIO SECTION === */
.video-portfolio-container {
    background: var(--black);
    padding: 60px 0;
    width: 100%;
}

.video-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-container {
    width: 100%;
    background: var(--black);
    margin-bottom: 20px;
}

.video-container:not(.active) {
    display: none !important;
}

.portfolio-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: var(--black);
    min-height: 200px;
}

.youtube-video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: var(--black);
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--black);
}

.combined-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.sound-activation-btn {
    background: none;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-activation-btn:hover,
.sound-activation-btn.active {
    background: var(--accent-yellow);
    color: var(--black);
}

.slider-nav {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Mobile Styles - FULL WIDTH */
@media screen and (max-width: 768px) {
    .video-portfolio-container {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .video-slider-wrapper {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .video-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .portfolio-video {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        min-height: 250px !important;
    }
    
    .combined-controls {
        gap: 15px;
        margin: 30px auto;
        padding: 0 20px;
    }
    
    .sound-activation-btn {
        width: 140px;
        height: 36px;
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .slider-header {
        padding: 40px 20px 20px 20px;
    }
}

/* === Original YouTube Video Section === */
.youtube-video-section {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    border: none;
    margin: 0;
    transform: translateY(-30%);
}

.youtube-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--black);
}

.video-controls {
    position: absolute;
    bottom: 20%;
    right: 20px;
    z-index: 15;
}

.sound-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.sound-toggle-btn:hover {
    color: var(--text-primary);
}

.sound-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease;
}

.sound-toggle-btn.sound-enabled .sound-cursor {
    transform: translateX(8px);
    background-color: var(--accent-yellow);
    animation: blink 1s step-end infinite;
}

.sound-text-off,
.sound-text-on {
    display: none;
    position: relative;
    top: 0.6px;
}

.sound-toggle-btn .sound-text-off {
    display: inline;
}

.sound-toggle-btn.sound-enabled .sound-text-off {
    display: none;
}

.sound-toggle-btn.sound-enabled .sound-text-on {
    display: inline;
}

/* Video Crop Overlays */
.video-crop-top,
.video-crop-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--black);
    z-index: 5;
    pointer-events: none;
}

.video-crop-top {
    top: -10px;
    height: 30%;
}

.video-crop-bottom {
    bottom: -10px;
    height: 30%;
}