    body {
        font-family: Arial, sans-serif;
        margin: 0;
        background: #0f0f0f;
        color: rgb(255, 255, 255);
        line-height: 1.6;
    }
    header {
        background: linear-gradient(90deg, #111111, #000000);
        text-align: center;
        padding: 50px 20px;
    }
    header h1 {
        font-size: 2.5rem;
    }
    .btn {
        display: inline-block;
        background: white;
        color: black;
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
    }
    section {
        padding: 40px 20px;
        text-align: center;
    }
    .cards {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .card {
        background: #1f1f1f;
        padding: 20px;
        border-radius: 10px;
        width: 250px;
    }
    .mapas-grid {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .mapa {
        background: #1f1f1f;
        padding: 15px;
        border-radius: 10px;
        width: 600px;
    }
    .mapa img {
        max-width: 100%;
        border-radius: 8px;
    }

    /* Quién Soy */
    .sobre-mi-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
        background: url('img/fondo-gamer.png') no-repeat center/cover;
        padding: 20px;
        border-radius: 15px;
    }
    .foto-perfil img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 100%;
        border: 4px solid #0059ff;
    }
    .texto-sobre-mi {
        flex: 1;
    }

    /* Redes */
    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .social-links a {
        background: #1f1f1f;
        padding: 10px 15px;
        border-radius: 8px;
        text-decoration: none;
        color: white;
        font-weight: bold;
        transition: 0.3s;
    }
    .social-links a:hover {
        background: #006eff;
    }

    /* Video grids */
    .video-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .video-grid iframe {
        width: 560px;
        height: 315px;
        border-radius: 10px;
    }
    footer {
        background: #111;
        padding: 20px;
        text-align: center;
        font-size: 0.9rem;
    }
    a {
        color: #00d4ff;
    }

    .gamer-section {
        background: url('https://www.transparenttextures.com/patterns/cubes.png') #111;
        padding: 50px 20px;
        display: flex;
        justify-content: center;
    }

    .container-qs {
        background: rgba(20, 20, 20, 0.9);
        padding: 30px;
        border-radius: 15px;
        display: flex;
        max-width: 900px;
        gap: 20px;
        align-items: center;
        box-shadow: 0 0 15px rgba(132, 0, 255, 0.5);
    }

    .foto-qs {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .foto-haku {
        max-width: 200px;
        border-radius: 15px;
        border: 3px solid #0066ff;
    }

    .texto-qs {
        flex: 2;
        color: white;
    }

    .texto-qs h2 {
        font-size: 2rem;
        color: #00d4ff;
        margin-bottom: 10px;
    }

    .donaciones-section {
    padding: 40px 20px;
    text-align: center;
    background: #111;
    border-top: 3px solid #5900ff;
    border-bottom: 3px solid #00d4ff;
}

.donaciones-section h2 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.donaciones-section p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.donar-btn {
    display: inline-block;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #9900ff, #0077ff);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    
}

.donar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(119, 0, 255, 0.26), 0 0 40px rgba(0, 89, 255, 0.397);
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(76, 0, 255, 0.514), 0 0 30px rgba(0, 213, 255, 0.479); }
    50% { box-shadow: 0 0 30px rgba(111, 0, 255, 0.466), 0 0 40px rgba(0, 213, 255, 0.479); }
    100% { box-shadow: 0 0 20px rgba(89, 0, 255, 0.479), 0 0 30px rgba(0, 213, 255, 0.438); }
}

/* Animación hover 3D en tarjetas */
.card, .mapa {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover, .mapa:hover {
    transform: perspective(800px) rotateY(8deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(132, 0, 255, 0.5), 0 5px 15px rgba(0,212,255,0.5);
}

/* Animación en imágenes */
.foto-haku, .mapa img {
    transition: transform 0.5s ease;
}
.foto-haku:hover, .mapa img:hover {
    transform: perspective(600px) rotateX(5deg) rotateY(-5deg) scale(1.05);
}

/* Botón "Subir Arriba" */
#btn-subir {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    background: linear-gradient(45deg, #008cff, #00d4ff);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#btn-subir:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 25px rgba(183, 0, 255, 0.404), 0 0 35px rgba(0, 213, 255, 0.575);
}

/* Contacto Mejorado */
.contacto-section {
    background: linear-gradient(135deg, #111, #1f1f1f);
    padding: 50px 20px;
    text-align: center;
    border-top: 3px solid #4c00ff;
    border-bottom: 3px solid #0099ff;
}

.contacto-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 213, 255, 0.507);
}

.contacto-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 15px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.5), 0 0 15px rgba(0,212,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: perspective(600px) rotateY(6deg) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.8), 0 0 25px rgba(0, 213, 255, 0.637);
}

.contact-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: #0004ff;
}

.contact-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: #006eff;
}

/* Fondo animado degradado */
header {
    position: relative;
    overflow: hidden;
}

.bg-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #6200ffb2, #0077ffa9, #6f00ff9f);
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
    z-index: 0;
    opacity: 0.25;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Partículas */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Texto por encima */
