/* ==========================================
   DISEÑO PROYECTUAL - ESTILOS BASE Y CONFIG
   ========================================== */

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #131518;
    --bg-tertiary: #191c20;
    --text-primary: #f1f3f5;
    --text-secondary: #9da5b0;
    --text-muted: #5e6671;
    --accent: #ff5533; /* Naranja Proyectual FADU */
    --accent-dim: rgba(255, 85, 51, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.02);
    --sidebar-width: 280px;
    --font-titles: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    overflow: hidden; /* Evita doble scrollbar */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ==========================================
   MENÚ LATERAL (SIDEBAR DE DIBUJO TÉCNICO)
   ========================================== */

.navigation-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    z-index: 100;
}

.nav-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-title {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-links li {
    position: relative;
    padding-left: 20px;
}

.nav-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.nav-links a {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Enlaces activos e interacción */
.nav-links li.active::before {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.nav-links li.active a,
.nav-links li a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-indicator {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Indicador de Progreso Vertical */
.progress-bar-container {
    position: fixed;
    left: calc(var(--sidebar-width) - 2px);
    top: 0;
    width: 3px;
    height: 100vh;
    background: transparent;
    z-index: 101;
    pointer-events: none;
}

.progress-bar {
    width: 100%;
    height: 0%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: height 0.1s ease-out;
}

/* ==========================================
   CONTENEDOR DE DIAPOSITIVAS (SCROLL SNAP)
   ========================================== */

.slides-container {
    position: absolute;
    left: var(--sidebar-width);
    top: 0;
    width: calc(100vw - var(--sidebar-width));
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Ocultar barra en Firefox */
}

.slides-container::-webkit-scrollbar {
    display: none; /* Ocultar barra en Chrome/Safari */
}

.slide-section {
    display: block; /* Contenedor de slides por TP */
}

.slide {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 60px 80px;
}

/* Grilla proyectual de fondo */
.grid-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================
   ESTILOS DE DIAPOSITIVA: INICIO / PORTADA
   ========================================== */

.cover-slide {
    justify-content: flex-start;
}

.cover-slide .slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-tag {
    font-family: var(--font-titles);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent);
}

.main-title {
    font-family: var(--font-titles);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.student-name {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 10px;
}

.cover-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-item .label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.footer-item .value {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.scroll-prompt {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-8px) rotate(45deg); }
    60% { transform: translateY(-4px) rotate(45deg); }
}

/* ==========================================
   ESTILOS DE DIAPOSITIVA: ESTRUCTURA SPLIT
   ========================================== */

.slide-content-split {
    display: grid;
    grid-template-columns: 1fr 3fr; /* 25% texto y 75% imagen para dar total protagonismo visual */
    gap: 60px;
    width: 100%;
    height: calc(100vh - 120px); /* Alto exacto: 100vh menos paddings */
    align-items: stretch; /* Cambiado a stretch para obligar a los contenedores a respetar el alto del grid */
    position: relative;
    z-index: 10;
    min-height: 0; /* Evita que el contenedor desborde el flexbox padre */
}

.slide-content-split > * {
    grid-row: 1; /* Fuerza a todos los elementos del grid split a estar en la misma fila y no encimarse */
    min-height: 0; /* Permite a los hijos del grid encogerse por debajo de su tamaño de contenido */
}

.slide-content-wide {
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 120px); /* Evita desborde vertical en escritorio */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.split-reverse {
    grid-template-columns: 3fr 1fr; /* Invertido: 75% imagen y 25% texto */
}

.split-reverse .split-text {
    grid-column: 2;
}

.split-reverse .split-visual {
    grid-column: 1;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.tp-number {
    font-family: var(--font-titles);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-dim);
    line-height: 1;
    margin-bottom: -15px;
    border-bottom: 2px solid var(--accent);
    width: fit-content;
    padding-bottom: 10px;
}

.slide-step {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
}

.split-text h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.split-text h3 {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.split-text .description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
}

.slide-meta {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.slide-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* ==========================================
   ESTILOS DE DIAPOSITIVA: LÁMINA COMPLETA
   ========================================== */

.slide-content-full {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 120px); /* Evita desborde vertical en escritorio */
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.full-header {
    margin-bottom: 30px;
}

.full-header h3 {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 600;
}

.full-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================
   IMÁGENES Y MARCADORES DE POSICIÓN (PLACEHOLDERS)
   ========================================== */

.split-visual {
    width: 100%;
    height: 100%; /* Ocupa el 100% del alto del contenedor interno para no desbordar */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* Evita que crezca al tamaño natural del contenido */
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    min-height: 0; /* Evita desborde vertical de la imagen */
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Obliga a mostrar la imagen completa sin recortes */
    transition: transform 0.8s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.image-wrapper-full {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px); /* Resta el header */
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper-full img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para láminas completas */
}

/* Ocultar el recuadro de fondo, bordes y líneas técnicas cuando ya hay una imagen real */
.image-wrapper:has(img),
.image-wrapper-full:has(img) {
    background-color: transparent !important;
    border: none !important;
    overflow: visible; /* Permite zoom y visualización sin recortes */
}

.image-wrapper:has(img)::before,
.image-wrapper:has(img)::after,
.image-wrapper-full:has(img)::before,
.image-wrapper-full:has(img)::after {
    display: none !important;
}

/* Estilo Técnico de los Placeholders (En lugar de imágenes vacías) */
.placeholder-label {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    z-index: 10;
    background-color: var(--bg-primary);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
}

/* Efectos visuales de dibujo técnico para simular láminas */
.image-wrapper::before,
.image-wrapper-full::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Diagonales de marcador de dibujo */
.image-wrapper::after,
.image-wrapper-full::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03) 50%, transparent);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Patrones geométricos CSS sutiles para los diferentes TPs */
.placeholder-pattern-1 {
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px),
        radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.placeholder-pattern-2 {
    background-image: 
        linear-gradient(45deg, var(--bg-tertiary) 25%, transparent 25%, transparent 75%, var(--bg-tertiary) 75%),
        linear-gradient(45deg, var(--bg-tertiary) 25%, transparent 25%, transparent 75%, var(--bg-tertiary) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.placeholder-pattern-3 {
    background-image: 
        linear-gradient(0deg, transparent 24%, var(--bg-tertiary) 25%, var(--bg-tertiary) 26%, transparent 27%, transparent 74%, var(--bg-tertiary) 75%, var(--bg-tertiary) 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, var(--bg-tertiary) 25%, var(--bg-tertiary) 26%, transparent 27%, transparent 74%, var(--bg-tertiary) 75%, var(--bg-tertiary) 76%, transparent 77%);
    background-size: 40px 40px;
}

.placeholder-pattern-4 {
    background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
}

/* ==========================================
   ANIMACIONES AL ENTRAR (INTERSECTION OBSERVER)
   ========================================== */

/* Estado inicial */
.slide .split-text,
.slide .split-visual,
.slide .full-header,
.slide .image-wrapper-full,
.slide .slide-content-wide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Estado activo cuando la diapositiva entra */
.slide.active-slide .split-text,
.slide.active-slide .split-visual,
.slide.active-slide .full-header,
.slide.active-slide .image-wrapper-full,
.slide.active-slide .slide-content-wide {
    opacity: 1;
    transform: translateY(0);
}

/* Delay sutil para elementos secundarios */
.slide.active-slide .split-visual,
.slide.active-slide .image-wrapper-full {
    transition-delay: 0.2s;
}

/* ==========================================
   DISEÑO ADAPTATIVO (MEDIA QUERIES)
   ========================================== */

/* Pantallas grandes o medianas - ajuste de padding */
@media (max-width: 1200px) {
    .slide {
        padding: 40px 50px;
    }
    .slide-content-split {
        gap: 40px;
    }
}

/* Pantallas verticales o móviles - El diseño está pensado prioritariamente para escritorio,
   pero añadimos un modo ordenado de scroll estándar si se ve en un móvil o en orientación vertical */
@media (max-width: 768px), (orientation: portrait) {
    :root {
        --sidebar-width: 0px; /* Oculta barra */
    }

    .slide-content-split,
    .slide-content-wide,
    .slide-content-full {
        height: auto !important; /* Resetea el alto fijo en dispositivos verticales o móviles */
    }

    body, html {
        overflow-y: auto; /* Permite scroll normal vertical */
    }

    .navigation-menu {
        display: none; /* En móvil se ocultaría (o se podría hacer menú hamburguesa) */
    }

    .progress-bar-container {
        display: none;
    }

    .slides-container {
        position: relative;
        left: 0;
        width: 100vw;
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none; /* Desactiva snap en móvil */
    }

    .slide {
        height: auto;
        min-height: 100vh;
        padding: 60px 20px;
        scroll-snap-align: none;
        flex-direction: column;
    }

    .slide-content-split {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
    }

    .split-reverse {
        grid-template-columns: 1fr;
    }
    
    .split-reverse .split-text {
        grid-column: 1;
    }

    .split-reverse .split-visual {
        grid-column: 1;
    }

    .split-visual {
        height: 50vh;
    }

    .image-wrapper-full {
        height: 60vh;
    }
    
    .cover-slide .slide-content {
        padding-top: 40px;
    }
    
    .cover-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 40px;
    }

    .gallery-wrapper {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .gallery-wrapper .image-wrapper {
        height: 40vh;
        width: 100%;
    }

    /* Ajustes responsivos para carrusel y video de TP4 */
    .gallery-carousel-visual {
        height: auto !important;
        margin-top: 15px;
    }

    .gallery-carousel-container {
        height: auto !important;
        gap: 10px;
    }

    .carousel-large-display {
        height: 45vh !important;
        min-height: 260px;
    }

    .carousel-thumbnails-strip {
        padding-bottom: 5px;
    }

    .thumb-btn {
        flex: 0 0 55px;
        height: 55px;
    }

    .video-preview-card {
        height: 45vh !important;
        min-height: 260px;
        margin-top: 15px;
    }

    .video-modal-container {
        width: 95vw;
        max-height: 90vh;
    }
}

/* ==========================================
   ESTILOS DE GALERÍA Y COMPONENTES ADICIONALES
   ========================================== */

.gallery-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    height: 100%;
}

.gallery-wrapper .image-wrapper {
    flex: 1;
    height: 100%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 12px 24px;
    font-family: var(--font-titles);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 20px;
    width: fit-content;
}

.btn-primary:hover {
    background-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-dim);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================
   ESTILOS DEL MODAL PDF (ESCRITORIO)
   ========================================== */

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdf-modal.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90vw;
    height: 85vh;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1010;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.pdf-modal.modal-active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
}

.modal-title {
    font-family: var(--font-titles);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

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

.modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   TP4 GALERÍA FOTOGRÁFICA (TIRA + CAROUSEL)
   ========================================== */

.gallery-carousel-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.gallery-carousel-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Tira de fotos (Thumbnails) */
.carousel-thumbnails-strip {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) transparent;
}

.carousel-thumbnails-strip::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbnails-strip::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 2px;
}

.carousel-thumbnails-strip::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.thumb-btn {
    flex: 0 0 70px;
    height: 70px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.thumb-btn:hover {
    opacity: 0.8;
    border-color: var(--text-secondary);
}

.thumb-btn:hover img {
    filter: grayscale(30%);
}

.thumb-btn.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

.thumb-btn.active img {
    filter: grayscale(0%);
}

/* Visor grande abajo */
.carousel-large-display {
    position: relative;
    flex: 1;
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 0;
}

.carousel-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Flechas de navegación */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(19, 21, 24, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.carousel-nav-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-dim);
}

.prev-btn {
    left: 15px;
    padding-right: 2px;
}

.next-btn {
    right: 15px;
    padding-left: 2px;
}

.carousel-counter {
    margin-top: 15px;
    font-family: var(--font-titles);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
}

/* ==========================================
   TP4 VIDEO CARD Y LIGHTBOX DE VIDEO
   ========================================== */

.video-preview-card {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.video-preview-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.video-preview-card:hover .video-preview-bg {
    opacity: 0.6;
    transform: scale(1.02);
}

.video-preview-overlay {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none; /* Deja pasar clicks al card principal */
}

.play-icon-large {
    width: 70px;
    height: 70px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    background-color: rgba(255, 85, 51, 0.1);
    transition: var(--transition-smooth);
    padding-left: 5px;
}

.video-preview-card:hover .play-icon-large {
    background-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-dim);
}

.play-label {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: var(--transition-smooth);
}

.video-preview-card:hover .play-label {
    color: var(--accent);
    border-color: var(--accent);
}

/* Lightbox de Video (Modal) */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 5, 6, 0.96);
    backdrop-filter: blur(12px);
}

.video-modal-container {
    position: relative;
    width: 80vw;
    max-width: 1000px;
    height: auto;
    max-height: 80vh;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1010;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1020;
    transition: var(--transition-smooth);
}

.video-modal-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.video-modal-body {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación 16:9 */
    background-color: #000;
}

.video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

