/* --- Variables --- */
:root {
    --color-primary: #00e1ff; /* Azul neón más brillante */
    --color-secondary: #7b00ff; /* Púrpura neón */
    --color-accent: #ff3670; /* Rosa futurista */
    --color-dark: #0a0a12; /* Fondo más oscuro */
    --color-text: #ffffff;
    --color-text-secondary: #a7a7a7;
    --font-primary: 'Roboto', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    --color-gradient-1: #00e1ff; /* Para gradientes */
    --color-gradient-2: #7b00ff; /* Para gradientes */
    --color-gradient-3: #ff3670; /* Para gradientes */
}

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

body {
    overflow-x: hidden;
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
    margin: 0;
}

/* --- Video Background --- */
#background-video {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) contrast(1.3) saturate(1.2);
    will-change: filter; /* Optimización de renderizado */
}

/* En dispositivos móviles quitamos la animación compleja */
@media (max-width: 768px) {
    #background-video {
        animation: none;
    }
}

@media (min-width: 769px) {
    #background-video {
        animation: videoGlow 15s infinite alternate;
    }
}

@keyframes videoGlow {
    0% { filter: brightness(0.55) contrast(1.3) saturate(1.1); }
    50% { filter: brightness(0.65) contrast(1.4) saturate(1.3); }
    100% { filter: brightness(0.6) contrast(1.3) saturate(1.2); }
}

/* --- Tech Overlay --- */
.tech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(18, 18, 18, 0.2) 5px, rgba(18, 18, 18, 0.2) 10px);
    z-index: -1;
    backdrop-filter: blur(1px);
}

/* En dispositivos móviles quitamos animaciones y efectos pesados */
@media (max-width: 768px) {
    .tech-overlay {
        animation: none;
        backdrop-filter: none; /* Quitar blur en móviles */
    }
}

@media (min-width: 769px) {
    .tech-overlay {
        animation: overlayPulse 10s infinite alternate;
    }
}

@keyframes overlayPulse {
    0% { background-color: rgba(0,0,0,0.4); }
    50% { background-color: rgba(0,0,0,0.6); }
    100% { background-color: rgba(0,0,0,0.5); }
}

/* --- Layout y Contenedor Principal --- */
#container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

