@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #0a0f1a;
}

body {
    background: linear-gradient(270deg, #0a0f1a, #001022, #031f33, #0a0f1a);
    background-size: 800% 800%;
        background-attachment: fixed;

    animation: gradientShift 20s ease infinite;
    color: #e0f7ff;
    line-height: 1.8;
    position: relative;
    min-height: 100vh;
    will-change: background-position;
    transform: translate3d(0, 0, 0); /* nueva capa */
}

/* stacking context para contenido */
body > * {
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
     position: absolute; /* en vez de fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(15, 219, 255, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 70% 80%, rgba(15, 219, 255, 0.15) 1.5px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 3px, transparent 4px);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: particlesMove 60s linear infinite;
    z-index: 0;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0); /* fuerza capa independiente */
    will-change: background-position, transform;
}


/* Animación para el gradiente */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Movimiento lento de las partículas */
@keyframes particlesMove {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, 50px 50px, 25px 25px;
    }
}

/* El resto del CSS permanece igual, pero removí el fondo animado de .intro */
/* Solo para mostrar ejemplo: .intro ahora sin fondo porque el fondo está en body */

.intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* fondo animado removido porque está en body */
}

/* Resto del código (sin cambios) */


@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 8px #00d9ff,
            0 0 20px #00d9ff,
            0 0 30px #00b7ff;
    }
    50% {
        text-shadow:
            0 0 12px #00ffff,
            0 0 30px #00ffff,
            0 0 45px #00ffff;
    }
}

.logo, .name {
    opacity: 0;
    transform: translateY(20px);
    animation: introFade 1.5s ease forwards;
}

.logo {
    width: 200px;
    margin-bottom: 20px;
    border-radius: 52px;
    object-fit: cover;
}

.name {
    font-size: 2.5rem;
    color: #00d9ff;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

.scroll-down {
    font-size: 2rem;
    color: #00d9ff;
    text-decoration: none;
    animation: bounce 1.5s infinite;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* Header */
header {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scaleY(0.8); /* Solo escala verticalmente */
    transition: 
        opacity 0.4s ease, 
        transform 0.4s ease, 
        visibility 0.4s ease;
    background: #111827;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1); /* Crece solo en vertical */
}


header h1 {
    color: #00d9ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

nav a {
    color: #e0f7ff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: #00d9ff;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

/* Hero */
.hero {
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
    /* Quita el background linear-gradient que tapa el fondo animado */
}

.hero h2 {
    font-size: 3rem;
    color: #00d9ff;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.7);
}

.hero p {
    max-width: 650px;
    margin: 30px auto;
    font-size: 1.3rem;
    color: #cceeff;
}

.btn {
    display: inline-block;
    background: #00d9ff;
    color: #0a0f1a;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

.btn:hover {
    background: #009ec4;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.6);
}

/* Mods */
.mods {
    padding: 0 50px 60px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    border-radius: 12px;
    margin-bottom: 60px;
}


.mod-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
}

.mod-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 25px;
    background: linear-gradient(135deg, #004e92, #000428);
    border-radius: 12px;
    margin-top: 20px;
    color: #a0dfff;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
    border: 1px solid #00d9ff88;
}

.mod-info.show {
    max-height: 400px;
    padding: 20px 25px;
}

.mod-info ul {
    list-style: inside disc;
    margin: 0;
    padding-left: 10px;
}

.keyblocker-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
    margin-bottom: 20px;
    background-color: #0a0f1a;
}


.info-btn {
    background: #00d9ff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: #0a0f1a;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.6);
    transition: background 0.3s, transform 0.3s;
    position: relative;
}

.info-btn:hover {
    background: #009ec4;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 217, 255, 0.8);
}

.info-btn.active {
    background: #0082a8;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 18px rgba(0, 217, 255, 0.8);
}

.card {
    background: #11182771;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transition: all 0.2s ease-in-out;
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.card h3 {
    color: #00d9ff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

/* Contacto */
.contact {
    padding: 80px 50px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 60px;
}

.contact h2 {
    color: #00d9ff;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.contact p {
    font-size: 1.2rem;
    color: #cceeff;
}

.contact-form {
    max-width: 500px;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #112240;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.65);
    transform: translateY(-5px);
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid transparent;
    font-family: 'Fira Code', monospace;
    font-size: 1.15rem;
    color: #e0f7ff;
    background-color: #1a2540;
    box-shadow: inset 0 0 8px rgba(0, 150, 255, 0.4);
    resize: none;
    transition: border-color 0.3s ease, box-shadow 0.4s ease, background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8ca6c1;
    font-style: italic;
    transition: color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d9ff;
    background-color: #22304e;
    box-shadow:
        0 0 8px 2px rgba(0, 217, 255, 0.7),
        inset 0 0 10px rgba(0, 150, 255, 0.6);
    color: #e0f7ff;
}

.contact-form button.btn {
    align-self: center;
    padding: 16px 48px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    background: linear-gradient(135deg, #00d9ff, #006fbf);
    color: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.8);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.contact-form button.btn:hover {
    background: linear-gradient(135deg, #006fbf, #00d9ff);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 1);
    transform: scale(1.1);
}

.contact-form button.btn:active {
    transform: scale(0.98);
    box-shadow: 0 6px 15px rgba(0, 217, 255, 0.8);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #111827;
    color: #88aacc;
    margin-top: 50px;
}

/* Animaciones */
@keyframes introFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    nav {
        margin-top: 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .mods {
        padding: 0 20px 40px 20px;
        gap: 20px;
    }

    /* Formulario móvil: que ocupe casi todo el ancho */
    .contact {
        padding: 60px 20px;
    }

    .contact-form {
        max-width: 100%;
        padding: 25px 15px;
        margin: 20px auto 0 auto;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
        padding: 12px 14px;
    }

    .contact-form button.btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
