/*MyFilemon%25@2025*/
/**************************************************************
 * FL Alevín "A" 2025/26 – Hoja de estilo unificada
 * ----------------------------------------------------------
 * • Paleta principal: Turquesa #00bcd4 | Turquesa osc. #0097a7
 * • Fondo general: Gris muy oscuro #222
 * • Fondos secundarios: #111 | #333
 * • Texto principal: #eee | Texto tenue: #bbb / #888
 *
 * NOTA
 * ----
 * 1) Todas las clases se agrupan por secciones para facilitar
 *    su localización.
 * 2) `.form-container / .form-box / .form-card` reemplazan al
 *    antiguo `.login-zone / .form-login` para que el diseño de
 *    formularios sea reutilizable en cualquier parte del sitio.
 **************************************************************/

/*--------------------------------------------------------------
 # 1. RESET & GLOBALES
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #222;
  color: #eee;
}

/*--------------------------------------------------------------
 # 2. ENCABEZADO
--------------------------------------------------------------*/
header {
  background: #00bcd4;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-menu {
  display: none;
  background: #fff;
  color: #00bcd4;
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
}

/*--------------------------------------------------------------
 # 3. DISEÑO PRINCIPAL (SIDEBAR + CONTENIDO)
--------------------------------------------------------------*/
.container {
  display: flex;
  min-height: 100vh;
}

/*== Menú lateral =================================================*/
.menu-lateral {
  width: 30%;
  background: #111;
  padding: 20px;
  border-right: 2px solid #444;
  overflow-y: auto;
}

.menu-buscador {
  margin-bottom: 1em;
}

.buscador-wrapper {
  display: flex;
  gap: .5em;
  align-items: center;
}

.buscador-wrapper input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  background: #333;
  color: #eee;
}

.buscador-wrapper input::placeholder {
  color: #aaa;
}

#clear-buscador {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.3em;
  cursor: pointer;
}

#clear-buscador:hover {
  color: #fff;
}

.menu-lateral h3 {
  margin-bottom: 10px;
  color: #00bcd4;
  font-size: 18px;
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.menu-lateral li {
  padding: 12px;
  margin-bottom: 6px;
  background: #333;
  border-radius: 6px;
  cursor: pointer;
}

.menu-lateral li:hover {
  background: #555;
}

.menu-lateral li.activo {
  background: #00bcd4;
  color: #111;
}

/*== Zona de vídeo ===============================================*/
.video-zone {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-header {
  width: 90%;
  max-width: 800px;
  background: #111;
  color: #00bcd4;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.video-header a {
  color: #00bcd4;
  text-decoration: none;
}

.video-header a:hover {
  text-decoration: underline;
}

video {
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 0 25px #000;
  background: #000;
}

.video-footer {
  margin-top: 10px;
  font-size: .9em;
  color: #bbb;
  text-align: center;
}

/*--------------------------------------------------------------
 # 4. BANNER SUPERIOR
--------------------------------------------------------------*/
.banner-superior {
  background: linear-gradient(to right,#00bcd4,#0097a7);
  color: #fff;
  text-align: center;
  border-bottom: 2px solid #007b8a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contenido-banner h1 {
  margin: 0;
  font-size: 24px;
}

.contenido-banner p {
  margin: 5px 0 0;
  font-size: 16px;
  color: #e0f7fa;
}

.img-banner {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/*--------------------------------------------------------------
 # 5. FORMULARIOS REUTILIZABLES
--------------------------------------------------------------*/
.form-container {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #222;
  padding: 20px;
}

.form-box {
  width: 100%;
  max-width: 420px;
}

.form-card {
  background: #111;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  text-align: center;
  color: #eee;
}

.form-card h2 {
  margin-bottom: 10px;
  color: #00bcd4;
  font-size: 22px;
}

.form-subtitle {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 25px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
}

.input-group input {
  width: 100%;
  padding: 10px 10px 10px 38px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #eee;
}

.input-group input::placeholder {
  color: #aaa;
}

.form-box button {
  width: 100%;
  background: #00bcd4;
  color: #111;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-box button:hover {
  background: #0097a7;
}

.form-error {
  margin-top: 15px;
  color: #f44336;
  font-size: 14px;
}

/*--------------------------------------------------------------
 # 6. SNACK BAR
--------------------------------------------------------------*/
#snackbar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1e80b6;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 17px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

#snackbar.mostrar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/*--------------------------------------------------------------
 # 7. MENÚ EJERCICIOS EN CASCADA
--------------------------------------------------------------*/
.menu-horizontal {
  background: #111;
  padding: 12px 20px;
  border-bottom: 2px solid #444;
}

.menu-horizontal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-horizontal > ul {
  display: flex;
  gap: 20px;
}

.menu-item {
  position: relative;
  padding: 10px 15px;
  background: #333;
  color: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.menu-item:hover {
  background: #00bcd4;
  color: #111;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left:100%; background: #111; border: 2px solid #444; border-radius: 8px; padding: 10px; z-index: 1000; min-width: 240px; }

.menu-item:hover .submenu { display: block; }

/* Subcategorías */ .submenu-categoria { position: relative; padding: 8px; background: #222; color: #eee; margin-bottom: 6px; border-radius: 6px; }

.submenu-categoria:hover { background: #00bcd4; color: #111; }

/* Submenú de vídeos */ .submenu-videos { display: none; position: absolute; top: 0; left: 100%; background: #111; border: 2px solid #444; border-radius: 8px; padding: 10px; min-width: 200px; }

.submenu-categoria:hover .submenu-videos { display: block; }

.submenu-videos li { background: #333; padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; color: #eee; cursor: pointer; white-space: nowrap; }

.submenu-videos li:hover { background: #555; }

/*--------------------------------------------------------------

8. ESTILO PARA EL TEXTO DE PASSWORD
--------------------------------------------------------------*/ 
.password-info {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}
.password-info i {
  margin-right: 4px;
  color: #007bff;
}


/*--------------------------------------------------------------

9. RESPONSIVE CASCADA
--------------------------------------------------------------*/ 
@media screen and (max-width: 768px) { .menu-horizontal > ul { flex-direction: column; gap: 10px; }

.submenu, .submenu-videos { position: static; display: none; padding: 0; border: none; border-radius: 0; }

.menu-item:focus-within .submenu, .submenu-categoria:focus-within .submenu-videos { display: block; }

.submenu-categoria, .submenu-videos li { padding: 10px; font-size: 15px; } }