/* ============ GAMES SECTION ============ */

#games {
    padding: 100px 0 120px;
    overflow-x: hidden;
}

/* HEADER — constelación gamepad */
.gm-header {
    text-align: center;
    margin-bottom: 30px;
}

.gm-constellation {
    width: 320px;
    max-width: 70vw;
    display: block;
    margin: 0 auto -30px;
    opacity: 0.9;
}

.gm-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* INTRO */
.gm-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    background: rgba(11, 154, 164, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 35px 50px;
}

.gm-intro p {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
}

/* FRANJA DIAGONAL + BUSTOS */
.gm-band {
    position: relative;
    margin: 0 0 120px;
}

.gm-stripes-img {
    display: block;
    width: 100%;
}

.gm-busts {
    position: absolute;
    left: 50%;
    top: 88%;
    transform: translate(-50%, -50%);
    width: 680px;
    max-width: 80vw;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

/* CRIATURA */
.gm-creature {
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.gm-creature img {
    width: 720px;
    max-width: 90vw;
}

/* TAGLINE DE ESTILOS */
.gm-styles-card {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: -50px auto 90px;
    background: rgba(11, 154, 164, 0.18);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    padding: 25px 45px;
    text-align: center;
}

.gm-styles-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
}

.gm-styles-tags {
    margin-top: 8px;
    letter-spacing: 2px;
    opacity: 0.7 !important;
    font-size: 0.95rem !important;
}

/* BLOQUE PSX / HERMANITO */
.gm-psx {
    max-width: 1100px;
    margin: 0 auto 90px;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
}

.gm-psx-img {
    width: 100%;
    border-radius: 6px;
}

.gm-psx-text {
    background: rgba(13, 30, 45, 0.75);
    border: 1px solid rgba(78, 205, 196, 0.18);
    border-radius: 14px;
    padding: 30px 35px;
}

.gm-psx-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.gm-psx-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.gm-psx-link:hover {
    opacity: 0.7;
}

/* TOOLS & TECH */
.gm-tools {
    max-width: 1000px;
    margin: 0 auto 140px;
    background: rgba(11, 154, 164, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 35px 50px;
}

.gm-tools h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.gm-tools-content {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

.gm-tools-icon {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #4ecdc4, #44b8f5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-tools-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.gm-tools-list {
    list-style: none;
    columns: 2;
    column-gap: 60px;
    flex: 1;
}

.gm-tools-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 10px;
    break-inside: avoid;
    padding-left: 16px;
    position: relative;
}

.gm-tools-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    opacity: 0.9;
}

/* MIDNIGHT STYLE — HERO */
.gm-midnight {
    max-width: 1100px;
    margin: 60px auto 100px;
    padding: 0 40px;
    position: relative;
}

.gm-midnight-label {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-left: 30px;
}

.gm-midnight-label span {
    color: var(--cyan);
    margin-right: 8px;
}

.gm-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 24px;
}

.gm-panel {
    position: relative;
    min-height: 640px;
    background: linear-gradient(180deg, #0d3b3e 0%, #2a8f8f 55%, #4ecdc4 100%);
}

.gm-panel img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 112%; /* la cabeza asoma sobre el panel, dentro del marco */
    max-width: none;
}

.gm-quote-a,
.gm-quote-b {
    position: absolute;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: gm-quote-float 6s ease-in-out infinite;
}

.gm-quote-a em,
.gm-quote-b em {
    font-style: italic;
    color: var(--cyan);
}

.gm-quote-a {
    top: 8%;
    left: 6%;
}

.gm-quote-b {
    bottom: 8%;
    right: 5%;
    text-align: right;
    animation-delay: -3s; /* desfasada respecto a la otra frase */
}

@keyframes gm-quote-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* sparkles del marco — laten suavemente */
.gm-sparkle {
    position: absolute;
    color: #fff;
    z-index: 3;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: gm-sparkle-pulse 3.5s ease-in-out infinite;
}

.gm-sparkle.s1 { top: -14px;   left: 18%;  font-size: 1.6rem; animation-delay: 0s; }
.gm-sparkle.s2 { top: -10px;   right: 12%; font-size: 1.1rem; animation-delay: 0.6s; }
.gm-sparkle.s3 { top: 38%;     left: -12px;  font-size: 1.2rem; animation-delay: 1.2s; }
.gm-sparkle.s4 { top: 52%;     right: -14px; font-size: 1.7rem; animation-delay: 1.8s; }
.gm-sparkle.s5 { bottom: -16px; left: 45%;  font-size: 1.5rem; animation-delay: 2.4s; }
.gm-sparkle.s6 { bottom: -10px; right: 22%; font-size: 1rem; animation-delay: 3s; }

@keyframes gm-sparkle-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

/* ============ GAMES RESPONSIVE ============ */

@media (max-width: 768px) {

    .gm-psx {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 25px;
    }

    .gm-psx-img {
        width: 100%;
    }

    /* MIDNIGHT STYLE — el texto era demasiado grande para el panel en mobile
       y tapaba la cara del render */
    .gm-midnight {
        margin: 30px auto 60px;
        padding: 0 20px;
    }

    .gm-frame {
        padding: 14px;
    }

    .gm-panel {
        min-height: 75vw;
    }

    .gm-panel img {
        height: 95%;
    }

    .gm-quote-a,
    .gm-quote-b {
        font-size: clamp(1.4rem, 7vw, 2rem);
        letter-spacing: -0.5px;
    }

    .gm-quote-a {
        top: 4%;
        left: 5%;
    }

    .gm-quote-b {
        bottom: 4%;
        right: 5%;
    }
}
