@font-face {
    font-family: 'Druk';
    src: url('tipo/Druk-Heavy-Trial.otf');
    font-display: swap;
}

@font-face {
    font-family: 'Cocos-Bold';
    src: url('tipo/Cocogoose-Pro-Bold-trial.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Cocos-Regular';
    src: url('tipo/Cocogoose-Pro-Regular-trial.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Cocos-Light';
    src: url('tipo/Cocogoose-Pro-Light-Trial.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('tipo/Roboto-Medium.ttf');
    font-display: swap;
    
}

/* =========================================
   GENERALES
========================================= */

::selection {
    background-color: #2e96ff;
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-image: url('/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: #2e96ff;
}

/* =========================================
   PÁGINA PRINCIPAL (INICIO)
========================================= */

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-big {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.logo-big img {
    width: 30%;
}

.video-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.3s both;
    padding-bottom: 3rem;
}

video {
    display: block;
    margin: 0 auto;
    width: 50%;
    border-radius: 1rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.4s ease;
}

.video-in video:hover {
    box-shadow: 0 0.5rem 2.5rem rgba(46, 150, 255, 0.3);
}

.video-label {
    font-family: 'Cocos-Bold', sans-serif;
    font-size: 1.5rem;
    text-align: center;
}

.video-label p {
    color: #2e96ff;
    margin: 0;
}

/* =========================================
   HEADER
========================================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.25rem;
    color: #fff;
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    background-color: rgba(31, 31, 31, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-shadow: 0.625rem 0.625rem 3.125rem #000000;
    border-radius: 1rem;
    font-family: sans-serif;
    line-height: 1;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo img {
    width: 15rem;
    height: auto;
    display: block;
}

/* Nav links con underline animado */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Druk', sans-serif;
    letter-spacing: 0.3rem;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -0.15rem;
    left: 0;
    width: 100%;
    height: 0.12rem;
    background-color: #2e96ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav-menu ul li a:hover {
    color: #2e96ff;
}

.nav-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   GRID DE VIDEOS (PORTFOLIO)
========================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.video-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.35s ease;
}

/* Overlay de gradiente al hacer hover */
.video-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 0.75rem;
    pointer-events: none;
}

.video-item:hover {
    transform: scale(1.03);
}

.video-item:hover::after {
    opacity: 1;
}

.video-item:hover .thumbnail {
    transform: scale(1.05);
}

.video-item:hover .video-title {
    transform: translate(-50%, -62%);
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.video-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.625rem;
    text-align: center;
    width: 80%;
    font-family: 'Cocos-Bold', sans-serif;
    letter-spacing: 0.1rem;
    font-size: 1.8rem;
    text-shadow: 0.125rem 0.125rem 1.3125rem rgba(0, 0, 0, 1);
    z-index: 1;
    transition: transform 0.35s ease;
}

.video-artist {
    display: block;
    font-family: 'Cocos-Regular', sans-serif;
    letter-spacing: 0.1rem;
    font-size: 1.3rem;
    margin-top: 0.3rem;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 1.25rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    pointer-events: none;
}

.footer-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}

.footer-logo.left {
    left: 1.25rem;
}

.footer-logo.right {
    right: 1.25rem;
}

.footer-logo img {
    width: 2.5rem;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* =========================================
   HAMBURGUESA
========================================= */

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.35s ease;
    line-height: 1;
}

.hamburger:hover {
    color: #2e96ff;
}

.hamburger.active {
    transform: rotate(90deg);
    color: #2e96ff;
}

/* =========================================
   TRANSICIÓN ENTRE PÁGINAS
========================================= */

.page-overlay {
    position: fixed;
    inset: 0;
    background: #181818;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.18s ease;
    pointer-events: all;
}

.page-overlay.loaded {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   RESPONSIVE — TABLETS (max 768px)
========================================= */

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE — MÓVIL (max 480px)
========================================= */

@media (max-width: 480px) {

    html {
        font-size: 9px;
    }

    .nav-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
        padding: 0;
        margin-top: 0;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding-top: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-menu ul li a {
        font-size: 1.8rem;
    }

    #bg-video {
        margin: 0;
    }

    .header {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    video {
        width: 95%;
        border-radius: 1rem;
        margin-bottom: 3rem;
    }

    .logo-big img {
        width: 80%;
        margin-top: 10rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

}
