/* ===========================
   ESTILOS GENERALES DEL BODY
   =========================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0a1a2f; /* Fondo general */
	overflow-x: hidden;
}

/* ===========================
   LAYOUT PRINCIPAL
   =========================== */
.layout {
    display: flex;
    min-height: 100vh;
    background: #05070a; /* Fondo de la sección lateral */
}

/* ===========================
   MENÚ LATERAL
   =========================== */
#menu-lateral {
    background: #0d1117;
    padding: 20px;
    width: 260px;
    border-radius: 14px;
    box-shadow:
        inset 4px 0 12px rgba(0, 150, 255, 0.35),
        inset -4px 0 12px rgba(0, 150, 255, 0.35);
}

/* Botones menú lateral */
#menu-lateral .menu-btn,
#menu-lateral .menu-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: rgba(0, 150, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 150, 255, 0.25);
    border-radius: 12px;
    color: #e8ecff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.25s ease;
}

#menu-lateral .menu-btn:hover,
#menu-lateral .menu-tools:hover {
    background: rgba(0, 150, 255, 0.18);
    border-color: rgba(0, 150, 255, 0.45);
    transform: translateX(6px);
    box-shadow: 0 0 14px rgba(0, 150, 255, 0.35);
}

#menu-lateral .icono {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 4px rgba(0,150,255,0.4));
}

/* Colores activos según sección */
.menu-btn.nivel-btn.active { background: rgba(0, 200, 255, 0.25); border-color: rgba(0, 200, 255, 0.8); box-shadow: 0 0 15px rgba(0, 200, 255, 0.6); }
.menu-btn.tema-btn.active { background: rgba(255, 120, 0, 0.25); border-color: rgba(255, 120, 0, 0.8); box-shadow: 0 0 15px rgba(255, 120, 0, 0.6); }
.menu-btn.como-btn.active { background: rgba(0, 255, 200, 0.25); border-color: rgba(0, 255, 200, 0.8); box-shadow: 0 0 15px rgba(0, 255, 200, 0.6); }
.menu-btn.beneficios-btn.active { background: rgba(180, 80, 255, 0.25); border-color: rgba(180, 80, 255, 0.8); box-shadow: 0 0 15px rgba(180, 80, 255, 0.6); }
.menu-btn.contacto-btn.active { background: rgba(255, 0, 120, 0.25); border-color: rgba(255, 0, 120, 0.8); box-shadow: 0 0 15px rgba(255, 0, 120, 0.6); }
.menu-btn.redes-btn.active { background: rgba(0, 120, 255, 0.25); border-color: rgba(0, 120, 255, 0.8); box-shadow: 0 0 15px rgba(0, 120, 255, 0.6); }

/* ===========================
   CONTENIDO PRINCIPAL RESPONSIVO
   =========================== */
.contenido {
    flex: 1;
    padding: 1%;          /* relleno interno proporcional */
    margin-left: 10%;     /* deja espacio al menú lateral */
    background: #0a0f1f;
    box-sizing: border-box;
}

/* ===========================
   BLOQUES DE INICIO
   =========================== */
.inicio-contenedor {
    margin: 1% auto;          /* separación vertical proporcional y centrado */
    max-width: 85%;            /* ancho máximo relativo al contenedor padre */
    text-align: center;
}

/* ===========================
   GRID DE CUADROS
   =========================== */
.grid-cuadros {
    display: grid;
    gap: 2%;                          /* espacio entre cuadros relativo */
    max-width: 90%;
    margin: 4% auto;                  /* separación superior/inferior y centrado */
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr)); /* columnas adaptativas */
}

/* ===========================
   RESPONSIVE PARA MÓVILES
   =========================== */
@media (max-width: 768px) {
    .contenido {
        margin-left: 0;  /* quita margen lateral en pantallas pequeñas */
        padding: 2%;
    }

    .inicio-contenedor {
        max-width: 95%; /* ocupa casi todo el ancho */
    }

    .grid-cuadros {
        grid-template-columns: 1fr; /* una columna por fila */
        gap: 5%;
        max-width: 100%;
    }
}

/* Secciones */
.seccion { display: none; }
.visible { display: block; }

/* ===========================
   BOTONES Y NIVELES
   =========================== */
