:root {
  --mec-fucsia: #E5006D;
  --mec-azul: #0D47A1;
  --mec-cian: #00BCD4;
  --mec-amarillo: #FFD54F;
  --mec-fondo: #F8F9FA;
  --mec-blanco: #FFFFFF;
  --radio: 15px;
  --sombra: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: var(--mec-fondo); color: #333; }

header { background: var(--mec-fucsia); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: var(--sombra); }
.logo { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.logo-circle { background: white; color: var(--mec-fucsia); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.container { max-width: 1100px; margin: 20px auto; padding: 0 15px; }

.hero-box { background: white; border-radius: 20px; padding: 40px 20px; text-align: center; margin-bottom: 30px; box-shadow: var(--sombra); border-bottom: 5px solid var(--mec-fucsia); }
.hero-box h1 { color: var(--mec-fucsia); font-family: 'Fredoka'; font-size: 2.5rem; }

.grid-materias { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card-materia { background: white; border-radius: var(--radio); padding: 30px; text-align: center; text-decoration: none; color: inherit; box-shadow: var(--sombra); border-top: 6px solid var(--mec-fucsia); transition: 0.3s; }
.card-materia:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.card-materia.comu { border-top-color: var(--mec-cian); }

.unidad-card { background: white; border-radius: var(--radio); padding: 20px; margin-bottom: 20px; box-shadow: var(--sombra); border-left: 8px solid var(--mec-fucsia); }
.grid-clases { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 15px; }
.clase-item { background: #fdfdfd; border: 1px solid #eee; border-radius: 12px; padding: 15px; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 10px; transition: 0.2s; font-size: 0.9rem; font-weight: bold; }
.clase-item:hover { border-color: var(--mec-fucsia); background: #fff5f8; }
.clase-item.done { background: #e8f5e9; border-color: #c8e6c9; }
.clase-num { background: var(--mec-fucsia); color: white; width: 30px; height: 35px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.tabs { display: flex; background: white; border-bottom: 2px solid #eee; }
.tab-btn { flex: 1; padding: 15px; border: none; background: none; font-family: 'Fredoka'; cursor: pointer; color: #888; font-weight: bold; border-bottom: 4px solid transparent; }
.tab-btn.active { color: var(--mec-fucsia); border-bottom-color: var(--mec-fucsia); background: #fff5f8; }

.panel-content { display: none; padding: 20px; }
.panel-content.active { display: block; animation: fadeIn 0.3s; }

.tutorial-box { background: white; padding: 25px; border-radius: 15px; box-shadow: var(--sombra); }
.tip-box { background: #fffde7; border-left: 5px solid var(--mec-amarillo); padding: 15px; border-radius: 10px; margin: 15px 0; }
.btn-mec { background: var(--mec-fucsia); color: white; border: none; padding: 12px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 0 var(--mec-fucsia-oscuro); font-family: 'Fredoka'; }
.btn-mec:active { transform: translateY(3px); box-shadow: none; }

.chat-box { background: #2d3436; color: white; border-radius: 15px; padding: 20px; margin-top: 20px; }
.puntos-badge { position: fixed; bottom: 20px; right: 20px; background: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; box-shadow: 0 5px 20px rgba(0,0,0,0.2); border: 2px solid var(--mec-amarillo); z-index: 1000; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
