@font-face {
    font-family: 'Mifuente';
    src: url('../mifuente.otf');
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    background-color: #0a0a0f;
    background-image:
    linear-gradient(rgba(123, 47, 247, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 247, 0.15) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 30%, rgba(123, 47, 247, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(74, 0, 128, 0.4) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    min-height: 100vh;
    margin: 0;
    font-family: 'Mifuente', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
nav {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(123, 47, 247, 0.2);
    box-shadow: 0 4px 20px rgba(123, 47, 247, 0.2);
    backdrop-filter: blur(8px);
    padding: 2px 12px;
    display: flex;
    align-items: center;
    position: relative;
    animation: entradaNav 0.9s ease forwards;
}
.hamburger {
    display: none;
}
.logo {
    width: 100px;
    height: 75px;
    border-radius: 9%;
    object-fit: contain;
}
.links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 60px;
    display: flex;
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 29px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}
nav a:hover {
    background: linear-gradient(135deg, #5f09e8, #a07800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h1 {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, 2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
}
h3 {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
}
p {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
}
ol, li {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
}
details summary {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, 2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
details p {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
}
.tarjeta {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 40px 60px;
    margin: 40px auto;
    max-width: 1000px;
    width: 85%;
    box-sizing: border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: visible;
    animation: entradaTarjeta 0.7s ease forwards;
}
.img-mundo {
    position: absolute;
    left: -58px;
    top: 44%;
    transform: translateY(-50%);
    width: 225px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    animation: flotarMundo 3s ease-in-out infinite;
}
.quetzal-wrapper {
    position: absolute;
    top: -70px;
    right: -96px;
    left: auto;
    width: 250px;
    pointer-events: none;
    z-index: 10;
    animation: quetzalVolar 3.5s ease-in-out infinite;
    transform-origin: center bottom;
}
.quetzal-wrapper-faq {
    position: absolute;
    top: -70px;
    left: -96px;
    width: 250px;
    pointer-events: none;
    z-index: 10;
    animation: quetzalCruzar 25s ease-in-out infinite;
}
.quetzal-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(123, 47, 247, 0.5));
}
.quetzal-wrapper-faq img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(123, 47, 247, 0.5));
}
@keyframes quetzalCruzar {
    0%   { transform: translateX(0px) translateY(0px) scaleX(-1); }
    22%  { transform: translateX(450px) translateY(-30px) scaleX(-1); }
    45%  { transform: translateX(900px) translateY(0px) scaleX(-1); }
    46%  { transform: translateX(900px) translateY(0px) scaleX(1); }
    68%  { transform: translateX(450px) translateY(-30px) scaleX(1); }
    90%  { transform: translateX(0px) translateY(0px) scaleX(1); }
    91%  { transform: translateX(0px) translateY(0px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}
.tarjeta-contenido {
    display: flex;
    align-items: center;
    gap: 30px;
}
.texto {
    margin-left: 100px;
    color: white;
}
.seccion {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    min-height: calc(100vh - 88px);
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
    flex: 1;
}
#Inicio {
    flex-direction: column;
    align-items: center;
}
.tarjeta-trailers {
    margin-top: 8px;
    position: relative;
    z-index: 2;
}
.nube {
    position: fixed;
    filter: blur(8px);
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(200, 150, 255, 0.35) 0%, rgba(123, 47, 247, 0.25) 70%);
}
.nube::before, .nube::after {
    content: '';
    position: absolute;
    background-color: inherit;
}
.cloud-container {
    position: absolute;
    left: 0;
    bottom: -40px;
    width: 100%;
}
footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
footer a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}
footer a:hover {
    background: linear-gradient(135deg, #5f09e8, #a07800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
footer p {
    font-size: 14px;
    opacity: 0.5;
    filter: none;
    text-shadow: none;
    margin: 0;
}
.footer-links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 6px 0;
}
.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.trailer-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trailer-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.25);
}
.trailer-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.trailer-link span {
    display: block;
    padding: 10px 12px;
    color: white;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black;
}
@keyframes entradaTarjeta {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.texto h1 {
    animation: entradaTarjeta 0.6s ease 0.2s both;
}
.texto p, .texto ol {
    animation: entradaTarjeta 0.6s ease 0.4s both;
}
@keyframes entradaNav {
    0%   { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes flotarMundo {
    0%   { transform: translateY(-50%) translateX(0); }
    50%  { transform: translateY(calc(-50% - 15px)) translateX(0); }
    100% { transform: translateY(-50%) translateX(0); }
}
@keyframes quetzalVolar {
    0%   { transform: translateY(0px) rotate(-3deg); }
    25%  { transform: translateY(-10px) rotate(0deg); }
    50%  { transform: translateY(-18px) rotate(3deg); }
    75%  { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(-3deg); }
}
@keyframes flotarNeblina {
    0%   { transform: translate(-5%, 0) skewX(0deg); }
    100% { transform: translate(5%, 0) skewX(2deg); }
}
@keyframes flotarNube {
    0%   { transform: translate(-10%, 0); }
    100% { transform: translate(10%, 0); }
}
@keyframes flotarMundoMovil {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.nube-1 {
    width: 450px;
    height: 180px;
    background: radial-gradient(circle, rgba(210, 160, 255, 0.4) 0%, rgba(123, 47, 247, 0.25) 70%);
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    bottom: auto;
    top: 84%;
    left: -100px;
    animation: flotarNeblina 25s infinite alternate ease-in-out;
}
.nube-1::before {
    width: 60%; height: 100%; top: -30%; left: 15%;
    border-radius: 50% 50% 30% 70%;
    background: inherit;
}
.nube-1::after {
    width: 50%; height: 90%; top: -20%; right: 10%;
    border-radius: 50% 70% 50% 50%;
    background: inherit;
}
.nube-2 {
    width: 350px;
    height: 140px;
    background: radial-gradient(circle, rgba(180, 120, 220, 0.5) 0%, rgba(74, 0, 128, 0.3) 70%);
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    bottom: auto;
    top: 94%;
    right: -70px;
    animation: flotarNeblina 18s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}
.nube-2::before {
    width: 70%; height: 100%; top: -40%; left: 10%;
    border-radius: 60% 40% 30% 70%;
    background: inherit;
}
.nube-2::after {
    width: 50%; height: 90%; top: -30%; right: 15%;
    border-radius: 50% 70% 30% 70%;
    background: inherit;
}
.nube-3 {
    width: 250px;
    height: 100px;
    background: radial-gradient(circle, rgba(190, 140, 240, 0.45) 0%, rgba(123, 47, 247, 0.3) 70%);
    border-radius: 50% 70% 50% 70% / 70% 50% 70% 50%;
    bottom: auto;
    top: 94%;
    left: 20%;
    animation: flotarNeblina 12s infinite alternate ease-in-out;
}
.nube-3::before {
    width: 65%; height: 100%; top: -35%; left: 10%;
    border-radius: 70% 30% 30% 70%;
    background: inherit;
}
.nube-3::after {
    width: 45%; height: 85%; top: -25%; right: 10%;
    border-radius: 50% 70% 30% 70%;
    background: inherit;
}
.panel-musica {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    width: min(280px, calc(100vw - 24px));
    background: rgba(17, 10, 34, 0.7);
    border: 1px solid rgba(123, 47, 247, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.disco {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        radial-gradient(circle at center, #0d0d0d 0 9px, #a07800 9px 12px, #181818 12px 100%),
        repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 2px, rgba(0, 0, 0, 0.15) 2px 4px);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(123, 47, 247, 0.3);
}
.disco.girando {
    animation: girarDisco 2.8s linear infinite;
}
@keyframes girarDisco {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.musica-info {
    min-width: 0;
    flex: 1;
}
.musica-info h3 {
    margin: 0 0 2px;
    color: white;
    font-size: 20px;
    line-height: 1;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black;
}
.musica-info p {
    margin: 0;
    line-height: 1.2;
    filter: none;
}
.musica-autor {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    text-shadow: 1px 1px 0 black;
}
.estado-musica {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-shadow: 1px 1px 0 black;
}
.btn-musica {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(123, 47, 247, 0.25);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: grid;
    place-items: center;
    transition: transform 0.15s ease, background 0.2s ease;
}
.btn-musica:hover {
    transform: scale(1.05);
    background: rgba(123, 47, 247, 0.45);
}
.btn-musica:active {
    transform: scale(0.98);
}
.rol-titulo {
    color: white;
    text-shadow: 2px 2px 0px black, -2px -2px 0px black, 2px -2px 0px black, -2px 2px 0px black, 0 0 6px rgba(255, 255, 255, 0.5);
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(123, 47, 247, 0.4);
    padding-bottom: 10px;
    text-align: center;
}
.creditos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: center;
}
.credito-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.credito-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(123, 47, 247, 0.25);
}
.credito-card h3 {
    margin: 0 0 2px;
    font-size: 15px;
}
.credito-card h3:last-child {
    margin: 0;
}
.credito-rol {
    font-size: 11px;
    opacity: 0.7;
    margin: 0 0 8px;
    text-shadow: none !important;
    filter: none !important;
    color: rgba(255, 255, 255, 0.75) !important;
}
.credito-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.credito-links a {
    color: white;
    font-size: 16px;
}

/* ── Media queries ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nube {
        display: none;
    }
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 16px;
        position: relative;
        z-index: 1000;
    }
    .hamburger {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    }
    ol {
        padding-left: 20px;
        text-align: left;
    }
    li {
        margin-bottom: 10px;
    }
    .quetzal-wrapper {
        position: absolute;
        width: 170px;
        top: -26px;
        right: -70px;
    }
    .quetzal-wrapper-faq {
        position: absolute;
        width: 150px;
        top: -26px;
        left: -70px;
        animation: quetzalCruzarMovil 25s ease-in-out infinite;
    }
    @keyframes quetzalCruzarMovil {
        0%   { transform: translateX(0px) translateY(0px) scaleX(-1); }
        25%  { transform: translateX(175px) translateY(-20px) scaleX(-1); }
        49%  { transform: translateX(350px) translateY(0px) scaleX(-1); }
        50%  { transform: translateX(350px) translateY(0px) scaleX(1); }
        75%  { transform: translateX(175px) translateY(-20px) scaleX(1); }
        99%  { transform: translateX(0px) translateY(0px) scaleX(1); }
        100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
    }
    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        background: linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(10, 8, 20, 0.72) 30%,
            rgba(20, 8, 40, 0.68) 70%,
            rgba(74, 0, 128, 0.22) 100%
        );
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(123, 47, 247, 0.2);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        z-index: 100;
        box-sizing: border-box;
    }
    .links.abierto {
        display: flex;
    }
    nav a {
        font-size: 22px;
    }
    .logo {
        width: 84px;
        height: 58px;
    }
    .img-mundo {
        position: static;
        transform: none;
        width: min(78vw, 300px);
        margin: 0 0 10px;
        display: block;
        animation: flotarMundoMovil 3s ease-in-out infinite;
    }
    .tarjeta-contenido {
        flex-direction: column;
        align-items: center;
    }
    .texto {
        margin-left: 0;
        text-align: center;
    }
    .seccion {
        padding: 34px 16px;
    }
    #Novedades,
    #FAQ,
    #Creditos {
        padding-bottom: 14px;
    }
    #Novedades,
    #FAQ {
        min-height: calc(100vh - 140px);
    }
    .tarjeta {
        padding: 20px;
        width: 95%;
        margin-top: 50px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    #Novedades .tarjeta,
    #FAQ .tarjeta,
    #Creditos .tarjeta {
        margin-top: 14px;
    }
    .rol-titulo {
        font-size: 21px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .creditos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .tarjeta-trailers {
        margin-top: 18px;
    }
    .nube-izq, .nube-der {
        display: none;
    }
    .footer-links {
        gap: 20px;
    }
    .panel-musica {
        position: fixed;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 12px;
        z-index: 20;
        margin: 0;
        width: min(250px, calc(100vw - 24px));
        padding: 10px;
        gap: 10px;
    }
    footer {
        margin-top: 10px;
        padding-top: 12px;
    }
    .disco {
        width: 48px;
        height: 48px;
    }
    .musica-info h3 {
        font-size: 18px;
    }
    .estado-musica {
        font-size: 13px;
    }
}