button {
    background: #111a33;
    color: #ffffff;
    border: 1px solid rgba(120, 180, 255, 0.25);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.08);
}

button:hover {
    background: #1a2344;
    border-color: rgba(0, 150, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.4);
    transform: translateY(-2px);
}

button.active { background: #3b4b8a; border-color: #6d8cff; box-shadow: 0 0 15px rgba(120, 160, 255, 0.6); }
/* ===========================
   SECCION TRABALENGUAS POR NIVEL AJUSTES ESTETICOS
   =========================== */
/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
.tw-container {
    position: relative;
    width: 95%;
    max-width: 900px;
    border-radius: 10px;
    padding: 2%;
    min-height: 500px;
    margin: 0 auto;
    z-index: 1;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .tw-container {
        padding: 3%;
        min-height: 400px;
    }
}

/* ===========================
   BOTONES DE NIVELES
   =========================== */
.levels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
    margin: 0 auto 3%;
    max-width: 400px;
}

.levels button {
    flex: 1 1 28%;
    min-width: 70px;
    padding: 1.5% 2%;
    font-size: 0.95rem;
    border-radius: 12px;
    background: #0f162b;
    border: 1px solid rgba(0, 150, 255, 0.5);
    color: #00c8ff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 8px rgba(0,150,255,0.2);
}

.levels button:hover {
    background: #1a2344;
    border-color: rgba(0, 200, 255, 0.8);
    box-shadow: 0 0 12px rgba(0,200,255,0.4);
}

.levels button.active {
    background: linear-gradient(145deg, #0096ff, #8000ff); /* azul → morado */
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
    color: #ffffff;
}

@media (max-width: 600px) {
    .levels button {
        flex: 1 1 45%;
        font-size: 2.5vw;
        padding: 4%;
    }
}

/* ===========================
   CARD NAVEGATION
   =========================== */
.card-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2%;
    width: 90%;
    max-width: 1200px;
    height: 40vh;
    min-height: 200px;
    margin: 2% auto 1% auto;
    padding: 2%;
   background: linear-gradient(145deg, #0a0b1f, #1b0e3f); /* degradado oscuro azul → púrpura */
    
    /* Borde más sutil, menos brillante */
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 12px;

    /* Sombra más suave, concentrada en el centro, no en esquinas */
    box-shadow: inset 0 0 8px rgba(0, 150, 255, 0.2), 
                0 0 8px rgba(0, 150, 255, 0.1);
   
    color: #ffffff;
    font-size: 1.5rem;
    overflow: hidden;
}

.card-navigation .card {
    flex: 1 1 100%;
    text-align: LEFT;
}

@media (max-width: 600px) {
    .card-navigation {
        width: 95%;
        height: auto;
        min-height: 180px;
        padding: 3%;
    }
}

/* ===========================
   BARRA DE PROGRESO Y FLECHAS
   =========================== */
.progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 16px;
    flex-wrap: wrap;
}

.progress button {
    font-size: 2rem;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, #0f162b, #1a2344);
    border: 1px solid rgba(0,150,255,0.5);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,150,255,0.3);
    transition: all 0.3s ease;
}

