/* --- FUENTES KAWAII DESDE GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Mali:wght@400;600;700&display=swap');

/* --- CONFIGURACIÓN BASE Y CAPA DE FONDO ANIMADO --- */
body {
    margin: 0;
    padding: 0;
    /* Fuente principal estilo "escrito a mano con plumón" */
    font-family: 'Mali', cursive;
    color: #7d5a71; 
    cursor: url('media/cursor.png'), auto;
    position: relative;
    min-height: 100vh;
    /* Cursor para los enlaces y elementos interactivos */
a, .cute-hover, .cute-bounce, .cute-scale {
    cursor: url('media/cursor2.png') 10 10, pointer !important;
}
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('media/descarga.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.8;
}

/* MARQUEE SUPERIOR CUTE Y DECORA */
.top-marquee {
    background: rgba(255, 228, 238, 0.8); /* Rosa pastel semitransparente */
    color: #f5f5f5; 
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.3em;
    padding: 10px 0;
    letter-spacing: 2px;
    border-bottom: 4px dashed #f1cadd;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0px #fff;
}

/* --- CONTENEDOR PRINCIPAL (MÁS TRANSPARENTE) --- */
#blog-container {
    width: 85%;
    max-width: 900px;
    margin: 30px auto;
    /* Fondo blanco al 65% de opacidad para dejar ver el fondo */
    background-color: rgba(255, 255, 255, 0.65); 
    border: 6px double #f1cadd; 
    border-radius: 30px;
    box-shadow: 0 10px 0px rgba(250, 200, 217, 0.6); 
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* --- HEADER --- */
#header {
    text-align: center;
    border-bottom: 4px dotted #ffe4ee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.header-gif { height: 100px; }

h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3em;
    margin: 10px 0 5px 0;
    color: #f29bb6;
    text-shadow: 3px 3px 0px rgba(255, 228, 238, 0.8), -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    letter-spacing: 1px;
}

.subtitle { 
    color: #bda8db; 
    font-size: 1.2em; 
    font-weight: 600;
    background: rgba(255, 250, 250, 0.8); /* Blanco rosado semitransparente */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid #ffe4ee;
}

