/* --- Typography Imports --- */
@font-face {
    font-family: 'DIN Black';
    src: url('assets/tipografia/Din/DIN-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Alternate';
    src: url('assets/tipografia/Din/DIN%20Alternate%20Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables & Design System --- */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-layer: #121212;
    --text-main: #fcfcfc;
    --text-muted: #a0a0a0;
    --accent-color: #d4b572;
    /* Cinematic Gold */
    --accent-glow: rgba(212, 181, 114, 0.4);
    --bmc-yellow: #FFDD00;

    /* Typography */
    --font-heading: 'DIN Black', 'DIN Alternate', sans-serif;
    --heading-spacing: -1px;
    /* <-- Cambia este valor para ajustar el interletrado de los títulos */
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --navbar-height: 80px;
    --section-padding: 100px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img,
video {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--section-padding) 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: var(--heading-spacing);
    font-weight: 600;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* --- Reusable Components --- */
.divider {
    height: 2px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.divider.left-aligned {
    margin-left: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: transparent;
    z-index: 1000;
    transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Prevent elements from touching on resize */
}

.nav-logo {
    height: 40px;
    /* Tamaño del logo en el menú */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-vernos-logo {
    height: 24px; /* Agrandado un 30% desde 18px */
    width: auto;
    display: inline-block;
    flex-shrink: 0; /* Evita que se comprima horizontalmente */
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav-link:hover .nav-vernos-logo {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    flex-shrink: 0;
}

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

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

.highlight-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    color: var(--accent-color);
    transition: all var(--transition-fast);
}

.highlight-btn::after {
    display: none;
}

.highlight-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.1); /* Zoom ligero para ocultar bordes o artefactos del video */
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.main-title {
    margin-bottom: 7rem;
}

.hero-logo {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 25vh;
    width: 350px;
    /* Tamaño base del logo del centro */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 10;
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator.indicator-hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 4px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* --- Proyectos Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 9/16;
    /* Proporciones de un póster vertical tipo 9:16 */
    cursor: pointer;
    background-color: var(--bg-layer);
}

/* --- Proyectos en Desarrollo (Lista tipo IMDb) --- */
.dev-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.dev-list-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-layer);
    border-radius: 4px;
    transition: background-color var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-list-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.dev-thumb {
    width: 60px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 1.5rem;
    flex-shrink: 0;
    opacity: 0.8;
    background-color: #111; /* Fallback visually */
}

.dev-info {
    flex-grow: 1;
}

.dev-info h4 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    margin-top: 0;
}

.dev-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.featured-project {
    grid-column: 1 / -1;
    /* Ocupa todo el ancho */
    cursor: auto;
    background: transparent;
    aspect-ratio: auto;
    /* Anula el aspect-ratio heredado para eliminar el espacio vacío */
}

.featured-header {
    text-align: center;
    margin-bottom: 0;
    padding-top: 2rem;
}

.featured-logo {
    max-width: 90%;
    width: 400px;
    height: auto;
    margin: 0 auto 0.5rem auto;
    display: block;
}

.featured-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.featured-status {
    color: #dfdfdf;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.featured-synopsis {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.featured-synopsis p {
    margin-bottom: 1rem;
}

.featured-link-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    /* Removido totalmente para acercar los proyectos */
    transition: all var(--transition-fast);
}

.featured-link-btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Filtro mágico para logos negros */
.invert-to-white {
    filter: invert(1) brightness(100);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Movido aquí para no deformar el contenedor principal */
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02); /* Escala base para eliminar sub-pixels blancos fantasma de las fronteras */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-overlay h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    transform: translateY(15px);
    transition: transform var(--transition-slow);
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateY(15px);
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
    transform: translateY(0);
}

/* --- Venezuela Locación --- */
.dark-bg {
    background-color: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.venezuela-video-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    container-type: inline-size;
    display: flex;
    align-items: center;
    border-radius: 8px;
    /* Matching the cinematic rounded edges of projects */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    /* Handled by internal text */
}

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

.venezuela-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Black on the left, fading to transparent on the right */
    background: linear-gradient(to right, rgba(2, 2, 2, 1.00) 0%, rgba(2, 2, 2, 0.4) 45%, rgba(2, 2, 2, 0) 100%);
    z-index: 2;
}