.progress button:hover {
    background: linear-gradient(145deg, #1a2344, #0f162b);
    border-color: rgba(0,200,255,0.8);
    box-shadow: 0 0 18px rgba(0,200,255,0.5);
}

/* Dots de progreso */
.progress .dots {
    display: flex;
    gap: 6px;
}

.step {
    width: 16px;
    height: 6px;
    border-radius: 4px;
    background: #374151;
}

.step.active {
    background: #6366f1;
}


/* ===========================
   BOTONES CARD NAVIGATION (opcional extra)
   =========================== */
.card-navigation button {
    font-size: 1.4rem;
    padding: 10px 15px;
    border-radius: 10px;
    background: linear-gradient(145deg, #0f162b, #1a2344);
    border: 1px solid rgba(0, 150, 255, 0.4);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.25);
    transition: all 0.3s ease;
}

.card-navigation button:hover {
    background: linear-gradient(145deg, #1a2344, #0f162b);
    border-color: rgba(0, 200, 255, 0.8);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.5);
}

@media (max-width: 600px) {
    .card-navigation button {
        font-size: 1.25rem;
        padding: 3%;
        margin-bottom: 2%;
    }
}


/* RESPONSIVO */
@media (max-width: 600px) {
    .tw-container {
        padding: 3%;       /* más cómodo en móvil */
        min-height: 400px; /* un poco más baja */
    }
}
@media (max-width: 600px) {
    /* Ajustes de los botones dentro de progreso */
    .progress button {
        font-size: 1.5rem;
        padding: 5px 10px;
        flex: 0 0 auto;      /* no se expanden */
    }

    /* Dots centrados */
    .progress .dots {
        font-size: 1.2rem;
        display: flex;
        gap: 4px;
        flex: 1 1 100%;      /* ocupan toda la fila */
        justify-content: center;
        order: 0;            /* siempre en el medio */
    }

    /* Contenedor de progreso */
    .progress {
        display: flex;
        flex-wrap: wrap;     /* permitir que los dots bajen si hay muchos */
        justify-content: center;
        align-items: center;
        gap: 0.5rem;         /* separación entre flechas y dots */
    }

    /* Flechas prev/next */
    #prevBtn { order: -1; }   /* izquierda */
    #nextBtn { order: 1; }    /* derecha */
}
/* ===========================
   SECCIONES ESPECÍFICAS (FUTURISTA)
   =========================== */
#beneficio, #como, #contacto, #tematicas, #redes {
    background: #0d1117;
    color: #e2e8f0;
    padding: 40px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}
/* 🖥️ SOLO ESCRITORIO: separación respecto al menú lateral */
@media (min-width: 769px) {
    #beneficio,
    #como,
    #contacto,
    #tematicas,
    #redes {
		 margin-left: 20%; /* 250px del menú + 30px de aire */
        margin-right: auto;
    }
}

#tematicas {
  max-width: 60%;       /* ahora se adapta al ancho de la pantalla */
  height: 96vh;          /* altura relativa al viewport */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out;
}

/* Bordes neón comunes */
#beneficio::before, #como::before, #contacto::before, #tematicas::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.8), rgba(120, 0, 255, 0.8), rgba(0, 200, 255, 0.8));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Títulos y párrafos comunes */
#beneficio h1, #como h1, #contacto h1, #tematicas h1, #redes h1 {
    text-align: center;
    color: #7dd3fc;
    margin-bottom: 20px;
}

#beneficio h2, #como h2, #tematicas h2, .resultado-tematica h2 {
    color: #60a5fa;
    margin-top: 25px;
    font-size: 1.1rem;
}
/* Estilo para móvil */
@media (max-width: 600px) {
    #tematicas h2,
    .resultado-tematica h2 {
        font-size: 0.65rem; /* la mitad de 1.3rem */
    }
}
@media (max-width: 600px) {
    #beneficio h2, #como h2 {
        font-size: 0.9rem; /* la mitad de 1.3rem */
    }
}
#beneficio p, #como p, #contacto p, #tematicas p, #redes p {
    color: #cbd5e1;
    line-height: 1.2;
}
@media (max-width: 600px) {
    #beneficio p, #como p{
        font-size: 0.8rem; /* la mitad de 1.3rem */
    }
}

/* ===========================
   BOTONES TEMATICAS Y NIVELES
   =========================== */
.tematicas-container, .niveles-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tema-btn, .nivel-btn {
    background: #111827;
    border: 1px solid #374151;
    color: #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s;
}