/* --- BARRA DE NAVEGACIÓN (CON LUNARES SEMITRANSPARENTES) --- */
.navbar {
    text-align: center;
    background-color: rgba(250, 200, 217, 0.6); /* Rosa base transparente */
    /* Patrón de lunares blancos con opacidad */
    background-image: radial-gradient(rgba(255,255,255,0.6) 20%, transparent 20%), radial-gradient(rgba(255,255,255,0.6) 20%, transparent 20%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border: 3px solid rgba(242, 155, 182, 0.8);
    box-shadow: 0 5px 0 rgba(241, 202, 221, 0.8);
}

.navbar a {
    font-family: 'Fredoka', sans-serif;
    color: #7d5a71;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 50px; 
    background-color: rgba(255, 255, 255, 0.85);
    border: 3px solid #f29bb6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar a:hover {
    transform: translateY(-5px) scale(1.1) rotate(-5deg);
    background-color: rgba(229, 204, 255, 0.9); 
    border-color: #bda8db;
    box-shadow: 4px 4px 0 #bda8db; 
    color: #7d5a71;
}

/* --- BARRA LATERAL Y CONTENIDO --- */
#content-wrapper { display: flex; gap: 25px; }
#sidebar { flex: 1; min-width: 220px; }

.side-box {
    background: rgba(255, 250, 250, 0.7); /* Blanco semitransparente */
    border: 3px solid #f29bb6; 
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.box-title {
    font-family: 'Fredoka', sans-serif;
    background: rgba(242, 155, 182, 0.9); /* Rosa casi sólido para leer bien */
    color: #fff;
    margin: -15px -15px 15px -15px;
    padding: 10px;
    border-radius: 17px 17px 0 0;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #d8769b;
}

.fake-player {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #bda8db;
    border-radius: 15px;
    padding: 10px;
    font-size: 0.9em;
    color: #bda8db;
    font-family: 'Fredoka', sans-serif;
}

.song-title { margin-top: 5px; color: #7d5a71; font-weight: bold; }

/* --- ZONA DE POSTS --- */
#posts-area { flex: 2.5; }

.blog-post {
    background: rgba(255, 255, 255, 0.7); /* Blanco semitransparente */
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 228, 238, 0.9);
    margin-bottom: 30px;
    box-shadow: 3px 3px 10px rgba(241, 202, 221, 0.3);
}

.post-title {
    font-family: 'Fredoka', sans-serif;
    color: #f29bb6;
    border-bottom: 3px dashed #fac8d9;
    margin-top: 0;
    padding-bottom: 10px;
    font-size: 1.8em;
}

.post-date { 
    font-size: 0.9em; 
    color: #fff; 
    background-color: rgba(189, 168, 219, 0.9); /* Lila semitransparente */
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 15px; 
    font-family: 'Fredoka', sans-serif;
}

.post-body { line-height: 1.8; font-size: 1.1em; }

/* --- ENLACES CUTE DEL FOOTER --- */
.cute-link {
    color: #bda8db;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #bda8db;
    transition: all 0.2s;
}

.cute-link:hover {
    color: #f29bb6;
    border-bottom: 2px solid #f29bb6;
    background-color: rgba(255, 228, 238, 0.8);
    padding: 0 3px;
    border-radius: 3px;
}

/* --- HOVERS DE IMÁGENES Y GIFS --- */
.gif-separator { text-align: center; margin: 20px 0; }
.post-gif { display: block; max-width: 100%; margin: 20px auto; border-radius: 15px; border: 3px solid #ffe4ee; }
.profile-gif { width: 120px; height: 120px; border-radius: 50%; border: 5px dotted rgba(242, 155, 182, 0.8); background: rgba(255, 255, 255, 0.7); padding: 3px; }
.gif-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.cute-scale { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cute-scale:hover { transform: scale(1.2) rotate(3deg); cursor: pointer; }

.cute-bounce { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cute-bounce:hover { transform: translateY(-10px) scale(1.05); }

.cute-hover { transition: all 0.3s ease; }
.cute-hover:hover { transform: rotate(4deg) scale(1.08); filter: drop-shadow(4px 4px 0px rgba(250, 200, 217, 0.8)); }

.pulse-text {
    animation: pulse 1.5s infinite alternate;
    color: #f29bb6;
    font-weight: bold;
}

@keyframes pulse {
    0% { transform: scale(1); text-shadow: 0 0 0 transparent; }
    100% { transform: scale(1.1); text-shadow: 0 0 5px #f29bb6; }
}
/* --- ADAPTACIÓN PARA CELULARES --- */
@media (max-width: 768px) {
    #content-wrapper {
        flex-direction: column; /* Pone el sidebar arriba de los posts */
    }
    .navbar {
        flex-wrap: wrap; /* Deja que los botones bajen a otra línea si no caben */
    }
}
/* --- BOTÓN DE RADIO Y2K --- */
.radio-btn {
    background-color: #f29bb6;
    color: white;
    border: 3px solid #f1cadd;
    border-radius: 15px;
    padding: 10px 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 0 #d8769b; /* Efecto 3D chunky */
    transition: all 0.2s;
}

.radio-btn:active {
    transform: translateY(4px); /* Cuando le das clic, el botón se hunde */
    box-shadow: 0 0 0 #d8769b;
}
/* --- ESTILOS Y ANIMACIONES DEL FORMULARIO BASE --- */
.cute-form-base {
    text-align: left;
    font-size: 0.9em;
}

.input-anim-group {
    margin-bottom: 8px;
}

/* Colores de los textos (Labels) */
.cute-form-base label {
    color: #f29bb6;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Animación cuando pasas el ratón por la sección */
.input-anim-group:hover label {
    transform: translateX(3px) rotate(-2deg);
    color: #d8769b;
}

/* Diseño exacto que me pediste para las cajitas */
.cute-form-base input[type="text"],
.cute-form-base input[type="email"],
.cute-form-base input[type="tel"],
.cute-form-base input[type="number"],
.cute-form-base input[type="date"],
.cute-form-base textarea {
    width: 90%;
    margin-bottom: 8px;
    border: 2px dashed #f1cadd;
    border-radius: 5px;
    padding: 4px;
    font-family: 'Fredoka', sans-serif;
    color: #7d5a71;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.cute-form-base input.short-input { width: 50%; }
.cute-form-base textarea { resize: vertical; margin-bottom: 10px; }

/* ✨ EFECTO HOVER: Cajitas se hacen grandes ✨ */
.cute-form-base input[type="text"]:hover,
.cute-form-base input[type="email"]:hover,
.cute-form-base input[type="tel"]:hover,
.cute-form-base input[type="number"]:hover,
.cute-form-base input[type="date"]:hover,
.cute-form-base textarea:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 1);
    box-shadow: 2px 2px 5px rgba(241, 202, 221, 0.6);
}

/* ✨ EFECTO FOCUS: Cuando haces clic para escribir ✨ */
.cute-form-base input[type="text"]:focus,
.cute-form-base input[type="email"]:focus,
.cute-form-base input[type="tel"]:focus,
.cute-form-base input[type="number"]:focus,
.cute-form-base input[type="date"]:focus,
.cute-form-base textarea:focus {
    outline: none;
    transform: scale(1.04);
    border-style: solid;
    border-color: #bda8db; /* Un toque lila Y2K */
    box-shadow: 3px 3px 0px #e5ccff;
}

/* Botoncitos de opción (Radio) */
.radio-options {
    margin-bottom: 8px;
    margin-left: 5px;
}

.cute-form-base input[type="radio"] {
    cursor: pointer;
    transition: transform 0.2s;
}

.cute-form-base input[type="radio"]:hover {
    transform: scale(1.4);
}

/* Selector de color */
.cute-form-base .color-picker {
    margin-left: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid #f1cadd;
    border-radius: 5px;
    padding: 1px;
    transition: all 0.3s;
}

.cute-form-base .color-picker:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Botón de enviar "send" */
.cute-submit-btn {
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 1em;
    padding: 8px 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 0 #d8769b;
}

.cute-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #d8769b;
}
/* --- TRUCO PARA QUE DESLICE SUAVECITO --- */
html {
    scroll-behavior: smooth;
}

/* --- ESTILOS DEL FOOTER Y2K --- */
.cute-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 3px dashed #f29bb6; 
    background-color: rgba(255, 228, 238, 0.5); 
    font-family: 'Fredoka', sans-serif;
}

.footer-content p {
    color: #d8769b;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* --- ENLACE DE VOLVER ARRIBA (TEXTO) --- */
.text-link-top {
    color: #f29bb6; /* Rosita base */
    text-decoration: none; /* Le quita la línea de abajo */
    font-size: 1.1em;
    font-weight: bold;
    display: inline-block; /* Necesario para que el saltito funcione */
    transition: all 0.3s ease;
}

.text-link-top:hover {
    color: #bda8db; /* Cambia a color lila cuando pasas el ratón */
    text-shadow: 2px 2px 4px rgba(241, 202, 221, 0.8); /* Brillo sutil */
    transform: translateY(-3px); /* Da un saltito chiquito hacia arriba */
}

/* --- NUEVO MENÚ DESPLEGABLE (SIN SOBREPOSICIÓN) --- */
.dropdown-wrapper {
    position: fixed;
    /* Bajamos el menú a 75px para que no tape el marquee superior */
    top: 75px; 
    right: 30px;
    z-index: 10000;
}

.cute-drop-btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: #f29bb6;
    border: 4px double #f1cadd; /* Borde doble como tus cajas */
    border-radius: 25px;
    padding: 12px 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    cursor: url('media/cursor2.png'), pointer !important;
    box-shadow: 4px 4px 0px rgba(241, 202, 221, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-drop-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    background-color: #fff;
    box-shadow: 6px 6px 0px #bda8db;
}

/* Área invisible para que no se cierre el menú al mover el mouse */
.cute-drop-content {
    display: none;
    position: absolute;
    right: 0;
    top: 50px; /* Espacio para que no esté pegado al botón */
    background-color: rgba(255, 250, 250, 0.98);
    min-width: 200px;
    border: 3px solid #f29bb6;
    border-radius: 15px;
    box-shadow: 8px 8px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: menuAppear 0.4s ease;
    padding: 10px 0;
}

/* Para que sea más fácil seleccionar, creamos un "puente" invisible */
.dropdown-wrapper:hover .cute-drop-content {
    display: block;
}

.cute-drop-content a {
    color: #7d5a71;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Mali', cursive;
    font-weight: 600;
    transition: 0.2s;
}

.cute-drop-content a:hover {
    background-color: #ffe4ee;
    color: #f29bb6;
    padding-left: 30px; /* Efecto de empuje */
}

.menu-divider {
    height: 2px;
    background: #f1cadd;
    margin: 5px 15px;
    border-radius: 2px;
}

@keyframes menuAppear {
    from { opacity: 0; transform: translateY(-10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
::selection {
    background: #f1cadd; /* El rosa de tus bordes */
    color: #7d5a71;       /* El color de tu fuente */
}

/* --- CONTENEDOR ESTILO BLOG --- */
.game-wrapper {
    background-color: rgba(255, 255, 255, 0.65); 
    border: 6px double #f1cadd; 
    border-radius: 30px;
    box-shadow: 0 10px 0px rgba(250, 200, 217, 0.6); 
    padding: 40px 20px;
    max-width: 700px;
    width: 85%;
    position: relative;
    z-index: 1;
    text-align: center;
}

h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3em;
    margin: 0 0 10px 0;
    color: #f29bb6;
    text-shadow: 3px 3px 0px rgba(255, 228, 238, 0.8), -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.subtitle { 
    color: #bda8db; 
    font-size: 1.2em; 
    font-weight: 600;
    background: rgba(255, 250, 250, 0.8);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid #ffe4ee;
    margin-bottom: 30px;
}

/* --- BOTONES ESTILO NAVBAR --- */
.opciones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

button {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 50px; 
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 3px solid #f29bb6;
    color: #7d5a71;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 0 rgba(241, 202, 221, 0.8);
}

button:hover {
    transform: translateY(-5px) scale(1.1) rotate(-3deg);
    background-color: rgba(229, 204, 255, 0.9); 
    border-color: #bda8db;
    box-shadow: 4px 4px 0 #bda8db; 
}

.icono-mano {
    width: 65px;
    height: 65px;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    border: 3px dotted #f29bb6;
    background: white;
    padding: 5px;
}

/* --- RESULTADO Y MARCADOR --- */
#resultado {
    font-size: 1.4em;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 2px dashed #fac8d9;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marcador {
    background-color: rgba(250, 200, 217, 0.6); 
    background-image: radial-gradient(rgba(255,255,255,0.6) 20%, transparent 20%), radial-gradient(rgba(255,255,255,0.6) 20%, transparent 20%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    padding: 25px;
    border-radius: 20px;
    display: inline-flex;
    gap: 40px;
    border: 3px solid rgba(242, 155, 182, 0.8);
}

.puntos-box { text-align: center; }
.puntos-label { font-family: 'Fredoka', sans-serif; display: block; font-size: 1.1em; }
.puntos { 
    font-size: 3em; 
    font-weight: bold; 
    color: white;
    text-shadow: 2px 2px 0px #f29bb6;
}

/* ANIMACIÓN */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.animar { animation: pop 0.3s ease; }