@font-face {
    font-family: 'TS BOCK ONE';
    src: url('assets/TS Block Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #555555;
    --glow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
    --font-primary: 'TS BOCK ONE', sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    text-transform: uppercase;
    overflow-x: hidden;
}

/* Custom Brutalist Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: var(--text-color); 
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    opacity: 0.6;
}

/* Typography Utilities */
.glow-text {
    text-shadow: var(--glow);
}

.title-main {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -2px;
}

.text-muted {
    color: var(--text-muted);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 40vw;
    min-width: 300px;
    aspect-ratio: 16/9;
    border: 1px solid var(--text-muted);
    padding: 2px;
}

.loader-corner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--text-color);
}
.corner-tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.corner-tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.corner-br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.loader-video {
    width: 100%; height: 100%;
    background: #111;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.loader-info {
    position: absolute;
    bottom: 10px; left: 10px; right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- Global Navbar --- */
.nav-top {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.nav-top a {
    pointer-events: auto;
    font-size: 1rem;
    letter-spacing: 2px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 3rem;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 5px;
}

/* --- Index (Video Stack) --- */
.video-stack {
    padding: 15vh 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
}

.video-item {
    position: relative;
    width: 50vw;
    min-width: 320px;
    aspect-ratio: 16/9;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0.3;
    transform: scale(0.95);
    cursor: pointer;
}

.video-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.video-item video, .video-item .video-placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
    background: #111;
    border: 1px solid var(--text-muted);
}

/* Corners for active video */
.video-item .loader-corner { opacity: 0; transition: opacity 0.3s; }
.video-item.active .loader-corner { opacity: 1; }

/* Overlay info on index videos */
.video-item-info {
    position: absolute;
    bottom: -30px;
    left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
.video-item.active .video-item-info {
    opacity: 1;
}

/* Bottom Nav (Index) */
.nav-bottom {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* --- Project Detail Page --- */
.project-detail-hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-detail-video {
    width: 90vw;
    height: 80vh;
    position: relative;
    border: 1px solid var(--text-muted);
}

.project-detail-video video, .project-detail-video .video-placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
    background: #111;
}

.progress-bar-container {
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-muted);
}
.progress-bar-fill {
    height: 100%;
    background: var(--text-color);
    width: 0%;
    transition: width 0.1s linear;
}

.project-title-huge {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- Page Transition Overlay --- */
#transition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.transition-line {
    flex-grow: 1;
    background: var(--text-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Archive Page --- */
.archive-container {
    padding: 15vh 5vw;
}

.archive-list {
    list-style: none;
}

.archive-item {
    display: flex;
    border-bottom: 1px solid var(--text-muted);
    padding: 1.5rem 0;
    transition: padding 0.3s, background 0.3s;
}

.archive-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    background: rgba(255,255,255,0.05);
}

.archive-item a {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.archive-col {
    flex: 1;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.archive-col.title {
    flex: 2;
    font-size: 1.5rem;
}

/* --- Contact Page --- */
.contact-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.contact-link {
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 1;
    transition: opacity 0.3s, transform 0.3s;
}

.contact-link:hover {
    transform: scale(1.05);
    text-shadow: var(--glow);
}

.contact-hover-img {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    aspect-ratio: 4/5;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
    filter: grayscale(100%);
}

.marquee-container {
    position: absolute;
    bottom: 5vh;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    padding: 1rem 0;
}

.marquee-text {
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 5px;
    animation: marquee 15s linear infinite;
}

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

/* --- Servicios Page --- */
.servicios-container {
    padding: 15vh 5vw;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    border: 1px solid var(--text-muted);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: var(--text-color);
}

.service-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.service-price {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 3rem;
}

.service-features li {
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.service-features li::before {
    content: '-';
    margin-right: 10px;
    color: var(--text-color);
}

.service-btn {
    display: inline-block;
    padding: 1rem;
    border: 1px solid var(--text-color);
    text-align: center;
    background: transparent;
    color: var(--text-color);
    letter-spacing: 2px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.service-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- Artist Profile Page --- */
.profile-container {
    padding: 15vh 5vw;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-header {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.profile-img-placeholder {
    width: 300px;
    height: 400px;
    background: #111;
    border: 1px solid var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-description {
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #ccc;
    max-width: 800px;
    margin-top: 2rem;
    text-transform: none; /* Letras normales para párrafos */
    font-family: monospace; /* Fuente legible brutalista */
}

.profile-link-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-color);
    text-align: center;
    color: var(--text-color);
    letter-spacing: 2px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    margin-top: 2rem;
    align-self: flex-start;
}

.profile-link-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.profile-projects {
    margin-top: 5rem;
    border-top: 1px solid var(--text-muted);
    padding-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navegación */
    .nav-top {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
        background: rgba(0,0,0,0.85); /* Fondo semitransparente para que no se pierda al hacer scroll */
        backdrop-filter: blur(5px);
    }
    .nav-left, .nav-right { 
        gap: 1rem; 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    .nav-top a { font-size: 0.8rem; }
    
    .nav-bottom {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 0.5rem;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(5px);
        font-size: 0.7rem;
    }

    /* Index Vídeos */
    .video-item { width: 90vw; }
    .video-item-info { 
        font-size: 0.7rem; 
        bottom: -40px; 
        flex-direction: column; 
        align-items: center; 
        gap: 5px; 
    }

    /* Páginas de Proyecto */
    .project-detail-hero { padding-top: 15vh; }
    .project-detail-video { 
        width: 100vw; 
        height: 40vh; 
        border-left: none; 
        border-right: none; 
    }
    .project-title-huge {
        flex-direction: column;
        align-items: flex-start;
        bottom: -70px;
        left: 5vw;
    }
    .project-title-huge span:last-child {
        font-size: 1.2rem !important; /* Sobrescribe el estilo en línea */
        letter-spacing: 2px !important;
    }

    /* Archivo */
    .archive-container { padding-top: 20vh; }
    .archive-col:not(.title) { display: none; }
    .archive-col.title { font-size: 1.2rem; }
    .archive-item { padding: 1rem 0; }
    .archive-item:hover { padding-left: 0; padding-right: 0; } /* Desactiva el salto en móvil */

    /* Contacto */
    .contact-link { font-size: clamp(2.5rem, 10vw, 4rem); }
    .marquee-text { font-size: 1.2rem; }

    /* Servicios */
    .servicios-container { padding-top: 20vh; }
    .servicios-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
        margin-top: 2rem; 
    }
    .service-card { padding: 1.5rem; }
    .service-price { font-size: 2rem; margin-bottom: 1rem; }
    .service-features { margin-bottom: 2rem; }

    /* Artistas */
    .artists-container { padding-top: 20vh; }
    .artist-name { font-size: clamp(2rem, 8vw, 3rem); }
    .artist-link { font-size: 1rem; }
    .artist-row { flex-direction: column; gap: 0.5rem; }
    .artist-row:hover { padding-left: 0; }

    /* Perfiles Individuales */
    .profile-header { flex-direction: column; align-items: center; }
    .profile-img-placeholder { width: 100%; height: auto; aspect-ratio: 3/4; }
    .profile-info { align-items: center; text-align: center; }
    .profile-link-btn { align-self: center; }
}