.tema-btn:hover, .nivel-btn:hover { background: #1e40af; border-color: #3b82f6; transform: scale(1.05); }
.tema-btn.active, .nivel-btn.active { background: #3b82f6; border-color: #60a5fa; }

/* Resultado trabalenguas temática */
.resultado-tematica { margin-top: 30px; background: #111827; padding: 20px; border-radius: 10px; border-left: 4px solid #3b82f6; text-align: center; }
.nav-twisters { margin-top: 15px; display: flex; justify-content: center; gap: 20px; }
.nav-twisters button { background: #1e40af; border: none; padding: 10px 15px; color: white; border-radius: 6px; cursor: pointer; transition: 0.25s; }
.nav-twisters button:hover { background: #3b82f6; transform: scale(1.1); }
#resultadoTematica p { font-size: 2rem; }
@media screen and (max-width: 768px) {
    #resultadoTematica p {
        font-size: 1rem; /* tamaño más pequeño en móviles */
    }
}
/* ===========================
   REDES SOCIALES
   =========================== */
.social-list { display: flex; flex-direction: column; gap: 15px; max-width: 350px; margin: 0 auto; }
.social-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); padding: 14px; border-radius: 10px; cursor: pointer; transition: 0.25s; border-left: 4px solid #6366f1; }
.social-item:hover { background: rgba(99,102,241,0.2); transform: translateX(6px); }
.social-item img { width: 36px; height: 36px; }
.social-item span { font-size: 1.2rem; color: #e2e8f0; }

#redes {
    position: relative;
    background: #0d1117;
    border-radius: 14px;
    padding: 40px;
    color: #e2e8f0;
	margin: 15% 15%;  /* 20% arriba y abajo, 10% a los lados */
}

/* Borde brillante suave sin esquinas */
#redes::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px; /* grosor del borde */
    background: linear-gradient(
        90deg,
        rgba(0,150,255,0),
        rgba(0,150,255,0.6),
        rgba(128,0,255,0.6),
        rgba(0,150,255,0.6),
        rgba(0,150,255,0)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
/* ===========================
   FORMULARIO CONTACTO
   =========================== */
.contact-container { 
display: flex; flex-direction: column; gap: 15px; max-width: 500px; 	
margin: 15% 15%;  /* 20% arriba y abajo, 10% a los lados */
 }
.contact-container input, .contact-container textarea {
    background: #111827;
    border: 1px solid #374151;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.25s;
}
.contact-container input:focus, .contact-container textarea:focus { border-color: #60a5fa; box-shadow: 0 0 8px rgba(96,165,250,0.5); outline: none; }
.contact-container textarea { height: 120px; resize: none; }
#sendContact { background: #1e40af; color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: 0.25s; }
#sendContact:hover { background: #3b82f6; transform: scale(1.05); }

/* ===========================
   POPUPS (MÚSICA, TEMPORIZADOR, METRÓNOMO)
   =========================== */
.popup {
    position: fixed;
    background: #161b22;
    border: 2px solid #30363d;
    padding: 15px;
    width: 240px;
    border-radius: 8px;
    z-index: 99999;
    color: #e2e8f0;
    box-shadow: 0 0 10px #00000080;
	 touch-action: none;   /* CLAVE para móviles */
	 
}
.popup:active {
  cursor: grabbing;
}

.closePopup {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #ff6b6b;
}

.popup-title { text-align: center; font-size: 1.3rem; margin-bottom: 12px; color: #e8ecff; font-weight: 600; text-shadow: 0 0 6px rgba(0,150,255,0.5); }
.popup label { margin-top: 10px; display: block; }
.popup select, .popup button, #metronomePopup input { width: 100%; margin-top: 6px; padding: 6px; background: #21262d; color: #e2e8f0; border: none; border-radius: 6px; cursor: pointer; }

/* ===========================
   HERRAMIENTAS
   =========================== */
.tools-btn {
    position: absolute;
    right: 0;
    top: 140px;
    background: #161b22;
    border: 1px solid #30363d;
    padding: 8px 12px;
    border-radius: 6px;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tools-btn:hover { background: #1f2630; }

/* ===========================
   PIE DE PÁGINA
   =========================== */
/* ===========================
   FOOTER
   =========================== */
footer {
    position: relative;
    padding: 25px 15px 15px;
    text-align: center;
    background-color: transparent;
    border-radius: 8px;
}

/* Línea superior con glow */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: linear-gradient(
        to right,
        rgba(0,150,255,0) 0%,
        rgba(0,150,255,0.8) 50%,
        rgba(0,150,255,0) 100%
    );
    filter: blur(1.5px);
    border-radius: 50px;
    pointer-events: none;
}

/* Enlaces del footer */
footer a {
    color: #8b5cf6;
    text-decoration: none;
    display: inline-block;
    margin: 4px 0;
    transition: color 0.3s ease;
}

/* ===========================
   CLASE ESPECIAL
   =========================== */
.especial {
    color: #7dd3fc;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 0 0 8px #7dd3fc;
    padding: 10px;
    border-radius: 8px;
    background: rgba(125,211,252,0.1);
}
/* ===========================
 Centrar texto
   =========================== */
.centered-text {
    display: flex;               /* Activamos Flexbox dentro del <p> */
    justify-content: center;     /* Centrado horizontal */
    align-items: center;         /* Centrado vertical si hay altura */
    text-align: center;          /* Centrado de varias líneas */
    min-height: 10px;           /* Altura mínima para centrar verticalmente */
    font-size: 1rem;           /* Tamaño de texto */

}

.cuadro {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 0 10px #000;
    transition: 0.3s;
    text-align: center;
}

.cuadro:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #444;
}

.inicio-contenedor {
    background: #1a1a1a; /* gris oscuro visible */
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;

    /* Borde azul brillante excepto en la esquina inferior derecha */
    border: 2px solid transparent;
    border-top-color: #00aaff;
    border-left-color: #00aaff;
    border-right-color: #00aaff;

    /* Sombra azul suave */
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.4);
}



/* Ajuste general para móvil */
@media (max-width: 600px) {
    .cuadro {
        padding: 15px;
        font-size: 0.9rem;
    }

    .inicio-contenedor {
        padding: 20px;
        margin: 20px auto;
    }

    h1, h2, h3 {
        font-size: 1.2rem;
    }
}
@media (max-width: 600px) {
    .grid-cuadros {
        grid-template-columns: 1fr !important;
    }
}

/* Contenedor centrado */
.selector-tematica {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    margin: 20px 0;          /* Espacio arriba y abajo */
}

/* Estilo del select */
#select-tema {
    appearance: none;          /* Quita estilo por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1f2937; /* Fondo oscuro bonito */
    color: #f9fafb;            /* Texto claro */
    border: 2px solid #4f46e5; /* Borde morado */
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

/* Flecha personalizada */
#select-tema::-ms-expand { 
    display: none; /* Quita la flecha en IE */
}

/* Hover y focus */
#select-tema:hover,
#select-tema:focus {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #6366f1;
    outline: none;
}

/* Opciones */
#select-tema option {
    padding: 10px;
    background-color: #1f2937;
    color: #f9fafb;
}

/* Menú lateral escritorio */
#menu-lateral {
    width: 250px;
    background: #222;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000; /* asegura que esté por encima */
}
/* Botón hamburguesa (oculto en escritorio) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    color: white;
}

/* Responsive: móvil */
@media screen and (max-width: 1400px) {
    #menu-lateral {
        position: fixed;
        top: 0;
        left: -260px; /* Oculto al inicio */
        transition: left 0.3s ease;
        height: 100vh;
        z-index: 999;
    }

    #menu-lateral.abierto {
        left: 0; /* Mostrar menú */
    }

    .hamburger {
        display: block;
    }
}
#resultadoTematica .progreso {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    text-align: right; /* lo alineamos a la derecha */
}
/* ===========================
   CONTENEDORES DE SELECTORES
   =========================== */
