body {
    background-color: hsla(0, 0%, 23%, 1);
    color: hsla(0, 0%, 100%, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
}

header {
    background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.4), hsla(0, 100%, 50%, 0.3));
    border-top: 3px solid hsla(0, 100%, 70%, 1);
    border-bottom: 3px solid hsla(0, 100%, 70%, 1);
    padding: 40px 20px;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: inset 0 0 40px hsla(0, 100%, 70%, 0.1);
}

h1 {
    margin: 0;
    color: hsla(0, 0%, 100%, 1);
    text-align: center;
    font-family: 'Bitcount Prop Double', sans-serif;
    font-weight: 100;
    font-size: 50px;
}
h2 {
    text-align: center;
    font-family: inherit;
    font-size: 1.4em;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto 0;
    color: hsla(0, 0%, 100%, 1);
    font-weight: 600;
}

h3 {
    text-align: center;
    font-family: inherit;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto 0;
    color: hsla(0, 0%, 100%, 1);
    font-weight: 400;
    opacity: 0.95;
}

#flip {
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

#flip {
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

#flip span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.2em;
    line-height: 1.2em;
    opacity: 0;
    transform: rotateX(-90deg);
    animation: flip 9s infinite;
}

#flip span:nth-child(1) { animation-delay: 0s; }
#flip span:nth-child(2) { animation-delay: 3s; }
#flip span:nth-child(3) { animation-delay: 6s; }

@keyframes flip {
    0% { opacity: 0; transform: rotateX(-90deg); }
    5%, 25% { opacity: 1; transform: rotateX(0deg); }
    30%, 100% { opacity: 0; transform: rotateX(90deg); }
}
.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

figure {
    margin: 0;
    width: 220px;
    max-width: calc(100% - 40px);
    text-align: center;
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.15), hsla(180, 100%, 50%, 0.15), hsla(300, 100%, 50%, 0.12), hsla(0, 0%, 100%, 0.08));
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

figure:hover::before {
    opacity: 1;
    transform: translateX(0);
    animation: holographicShift 1.8s ease-in-out infinite alternate;
}

figure a {
    display: block;
    text-decoration: none;
}

figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

figure:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.09), 0 18px 40px hsla(0, 0%, 0%, 0.35);
}

figcaption {
    margin: 14px 0 16px;
    font-size: 1rem;
    font-weight: 600;
    color: hsla(0, 0%, 100%, 1);
    pointer-events: none;
    font-family: inherit;
}

@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

summary {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05em;
    background: linear-gradient(135deg, hsla(0, 100%, 70%, 0.1), hsla(0, 100%, 50%, 0.05));
    padding: 12px 18px;
    border: 1px solid hsla(0, 100%, 70%, 0.2);
    border-radius: 10px;
    margin: 0;
    color: hsla(0, 0%, 100%, 1);
    transition: all 0.25s ease;
    list-style: none;
}

summary:hover {
    background: linear-gradient(135deg, hsla(0, 100%, 70%, 0.15), hsla(0, 100%, 50%, 0.1));
    border-color: hsla(0, 100%, 70%, 0.4);
    transform: translateX(2px);
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▶ ";
    margin-right: 8px;
    transition: transform 0.25s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

details {
    margin-bottom: 16px;
    background: transparent;
    border: none;
    border-left: 3px solid hsla(0, 100%, 70%, 0.3);
    padding: 0;
    font-family: inherit;
}

details[open] {
    border-left: 3px solid hsla(0, 100%, 70%, 0.6);
}

details > .games-grid {
    margin-top: 16px;
    margin-left: 8px;
}

.review-bubble {
    display: none;
    position: fixed;
    text-align: center;
    inset: 0;
    background: hsla(0, 0%, 0%, 0.4);
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.review-bubble:target {
    display: flex;
}

.review-overlay {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    z-index: 0;
    cursor: pointer;
}


.bubble-content {
    background: hsla(0, 0%, 8%, 0.84);
    padding: 24px;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    color: hsla(0, 0%, 100%, 1);
    box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.45);
    margin-top: 0;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.bubble-content h2 {
    font-family: inherit;
    font-weight: 600;
}

.bubble-content p {
    margin: 0;
    line-height: 1.7;
    opacity: 0.95;
    font-family: inherit;
}

footer {
    background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.4), hsla(0, 100%, 50%, 0.1));
    border-top: 2px solid hsla(0, 100%, 50%, 0.3);
    padding: 40px 20px;
    color: hsla(0, 0%, 100%, 1);
    margin-top: 60px;
    font-family: inherit;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin: 0 0 16px 0;
    color: hsla(0, 100%, 70%, 1);
    font-weight: 600;
    font-family: inherit;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    font-family: inherit;
}