.location-container {
    display: grid;
    /* We only use 1 column conceptually, but keeping the CSS grid allows the text to naturally occupy only 50% left side */
    grid-template-columns: 1fr 1fr;
    gap: 2cqw;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.location-text {
    position: relative;
    z-index: 4;
    padding: clamp(1.5rem, 5cqw, 4rem);
    /* Keeps text away from the edges of the box */
}

.location-text h2 {
    font-size: clamp(1.5rem, 5cqw, 3.5rem);
    margin-bottom: clamp(0.5rem, 1.5cqw, 1rem);
    line-height: 1.1;
}

.location-text .divider {
    margin-bottom: clamp(1rem, 3cqw, 2rem);
}

.highlight-text {
    color: var(--accent-color);
    font-style: italic;
}

/* Out-of-bounds Golden Title Dash */
.title-with-dash {
    position: relative;
    padding-left: 0;
}
.title-with-dash::before {
    content: "";
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 4px;
    background-color: var(--accent-color);
}
@media (max-width: 1000px) {
    .title-with-dash::before {
        left: -1rem;
        width: 0.5rem;
    }
}

.location-text p {
    margin-bottom: clamp(0.5rem, 2cqw, 1.5rem);
    font-size: clamp(0.8rem, 2.2cqw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.4;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 500px;
}

.loc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(40%);
    transition: filter var(--transition-fast);
}

.loc-img:hover {
    filter: grayscale(0%);
}

.main-img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.sub-img-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.sub-img-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* --- Contacto --- */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.contact-card {
    background: var(--bg-layer);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 181, 114, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: var(--font-body);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-link {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* --- Apoyo (Crowdfunding) --- */
.support-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1595166649725-d91369fec813?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.support-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.support-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bmc-yellow);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
    transition: all var(--transition-fast);
}

.bmc-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 221, 0, 0.5);
    color: #000;
}

.bmc-icon {
    width: 24px;
    height: 24px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-img {
    height: 30px;
    width: auto;
    margin: 0 auto 1rem auto;
    opacity: 0.6;
    display: block;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }

    100% {
        transform: translateY(15px) translateX(-50%);
        opacity: 0;
    }
}

/* Fade In Obsidian Observer Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .location-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-text {
        padding: 3rem 2rem;
        /* Reduce inner padding on smaller screens */
    }

    .venezuela-gradient {
        /* On mobile, gradient goes from bottom to top or just covers entirely to assure readability */
        background: linear-gradient(to right, rgba(2, 2, 2, 1.00) 0%, rgba(2, 2, 2, 0.4) 60%, rgba(2, 2, 2, 0.15) 100%);
    }

    .grid-layout {
        height: 400px;
    }
}

@media (max-width: 1000px) {
    :root {
        --section-padding: 60px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-layout {
        height: 300px;
    }

    .contact-card {
        padding: 2rem 1rem;
    }
}

/* --- Blog Section --- */
.blog-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    /* Padding superior e inferior para efectos hover y scrollbar */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en iOS */
}

/* Barra de desplazamiento cinematográfica y sutil */
.blog-grid::-webkit-scrollbar {
    height: 8px;
}

.blog-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.blog-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    opacity: 0.5;
}

.blog-card {
    background-color: var(--bg-layer);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Configuración de Slider */
    flex: 0 0 320px;
    /* Ancho fijo de tarjeta, no se achica */
    max-width: 85vw;
    /* Asegura que se vea bien en celulares angostos */
    scroll-snap-align: start;
    /* Encaja perfectamente en la pantalla al soltar */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 181, 114, 0.3);
}

.blog-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-read-more {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-read-more {
    color: var(--accent-color);
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-layer);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 20;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.modal-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.modal-synopsis {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #dfdfdf;
}

.modal-content.vertical-format {
    max-width: 320px;
}

.modal-content.vertical-format .modal-body {
    padding: 1.5rem;
}

.modal-content.vertical-format .modal-title {
    font-size: 1.5rem;
}

.modal-content.vertical-format .modal-synopsis {
    font-size: 0.95rem;
}

.modal-content.vertical-format .modal-video-container {
    aspect-ratio: 9/16;
    border-radius: 4px;
    overflow: hidden;
}

.modal-content.vertical-format .modal-info {
    text-align: center;
}

/* Modal Poster Format (Dev Projects) */
.modal-content.poster-format {
    max-width: 800px;
}

.modal-content.poster-format .modal-body {
    flex-direction: row;
    align-items: center;
}

.modal-content.poster-format #modal-image-container {
    flex: 1;
    width: 50%;
}

.modal-content.poster-format .modal-info {
    flex: 1;
    width: 50%;
    text-align: left;
}

/* Modal Horizontal Format (Dev Projects) */
.modal-content.horizontal-format .modal-body {
    flex-direction: column;
    align-items: center;
}

.modal-content.horizontal-format #modal-image-container {
    width: 100%;
    margin-bottom: 2rem;
}

.modal-content.horizontal-format .modal-info {
    width: 100%;
    text-align: center;
}

@media (max-width: 1000px) {
    .modal-content.poster-format .modal-body,
    .modal-content.horizontal-format .modal-body {
        flex-direction: column;
    }

    .modal-content.poster-format #modal-image-container,
    .modal-content.poster-format .modal-info,
    .modal-content.horizontal-format #modal-image-container,
    .modal-content.horizontal-format .modal-info {
        width: 100%;
        text-align: center;
    }
}