header .container {
    position: relative;
    z-index: 2;
}


/* Estilo gamer para el título */
header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        0 0 10px #00a2ff8e,
        0 0 20px #00a2ff8e,
        0 0 30px #00d5ffb7,
        0 0 40px #00d5ffb0;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Subtítulo con caja translúcida */
header p {
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid rgba(0,212,255,0.6);
    font-size: 1.2rem;
    color: #eee;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
    margin-bottom: 20px;
}

/* Botón con efecto neón y animación */
header .btn {
    position: relative;
    background: linear-gradient(45deg, #6f00ff, #0084ff);
    color: white;
    font-size: 1.2rem;
    padding: 12px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(47, 0, 255, 0.7), 0 0 25px rgba(0, 174, 255, 0.7);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header .btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgb(0, 140, 255), 0 0 35px rgba(0,212,255,1);
}

/* Efecto de luz en movimiento dentro del botón */
header .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

/* Centrar y espaciar el botón debajo del texto */
.btn-wrapper {
    margin-top: 20px;
}

/* Botones premium para Contacto */
.contact-card p a {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border: 2px solid #ffd700;
    border-radius: 4px;
    color: #ffd700;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 0 5px rgba(255, 217, 0, 0.466);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Brillo al pasar el mouse */
.contact-card p a:hover {
    color: black;
    background: linear-gradient(135deg, #ffd900d0, #ffcc339d);
    box-shadow: 0 0 20px rgba(255, 217, 0, 0.514), 0 0 30px rgba(255, 217, 0, 0.329);
    transform: scale(1.05);
}

/* Efecto de destello que pasa por el botón */
.contact-card p a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.contact-card p a:hover::before {
    left: 120%;
}


/* Sección de Redes Sociales */
.redes-section {
    background: linear-gradient(135deg, #111, #1a1a1a);
    padding: 40px 10px;
    text-align: center;
    border-top: 3px solid #0066ff;
    border-bottom: 3px solid #6200ff;
}

.redes-section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0,212,255,0.8);
}

/* Grid centrado */
.redes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 botones por fila en pantallas grandes */
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive para tabletas */
@media (max-width: 900px) {
    .redes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 botones por fila */
    }
}

/* Responsive para móviles */
@media (max-width: 500px) {
    .redes-grid {
        grid-template-columns: 1fr; /* 1 botón por fila */
    }
}

.red {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    min-width: 170px; /* Mantiene proporción */
}

/* Efecto hover */
.red:hover {
    transform: scale(1.05);
}


.red:hover::before {
    left: 125%;
}

/* Colores */
.social-youtube { background: #ff0000; }
.social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-facebook { background: #1877f2; }
.social-tiktok { background: #000000; }
.social-twitch { background: #9146ff; }
.social-blog { background: #ffaa00; }


/* Contenedor principal */
.container-qs {
    background: rgba(20, 20, 20, 0.9);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    max-width: 900px;
    gap: 20px;
    align-items: center;
    box-shadow: 0 0 15px rgba(132, 0, 255, 0.5);
}

/* Imagen */
.foto-qs img {
    max-width: 200px;
    border-radius: 15px;
    border: 3px solid #0059ff;
    width: 100%;
    height: auto;
}

/* Texto */
.texto-qs {
    flex: 2;
    color: white;
}

/* Responsive */
@media (max-width: 700px) {
    .container-qs {
        flex-direction: column; /* apilar imagen y texto */
        text-align: center;
        padding: 20px;
    }

    .foto-qs {
        margin-bottom: 20px;
    }

    .texto-qs {
        flex: unset;
    }

    .texto-qs p {
        font-size: 1rem; /* ajustar tamaño para móviles */
        line-height: 1.5rem;
    }
}

/* Contenedor YouTube responsive */
#youtube {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.video-wrapper {
    width: 100%;
    max-width: 1200px;  /* ancho máximo del video */
    aspect-ratio: 16 / 9; /* ratio 16:9 sin padding extra */
    margin: 0 auto; /* centra el contenedor */
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    display: block;
}


/* Contenedor twitch responsive */

#twitch .video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* Video/directo */
#twitch .video-grid .twitch-video {
    height: 600px;
    flex: 2;
    aspect-ratio: 16 / 9;
    min-width: 300px;
    max-width: 1100px;
    border-radius: 10px;
    border: none;
}

/* Chat */
#twitch .video-grid .twitch-chat {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    height: 600px; /* más alto que el video */
    border-radius: 10px;
    border: none;
}

/* Responsive para móviles */
@media (max-width: 800px) {
    #twitch .video-grid {
        flex-direction: column; /* apila video y chat */
        align-items: center;
    }

    #twitch .video-grid .twitch-video,
    #twitch .video-grid .twitch-chat {
        max-width: 100%;
        width: 100%;
        height: auto; /* video se ajusta */
    }

    /* Aumentar altura del chat en móviles */
    #twitch .video-grid .twitch-chat {
        min-height: 400px; /* altura deseada en móviles */
        height: 75vh; /* opcional, ocupa el 60% de la pantalla */
        width: 80%;
    }
}