* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: #e2e8f0;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(34, 211, 238, 0.16),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(59, 130, 246, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 90%,
            rgba(34, 197, 94, 0.10),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #020617,
            #071827,
            #0a2032
        );
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        );
    background-size: 25px 25px;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("logo-sena-negro-jpg-2022-removebg-preview.png") center 54% / min(42vw, 420px) auto no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.1;
}

.fondo {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.fondo1 {
    top: 100px;
    left: -150px;
    background: #06b6d4;
}

.fondo2 {
    right: -150px;
    bottom: 100px;
    background: #2563eb;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 15, 28, 0.70);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.contenedor-header {
    width: min(1200px, calc(100% - 40px));
    min-height: 85px;
    margin: auto;
    display: flex;
    align-items: center;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-contenedor img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(
        0 5px 15px rgba(34, 211, 238, 0.25)
    );
}

.titulo h1 {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    background: linear-gradient(
        90deg,
        #22d3ee,
        #dbeafe,
        #38bdf8
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titulo p {
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(186, 230, 253, 0.7);
}

.volver-contenedor {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.boton-volver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 12px;
    text-decoration: none;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.25);
    font-size: 0.95rem;
    font-weight: 800;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.boton-volver:hover {
    transform: translateY(-3px);
    color: white;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

main {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
    padding: 55px 0 70px;
}

.presentacion {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.etiqueta {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 50px;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.presentacion h2 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(
        90deg,
        #22d3ee,
        #dbeafe,
        #38bdf8,
        #22d3ee
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: movimientoTitulo 5s ease infinite;
}

.presentacion p {
    margin-top: 18px;
    color: rgba(203, 213, 225, 0.76);
    line-height: 1.7;
    font-size: 1rem;
}

.juego {
    padding: 25px;
    border-radius: 25px;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(125, 211, 252, 0.20);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
}

.titulo-juego {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 5px 20px;
}

.icono {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    font-weight: 900;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.09);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.titulo-juego h3 {
    font-size: 1.3rem;
    color: #f8fafc;
}

.titulo-juego p {
    margin-top: 4px;
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.82rem;
}

.iframe-contenedor {
    width: 100%;
    min-height: 690px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(125, 211, 252, 0.10);
    overflow: hidden;
}

.iframe-contenedor iframe {
    display: block;
    width: 795px;
    height: 690px;
    max-width: 100%;
    border: none;
    border-radius: 10px;
    background: white;
}

footer {
    padding: 30px 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.12);
    background: rgba(2, 15, 28, 0.55);
}

.footer-contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-contenido img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-contenido strong {
    color: #dbeafe;
}

.footer-contenido p {
    margin-top: 4px;
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.8rem;
}

.copyright {
    margin-top: 20px;
    text-align: center;
    color: rgba(148, 163, 184, 0.45);
    font-size: 0.75rem;
}

@keyframes movimientoTitulo {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 850px) {
    .contenedor-header {
        width: calc(100% - 25px);
    }

    .juego {
        padding: 15px;
    }

    .iframe-contenedor {
        padding: 5px;
        min-height: auto;
    }

    .iframe-contenedor iframe {
        width: 100%;
        height: 690px;
    }
}

@media (max-width: 600px) {
    .contenedor-header {
        min-height: 75px;
    }

    .logo-contenedor img {
        width: 48px;
        height: 48px;
    }

    .titulo h1 {
        font-size: 0.8rem;
    }

    .titulo p {
        display: none;
    }

    .volver-contenedor {
        margin-left: auto;
    }

    .boton-volver {
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    main {
        width: calc(100% - 25px);
        padding-top: 35px;
    }

    .presentacion h2 {
        font-size: 2rem;
    }

    .presentacion p {
        font-size: 0.9rem;
    }

    .titulo-juego h3 {
        font-size: 1rem;
    }

    .titulo-juego p {
        font-size: 0.72rem;
    }

    .icono {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .iframe-contenedor iframe {
        height: 690px;
    }
}

@media (max-width: 400px) {
    .presentacion h2 {
        font-size: 1.7rem;
    }

    .juego {
        padding: 10px;
    }

    .iframe-contenedor {
        padding: 0;
    }
}