/* Portal de Inicio - Menú Infantil */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

:root {
    --primary: #ff4d6d;
    --secondary: #4ea8de;
    --accent: #ffd166;
    --text-dark: #2b2d42;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #ffd6e0 0%, #c3e0ff 50%, #fde68a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Burbujas flotantes decorativas en el fondo */
.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    pointer-events: none;
    animation: flotar-suave 6s infinite alternate ease-in-out;
}

.b1 { width: 120px; height: 120px; top: 10%; left: 8%; animation-delay: 0s; }
.b2 { width: 80px; height: 80px; bottom: 15%; left: 12%; animation-delay: 1.5s; }
.b3 { width: 160px; height: 160px; top: 15%; right: 10%; animation-delay: 1s; }
.b4 { width: 90px; height: 90px; bottom: 12%; right: 15%; animation-delay: 2.5s; }

@keyframes flotar-suave {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-24px) rotate(8deg); }
}

.contenedor {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-radius: 44px;
    padding: 44px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 10;
    border: 3px solid rgba(255, 255, 255, 0.6);
    animation: zoomEntrada 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomEntrada {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.header-portal h1 {
    font-size: 50px;
    color: var(--primary);
    text-shadow: 2px 2px 0 #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.header-portal .pregunta {
    font-size: 26px;
    color: #0077b6;
    margin-bottom: 32px;
    font-weight: 600;
}

.botones {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.boton-juego {
    background: white;
    border-radius: 30px;
    padding: 18px 24px;
    width: 100%;
    max-width: 380px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 3px solid transparent;
}

.boton-juego:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.15);
    border-color: #ffd6e0;
}

.boton-juego:active {
    transform: scale(0.97);
}

.emoji-wrap {
    font-size: 46px;
    background: #fff0f3;
    border-radius: 50%;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.boton-juego.burbujas .emoji-wrap {
    background: #e0f2fe;
}

.boton-juego:hover .emoji-wrap {
    transform: rotate(10deg) scale(1.1);
}

.texto-juego {
    text-align: left;
    flex: 1;
}

.texto-juego h2 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 4px;
}

.boton-juego.burbujas .texto-juego h2 {
    color: #0077b6;
}

.texto-juego p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

footer {
    margin-top: 36px;
    font-size: 15px;
    color: #888;
    font-weight: 600;
}

@media (max-width: 480px) {
    .contenedor {
        padding: 30px 20px;
        border-radius: 32px;
    }
    .header-portal h1 {
        font-size: 40px;
    }
    .header-portal .pregunta {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .emoji-wrap {
        width: 64px;
        height: 64px;
        font-size: 38px;
    }
    .texto-juego h2 {
        font-size: 22px;
    }
}