.footer-section a {
    color: hsla(0, 0%, 100%, 1);
    text-decoration: none;
    transition: color 0.25s ease;
    font-family: inherit;
}

.footer-section a:hover {
    color: hsla(0, 100%, 70%, 1);
}

.footer-section p {
    margin: 12px 0;
    line-height: 1.6;
    opacity: 0.95;
    font-family: inherit;
}

.promo {
    background: hsla(0, 100%, 70%, 0.15);
    padding: 16px;
    border-left: 4px solid hsla(0, 100%, 70%, 1);
    border-radius: 6px;
    margin: 16px 0;
    font-family: inherit;
}

.btn-promo {
    display: inline-block;
    background: linear-gradient(135deg, hsla(0, 100%, 70%, 1), hsla(0, 100%, 50%, 1));
    color: hsla(0, 0%, 100%, 1);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 12px;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(0, 100%, 70%, 0.4);
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablets y dispositivos medianos (768px y menores) */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    #flip {
        height: 1em;
    }

    #flip span {
        height: 1em;
        line-height: 1em;
    }

    @keyframes slide {
        0%, 33% { transform: translateY(0); }
        33.33%, 66% { transform: translateY(-1em); }
        66.66%, 100% { transform: translateY(-2em); }
    }

    header p {
        font-size: 1em;
        max-width: 90%;
    }

    .games-grid {
        gap: 16px;
        margin-top: 12px;
    }

    figure {
        width: 180px;
    }

    figure img {
        height: 150px;
    }

    .bubble-content {
        max-width: 90%;
        padding: 20px;
    }

    header {
        padding: 16px;
        margin-bottom: 16px;
    }

    details {
        padding: 0;
        margin-bottom: 12px;
        background: transparent;
        border: none;
        border-left: 2px solid hsla(0, 100%, 70%, 0.3);
    }

    summary {
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: 8px;
    }

    footer {
        padding: 32px 16px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-section:nth-child(3) {
        grid-column: 1 / -1;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .btn-promo {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Móviles (480px y menores) */
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    #flip {
        height: 0.9em;
    }

    #flip span {
        height: 0.9em;
        line-height: 0.9em;
    }

    @keyframes slide {
        0%, 33% { transform: translateY(0); }
        33.33%, 66% { transform: translateY(-0.9em); }
        66.66%, 100% { transform: translateY(-1.8em); }
    }

    header {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 0;
    }

    header p {
        font-size: 0.95em;
        line-height: 1.5;
        margin: 16px auto 0;
        max-width: 95%;
    }

    .games-grid {
        gap: 12px;
        margin-top: 10px;
    }

    figure {
        width: 150px;
    }

    figure img {
        height: 130px;
    }

    figcaption {
        font-size: 0.9rem;
        margin: 10px 0 12px;
    }

    summary {
        padding: 10px 12px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .bubble-content {
        max-width: 95%;
        padding: 16px;
        border-radius: 16px;
    }

    .bubble-content h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .bubble-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    details {
        padding: 0;
        margin-bottom: 10px;
        background: transparent;
        border: none;
        border-left: 2px solid hsla(0, 100%, 70%, 0.25);
    }

    footer {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .promo {
        padding: 12px;
        margin: 12px 0;
    }

    .btn-promo {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Pantallas grandes (1024px y mayores) */
@media (min-width: 1024px) {
    body {
        max-width: 1400px;
        margin: 0 auto;
    }

    .games-grid {
        gap: 28px;
    }

    figure {
        width: 240px;
    }

    figure img {
        height: 200px;
    }

    summary {
        font-size: 1.1em;
        padding: 14px 20px;
    }

    summary:hover {
        transform: translateX(4px);
    }

    details > .games-grid {
        margin-top: 20px;
        margin-left: 12px;
    }

    footer {
        padding: 60px 40px;
        margin-top: 80px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .btn-promo {
        width: auto;
    }
}

