body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0d0d0d;
    color: #f2f2f2;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: auto;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #ffffff;
    font-size: 2.5rem;
}

h2 {
    color: #fff;
    font-size: 2rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    color: #ccc;
}

/* Galería en fila */
.text-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 60px auto;
    max-width: 1200px;
}

/* Bloques */
.block {
    flex: 1 1 250px;
    max-width: 300px;
    min-height: 250px;
    border-radius: 18px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Colores */
.block-yellow {
    background: #FFD700aa;
}

.block-pink {
    background: #FF69B499;
}

.block-light {
    background: #0015ff96;
}

/* Efecto al resaltar */
.block.active {
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    z-index: 10;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .text-stack {
        flex-direction: column;
        align-items: center;
    }

    .block {
        width: 90%;
        max-width: none;
    }
}