.selector-nivel, .selector-tematica {
    max-width: 300px;
    margin: 1% auto;
    text-align: center;
    position: relative;
}

/* ===========================
   SELECT BONITOS
   =========================== */
.selector-tematica select,
.selector-nivel select {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 150, 255, 0.5);
    background: linear-gradient(145deg, #1a2236, #0f1525); /* fondo oscuro degradado */
    color: #e8ecff;        /* texto blanco */
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;       /* quita flecha por defecto */
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

/* ===========================
   OPCIONES DEL SELECT
   =========================== */
.selector-tematica select option,
.selector-nivel select option {
    background-color: #1a2236; /* fondo oscuro de opciones */
    color: #e8ecff;            /* texto blanco */
}

/* ===========================
   HOVER Y SOMBRA
   =========================== */
.selector-tematica select:hover,
.selector-nivel select:hover {
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.35);
    border-color: rgba(0, 200, 255, 0.8);
}

/* ===========================
   FLECHA PERSONALIZADA
   =========================== */
.selector-tematica::after,
.selector-nivel::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #e8ecff;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 768px) {
    .selector-tematica,
    .selector-nivel {
        max-width: 90%;
    }
}
.menu-btn.trabalenguas-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #0f162b, #1a2344);
    border: 1px solid rgba(0,150,255,0.5);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0,150,255,0.2);
}

.menu-btn.trabalenguas-btn:hover {
    background: linear-gradient(145deg, #1a2344, #0f162b);
    border-color: rgba(0,200,255,0.8);
    box-shadow: 0 0 12px rgba(0,200,255,0.3);
}