/* --- Making Of Carousel (Vernos Juntos) --- */
.making-of-carousel-section {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    margin: 0 !important;
}

.making-of-carousel-section::before,
.making-of-carousel-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 48px;
    background-color: #000;
    z-index: 10;
    background-image: repeating-linear-gradient(
        to right,
        var(--bg-dark) 0,
        var(--bg-dark) 18px,
        transparent 18px,
        transparent 36px
    );
    background-size: 36px 24px;
    background-repeat: repeat-x;
}
.making-of-carousel-section::before {
    top: 0;
    background-position: center center;
    border-bottom: 2px solid #1a1a1a;
}
.making-of-carousel-section::after {
    bottom: 0;
    background-position: center center;
    border-top: 2px solid #1a1a1a;
}

.carousel-track {
    display: flex;
    position: absolute;
    top: 48px;
    left: 0;
    height: calc(100% - 96px);
    animation: scrollCarousel 40s linear infinite;
    width: max-content;
    background: #000;
}

.carousel-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    border-right: 6px solid #000;
    border-left: 6px solid #000;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* --- TIMELINE RULER --- */
.vj-timeline-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    z-index: 1000;
    background: transparent;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>') 16 16, w-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vj-timeline-track {
    position: relative;
    width: 2px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.2);
    /* Ticks simulating a ruler */
    background-image: repeating-linear-gradient(to bottom,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.6) 19px,
            rgba(255, 255, 255, 0.6) 20px);
}

.vj-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    height: 0%;
    pointer-events: none;
}

.vj-node {
    position: absolute;
    left: -5px;
    width: 13px;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
    cursor: pointer;
}

/* --- Movie Tooltip Mechanics --- */
.movie-tooltip-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px dashed rgba(212, 181, 114, 0.4);
    position: relative;
    transition: var(--transition-fast);
    cursor: pointer;
    display: inline-block;
}

.movie-tooltip-link:hover {
    border-bottom: 2px solid var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

.movie-tooltip {
    position: absolute;
    width: 200px;
    background: var(--bg-layer);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    bottom: 120%;
    left: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.movie-tooltip-link:hover .movie-tooltip,
.movie-tooltip-link.tooltip-active .movie-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

/* --- MULTIMEDIA THEFT DETERRENCE --- */
img, video {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto; /* Allow clicks for modals, but JS blocks right-click */
}

/* --- 360 VIDEO CONTROLS --- */
.video-360-container:hover .v360-controls,
.video-360-container.controls-active .v360-controls {
    opacity: 1;
    pointer-events: auto;
}

.v360-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 70%, transparent);
    padding: 30px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.v360-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.v360-progress-filled {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.v360-progress-thumb {
    position: absolute;
    right: -6px;
    top: -4px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
}

.v360-progress:hover .v360-progress-thumb {
    transform: scale(1.2);
}

.v360-hover-time {
    position: absolute;
    bottom: 15px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-body), sans-serif;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 10;
}

.v360-progress:hover .v360-hover-time {
    opacity: 1;
}

.v360-time {
    color: white;
    font-family: var(--font-body), sans-serif;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    margin-top: -8px;
    margin-bottom: -5px;
    margin-left: 2px;
}

.v360-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.v360-buttons button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.v360-buttons button:hover {
    background: var(--accent-color);
    color: #000;
}

.movie-tooltip-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    background: var(--bg-darker);
    border-radius: 4px;
    margin-bottom: 8px;
}

.movie-tooltip-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.movie-tooltip-year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.vj-node span {
    position: absolute;
    left: 20px;
    top: -12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: var(--heading-spacing);
    letter-spacing: 1px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.vj-timeline-thumb {
    position: absolute;
    left: -6px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 0%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

@media (max-width: 1000px) {
    .vj-timeline-container {
        display: none;
        /* Ocultar en móviles para no estorbar la lectura */
    }

    .nav-vernos-logo {
        height: 34px; /* Aumentado un 40% desde los 24px base */
    }

    .featured-synopsis p {
        padding-left: 2rem; /* Mayor sangrado solicitado */
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-vernos-logo {
        height: 41px; /* Reducido un 15% desde los 48px anteriores (doble base) */
    }
    
    .featured-synopsis p {
        padding-left: 2.5rem; /* Aún más sangrado para móviles pequeños */
        padding-right: 2.5rem;
    }
}

.no-padding-bottom {
    padding-bottom: 0 !important;
}

.mt-negative-lg {
    margin-top: -3.5rem !important;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

.title-with-dash::before {
    top: 52% !important; /* Slightly lower the dash for better optical centering between lines */
}