header.header-scrolled {
    background-color: rgba(0,0,0,0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Clase para ocultar el menú al hacer scroll hacia abajo */
header.nav-hidden {
    transform: translateY(-100%);
}

/* Clase para ocultar el menú al hacer scroll hacia abajo en móviles */
@media (max-width: 768px) {
    header.nav-hidden {
        transform: translateY(-100%);
    }
}

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

.logo-text {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-primary);
}

nav a:hover:after {
    width: 100%;
}

/* --- Secciones --- */
.section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Tech Cards --- */
.tech-card {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(117, 193, 246, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(117, 193, 246, 0.3);
}

.tech-line {
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    margin: 1rem 0;
    width: 100%;
}

/* --- Tipografía --- */
h1 {
    font-family: var(--font-tech);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.tech-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.accent {
    color: var(--color-primary); /* Volviendo al azul original usando la variable CSS */
}

.highlight {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* --- Tech Grid --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    background-color: rgba(18, 18, 18, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* --- Gatos --- */
.cat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cat-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cat-image-container:hover {
    transform: scale(1.05);
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-image-container:hover .cat-overlay {
    opacity: 1;
}

.cat-image-container:hover .cat-image {
    filter: brightness(0.8);
}

/* --- Proyectos --- */
.project {
    background-color: rgba(18, 18, 18, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-badge {
    background-color: rgba(117, 193, 246, 0.2);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), #3498db);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.tech-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(117, 193, 246, 0.4);
}

.tech-button i {
    margin-right: 0.5rem;
}

/* --- Contacto --- */
.social-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(18, 18, 18, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary);
}

.social-link i {
    font-size: 1.25rem;
}

.contact-form {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(117, 193, 246, 0.2);
    border-radius: 5px;
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Footer --- */
footer {
    background-color: rgba(0,0,0,0.9);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(117, 193, 246, 0.2);
}

.footer-quote {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

/* --- Gatos Flotantes --- */
.floating-cat {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: -1;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(117, 193, 246, 0.5));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-cat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-cat:hover {
    opacity: 0.9;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #container {
        padding: 100px 15px 40px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .tech-grid, .cat-gallery {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-badge {
        margin-top: 0.5rem;
    }
}

/* --- Animaciones --- */
@keyframes glowing {
    0% { box-shadow: 0 0 5px rgba(117, 193, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(117, 193, 246, 0.8); }
    100% { box-shadow: 0 0 5px rgba(117, 193, 246, 0.5); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* --- Efectos Tecnológicos --- */
.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(117, 193, 246, 0) 0%,
        rgba(117, 193, 246, 0) 40%,
        rgba(117, 193, 246, 0.3) 50%,
        rgba(117, 193, 246, 0) 60%,
        rgba(117, 193, 246, 0) 100%
    );
    transform: rotate(45deg);
    z-index: -1;
    transition: transform 0.6s ease;
}

.tech-card:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

/* --- Efectos Tecnológicos Adicionales --- */
.tech-grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.tech-grid-line {
    position: absolute;
    background-color: var(--color-primary);
}

.tech-grid-line-horizontal {
    height: 1px;
    width: 100%;
    transform-origin: left;
}

.tech-grid-line-vertical {
    width: 1px;
    height: 100%;
    transform-origin: top;
}

/* Animaciones solo en desktop */
@media (min-width: 769px) {
    .tech-grid-line-horizontal {
        animation: techLineGlowH 4s infinite alternate;
    }
    .tech-grid-line-vertical {
        animation: techLineGlowV 4s infinite alternate;
    }
}

.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    will-change: transform; /* Optimización para animaciones */
}

.tech-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    animation: particleFade 3s infinite;
    will-change: opacity, transform; /* Optimización para animaciones */
}

.tech-card {
    position: relative;
    overflow: hidden;
}

/* Animación de brillo solo en desktop */
@media (min-width: 769px) {
    .tech-card {
        animation: techCardGlow 5s infinite alternate;
    }
}

@media (max-width: 768px) {
    .tech-card {
        animation: none;
    }
    /* Reducir opacidad de efectos en móvil para mejorar rendimiento */
    .tech-grid-lines {
        opacity: 0.05;
    }
    .tech-particle {
        opacity: 0.4;
    }
}

@keyframes techLineGlowH {
    0% { transform: scaleX(0); opacity: 0.5; }
    100% { transform: scaleX(1); opacity: 0.2; }
}

@keyframes techLineGlowV {
    0% { transform: scaleY(0); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 0.2; }
}

@keyframes particleFade {
    0% { opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}

@keyframes techCardGlow {
    0% { box-shadow: 0 5px 15px rgba(117, 193, 246, 0.2); }
    50% { box-shadow: 0 5px 25px rgba(117, 193, 246, 0.4); }
    100% { box-shadow: 0 5px 15px rgba(117, 193, 246, 0.2); }
}

/* Efecto de escaneo - solo en desktop */
.tech-scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(117, 193, 246, 0.5), 
        var(--color-primary),
        rgba(117, 193, 246, 0.5),  
        transparent);
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    animation: techScan 8s linear infinite;
    will-change: top; /* Optimización para animaciones */
}

/* Desactivar animación de escaneo en móvil */
@media (max-width: 768px) {
    .tech-scan-line {
        display: none;
    }
}

@keyframes techScan {
    0% { top: -5px; }
    100% { top: 100vh; }
}

/* Efecto de código digital */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.digital-drop {
    position: absolute;
    color: var(--color-primary);
    font-family: monospace;
    font-size: 14px;
    opacity: 0;
    will-change: transform, opacity; /* Optimización para animaciones */
    animation: digitalDrop 4s linear infinite;
}

/* Reducir tamaño y opacidad en móviles */
@media (max-width: 768px) {
    .digital-drop {
        font-size: 10px;
        opacity: 0.3;
        animation-duration: 6s; /* Animación más lenta en móviles */
    }
}

@keyframes digitalDrop {
    0% { 
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Estilos para la sección de música */
.music-container {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
    user-select: none; /* Prevenir selección de texto */
}

@media (min-width: 768px) {
    .music-container {
        flex-direction: row;
        height: 400px;
    }
}

.music-list {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid var(--color-primary);
    padding: 15px;
    max-height: 250px;
}

@media (min-width: 768px) {
    .music-list {
        max-height: none;
    }
}

.music-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.music-item:hover, .music-item.active {
    background: rgba(0, 200, 255, 0.2);
    transform: translateX(5px);
}

.music-item-info {
    flex: 1;
    overflow: hidden;
}

.music-item-title {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-item-duration {
    display: block;
    font-size: 12px;
    color: var(--color-accent);
}

.music-item-play {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-item-play:hover {
    background: rgba(0, 200, 255, 0.3);
    color: var(--color-text);
}

.music-player {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-info {
    margin-bottom: 20px;
}

.now-playing {
    margin-bottom: 15px;
}

.now-playing-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-duration {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.player-progress {
    margin-top: 10px;
    cursor: pointer;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
}

.progress-current {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.control-button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-button:hover {
    background: rgba(0, 200, 255, 0.2);
    transform: scale(1.1);
}

#play-button {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.volume-control i {
    color: var(--color-primary);
    margin-right: 8px;
    font-size: 16px;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
}

.loading-message, .no-content-message, .error-message {
    text-align: center;
    padding: 30px;
    color: var(--color-text-secondary);
}

.error-message {
    color: #ff6b6b;
}

/* Estilos para la sección de videos inéditos */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Fondo para la sección de videos inéditos */
#ineditos .tech-card {
    position: relative;
    overflow: hidden;
}

#ineditos .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                url('../images/dark-city-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.video-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    user-select: none;  /* Prevenir selección de texto */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.3);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio por defecto */
    background-color: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    pointer-events: none;  /* Prevenir eventos de mouse en la imagen */
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;  /* Prevenir eventos de mouse en el botón de play */
}

.video-card:hover .play-button {
    opacity: 1;
}

.video-info {
    padding: 15px;
    pointer-events: none;  /* Prevenir eventos de mouse en la info */
}

.video-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info span {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Modal de video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.4);
    transition: all 0.3s ease;
}

/* Modo de video vertical para reels/shorts */
.vertical-video-mode {
    max-width: 500px;
}

.vertical-video-mode .video-container {
    padding-top: 177.78% !important; /* Relación de aspecto 9:16 para videos verticales */
}

.close-video-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    z-index: 10;
}

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

.video-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 30px;
}

.video-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio para videos horizontales por defecto */
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Estilos para deshabilitar controles innecesarios */
.video-container video::-webkit-media-controls-download-button {
    display: none;
}

.video-container video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.video-container video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

.video-description {
    margin-top: 15px;
}

.video-description p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.video-date {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Estilos para videos verticales (formato reel/short) */
.vertical-video {
    width: 100%;
    max-width: 400px !important;
    margin: 0 auto;
    padding-top: 177.78% !important; /* Relación de aspecto 9:16 para videos verticales */
}

/* Añadir protección adicional para contenidos */
.music-player audio, .video-container video {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Estilos para desactivar el menú contextual en videos y audio */
.music-player, .video-container {
    position: relative;
}

.music-player::after, .video-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Destacar los archivos específicos en la lista */
.music-item-info .music-item-title.error404-highlight {
    color: var(--color-accent);
    font-weight: bold;
}

/* Estilos para el modal en dispositivos móviles */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .vertical-video {
        max-width: 90% !important;
    }
}

/* === NUEVOS ESTILOS PARA EL SITIO DE ANIME === */

/* --- Sección de Inicio Anime --- */
.anime-tagline {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.anime-intro-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .anime-intro-container {
        flex-direction: row;
        align-items: center;
    }
    
    .anime-intro-text {
        flex: 1;
        padding-right: 2rem;
    }
    
    .anime-poster {
        flex: 1;
    }
}

.anime-poster {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anime-poster:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(123, 0, 255, 0.5);
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 54, 112, 0.5);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* --- Sección Sobre el Anime --- */
.anime-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.anime-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    background-color: rgba(10, 10, 18, 0.6);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.detail-item h4 {
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-family: var(--font-tech);
}

.detail-item p {
    margin: 0;
    color: var(--color-text);
}

.anime-synopsis {
    background-color: rgba(10, 10, 18, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.anime-synopsis h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.anime-synopsis p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.anime-synopsis p:last-child {
    margin-bottom: 0;
}

/* --- Sección de Personajes --- */
.character-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.character-card {
    background-color: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.3);
}

.character-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.character-info {
    padding: 1.5rem;
}

.character-info h3 {
    margin: 0 0 0.3rem 0;
    color: var(--color-primary);
}

.character-role {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.character-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* --- Sección del Mundo --- */
.world-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .world-container {
        flex-direction: row;
    }
    
    .world-description {
        flex: 1;
        padding-right: 2rem;
    }
    
    .world-gallery {
        flex: 1;
    }
}

.world-description h3 {
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem 0;
}

.world-description h3:first-child {
    margin-top: 0;
}

.world-description p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.world-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.world-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.world-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.world-image-container:hover .world-image {
    transform: scale(1.1);
}

.world-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--color-text);
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

/* --- Sección de Financiación --- */
.crowdfunding-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.crowdfunding-intro p {
    font-size: 1.2rem;
    color: var(--color-text);
}

.funding-progress {
    background-color: rgba(10, 10, 18, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.funding-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
    opacity: 0.8;
    z-index: 1;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
    position: relative;
    padding: 1rem;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
    font-family: var(--font-tech);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
}

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

.progress-bar-container {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.funding-progress-bar {
    height: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.funding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 5px;
    width: 0.05%; /* Se actualiza dinámicamente con JavaScript */
    transition: width 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.funding-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: progressShine 2s infinite;
}

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

.progress-percentage {
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.rewards-container {
    margin-top: 2rem;
}

.rewards-container h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.reward-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.reward-card {
    background-color: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.2);
}

.featured-reward {
    border: 2px solid var(--color-accent);
    box-shadow: 0 5px 20px rgba(255, 54, 112, 0.2);
}

.reward-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
}

.reward-header {
    margin-bottom: 1.5rem;
}

.reward-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.reward-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-tech);
}

.reward-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.reward-features li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

.reward-features li:last-child {
    border-bottom: none;
}

.reward-button {
    display: block;
    background: rgba(0, 225, 255, 0.1);
    color: var(--color-primary);
    padding: 0.8rem;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
}

.reward-button:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.premium-rewards {
    margin-bottom: 3rem;
}

.premium-reward {
    background-color: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-secondary);
}

.premium-reward:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 0, 255, 0.2);
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.premium-header h4 {
    color: var(--color-secondary);
    margin: 0;
    font-size: 1.2rem;
}

.premium-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.premium-button {
    background: rgba(123, 0, 255, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.premium-button:hover {
    background: var(--color-secondary);
    color: white;
}

.custom-pledge {
    text-align: center;
    padding: 2rem;
    background-color: rgba(10, 10, 18, 0.6);
    border-radius: 10px;
}

.custom-pledge h4 {
    color: var(--color-accent);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.custom-pledge p {
    margin-bottom: 1.5rem;
}

/* --- Sección de Avances --- */
.development-updates {
    margin: 3rem 0;
}

.development-updates h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.update-timeline {
    position: relative;
}

.update-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--color-primary), 
        var(--color-secondary), 
        var(--color-accent));
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-dark);
    border: 3px solid var(--color-primary);
    z-index: 2;
}

.timeline-date {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-tech);
}

.timeline-content {
    background-color: rgba(10, 10, 18, 0.6);
    padding: 1rem;
    border-radius: 5px;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.roadmap {
    margin-top: 3rem;
}

.roadmap h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.roadmap-item {
    background-color: rgba(10, 10, 18, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-5px);
}

.roadmap-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.roadmap-milestone h4 {
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
}

.roadmap-milestone p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* --- MEJORAS RESPONSIVAS PARA LAS NUEVAS SECCIONES --- */
@media (max-width: 768px) {
    .anime-tagline {
        font-size: 1.2rem;
    }
    
    .reward-tiers {
        grid-template-columns: 1fr;
    }
    
    .world-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .progress-stats {
        flex-direction: column;
    }
    
    .stat {
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item:before {
        width: 14px;
        height: 14px;
        left: -6px;
    }
}

/* Estilos para el llamado a la acción de música */
.music-cta {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--color-primary);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.music-cta a {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.music-cta p {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-top: 0.5rem;
}

/* --- Banner de Desarrollo --- */
.development-banner {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    border: 2px dashed var(--color-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.development-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 200, 255, 0.1),
        rgba(0, 200, 255, 0.1) 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 20px
    );
    z-index: 0;
    animation: developmentStripes 20s linear infinite;
}

@keyframes developmentStripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 50px 50px;
    }
}

.development-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-right: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
    position: relative;
    z-index: 1;
    animation: developmentIconPulse 2s infinite alternate;
}

@keyframes developmentIconPulse {
    from {
        box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
    }
    to {
        box-shadow: 0 0 25px rgba(0, 200, 255, 0.8);
    }
}

.development-message {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.development-message h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.development-message p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* Estilo para dispositivos móviles */
@media (max-width: 768px) {
    .development-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .development-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .development-message h3 {
        font-size: 1.2rem;
    }
}

/* Estilo para las tarjetas de video en desarrollo */
.video-card {
    position: relative;
}

#video-gallery .video-card::before {
    content: "En desarrollo";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-primary);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 2;
    font-weight: bold;
    border: 1px solid var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Estilos para el mensaje de "En desarrollo" en modales */
.development-notice {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--color-primary);
    margin: 2rem 0;
}

.development-icon-small {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.development-notice p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.development-notice p:last-child {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}
