/* layout.css — nav, hero, dashboard, sección pública */

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  background: #0d1117;
  border-bottom: none;
  padding: 0 2rem;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
  z-index: 10;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-piece { font-size: 24px; color: #fff; line-height: 1; }
.nav-logo-piece img { height: 36px; width: auto; display: block; }
.nav-logo-text {
  font-size: 10.5px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3;
}

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,.75); cursor: pointer; transition: color .13s; text-decoration: none; }

.btn-nav {
  background: #C9943A; color: #fff; border: none;
  padding: 8px 18px; border-radius: 8px; font-size: 13px;
  font-weight: 500; cursor: pointer; font-family: inherit;
}
.btn-nav:hover { background: #b8832c; }

.teacher-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(201,148,58,.2); color: #C9943A;
  border-radius: 20px; font-size: 11px; padding: 2px 10px; margin-left: 8px;
  border: 1px solid rgba(201,148,58,.35);
}

/* ─── Hero / Sección pública ─────────────────────────────────────────────── */
.hero { padding: 2.5rem 1.5rem 2rem; text-align: center; background-image: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7)), 
    url('./../teaching.png');background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem 2rem 2rem 2rem;}
.hero h1 { font-size: 3rem; font-weight: 500; margin-bottom: 8px; color: white; }
.hero p  { font-size: 14px; color: white; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 12px; padding: 4rem 2.5rem 4rem; height: 60vh; 
}
.pub-card { background: #f5f5f5; border: 0.5px solid rgba(0,0,0,0.12); border-radius: 12px; padding: 1rem 1.25rem;width: 60vh; }
.pub-card h3 { font-size: 14px; font-weight: 500; margin: 8px 0 4px; }
.pub-card p  { font-size: 12px; color: #666; line-height: 1.5; }

.badge { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #E6F1FB; color: #0C447C; }
.badge.green { background: #EAF3DE; color: #27500A; }
.badge.amber { background: #FAEEDA; color: #633806; }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.welcome-bar {
  border-radius: 8px; padding: 10px 1rem;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem;
}
.welcome-bar.student { background: #E6F1FB; border: 0.5px solid #B5D4F4; }
.welcome-bar.teacher { background: #EAF3DE; border: 0.5px solid #C0DD97; }
.welcome-bar span { font-size: 13px; }
.welcome-bar.student span { color: #0C447C; }
.welcome-bar.teacher span { color: #27500A; }

.btn-logout { background: none; border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.welcome-bar.student .btn-logout { border: 0.5px solid #B5D4F4; color: #185FA5; }
.welcome-bar.teacher .btn-logout { border: 0.5px solid #C0DD97; color: #3B6D11; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.dash-card {
  background: #e7f288fb; border: 0.5px solid rgba(0,0,0,0.12); border-radius: 12px;
  padding: 1rem 1.25rem; cursor: pointer; transition: border-color .15s; height: 30vh;
  box-shadow: 5px 25px 25px 1px rgba(0, 0, 0, 0.463);
}
.dash-card:hover { background:#cfbdf3;border-color: rgba(0,0,0,.3); }
.dash-card h4 { font-size: 13px; font-weight: 500; margin: 8px 0 6px; }
.dash-card p  { font-size: 12px; color: #1c0f0f; line-height: 1.5; }

/* ─── Próximas clases (alumno) ───────────────────────────────────────────── */
.upcoming-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.upcoming-item { background: #f9f9f6; border: 0.5px solid rgba(0,0,0,.08); border-radius: 8px; padding: 8px 12px; }
.upcoming-item .up-date  { font-size: 11px; color: #888; }
.upcoming-item .up-title { font-size: 13px; font-weight: 500; margin-top: 2px; }
.upcoming-item .up-note  { font-size: 12px; color: #666; margin-top: 2px; }

/* ─── Página de Contacto ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside { display: flex; flex-direction: column; }

.contact-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.contact-card-title {
  font-size: 14px; font-weight: 500; margin-bottom: 1rem; color: #222;
}

.contact-info-list { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.ci-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ci-label { font-size: 11px; color: #999; margin-bottom: 1px; }
.ci-value { font-size: 13px; color: #222; }

.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.social-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  border: 0.5px solid rgba(0,0,0,.15); cursor: pointer;
  text-decoration: none; color: #444; transition: background .12s, color .12s;
}
.social-btn:hover { background: #f0f0f0; }
.social-yt { border-color: #e53030; color: #e53030; }
.social-yt:hover { background: #ffeaea; }
.social-ig { border-color: #c13584; color: #c13584; }
.social-ig:hover { background: #fff0f8; }
.social-lc { border-color: #785a00; color: #785a00; }
.social-lc:hover { background: #fffbe6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2.5rem; }
.faq-item {
  border: 0.5px solid rgba(0,0,0,.12);
  border-radius: 10px; overflow: hidden;
  background: #fff;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #222;
  user-select: none; gap: 12px;
}
.faq-q:hover { background: #fafafa; }
.faq-chevron {
  font-size: 10px; color: #aaa; flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px; color: #555; line-height: 1.65;
  border-top: 0.5px solid rgba(0,0,0,.06);
}
.faq-item.open .faq-a { display: block; }

/* Estilos de nav link activo */
.nav-links a:hover { color: #185FA5; }

/* ─── Área personal alumno ───────────────────────────────────────────────── */

#viewStudentDash, #viewTeacherDash { background: #f0f2f7; }
#viewStudentDash.active, #viewTeacherDash.active { display: flex; }

/* ─── Visor de tareas del alumno ────────────────────────────────────────── */
#viewStudentTaskViewer { background: #f0f2f7; }
#viewStudentTaskViewer.active { display: flex; }

.task-viewer-header {
  justify-content: flex-start;
  gap: 14px;
  padding: 0 1.25rem;
}
.task-viewer-back {
  background:#1a1f3c; border: 0.5px solid rgba(0,0,0,.15); border-radius: 8px;
  padding: 5px 12px; font-size: 14px; color: #ffffff; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; font-family: inherit;
}
.task-viewer-back:hover { background: #1a1f3cda; border-color: rgba(26, 30, 56, 0.56); }

.task-viewer-title-bar { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.task-viewer-title { font-size: 15px; font-weight: 600; color: #1a1f3c; }
.task-viewer-desc  { font-size: 12px; color: #999; }

.task-viewer-main-content { padding: 1rem 1.25rem 1.5rem; }

/* ─── Vistas secundarias del profesor ───────────────────────────────────── */
#viewTeacherTasks,
#viewTeacherCalendar,
#viewTeacherStudents,
#viewTeacherResponses,
#viewTeacherResponseTasks,
#viewTeacherBadges,
#viewTeacherMessages { background: #f0f2f7; }

#viewTeacherTasks.active,
#viewTeacherCalendar.active,
#viewTeacherStudents.active,
#viewTeacherResponses.active,
#viewTeacherResponseTasks.active,
#viewTeacherBadges.active,
#viewTeacherMessages.active { display: flex; }

#viewStudentBadges { background: #f0f2f7; }
#viewStudentBadges.active { display: flex; }

#viewStudentGames { background: #f0f2f7; }
#viewStudentGames.active { display: flex; }

#viewStudentGameEditor { background: #f0f2f7; }
#viewStudentGameEditor.active { display: flex; }

/* Título de sección en la cabecera de vistas del profesor */
.teacher-sub-page-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1f3c;
  margin-right: auto;
}

/* Botones de acción en la cabecera de la vista de alumnos */
.teacher-sub-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.student-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.student-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #1a1f3c;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 1.25rem;
  border-bottom: 0.5px solid rgba(255,255,255,.08);
}

.sidebar-brand-icon { font-size: 26px; line-height: 1; }
.sidebar-brand-icon img { height: 36px; width: auto; display: block; }

.sidebar-brand-text {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #1a1f3c;
  text-align: center;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #1a1f3c;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0.75rem;
  height: 40px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.sidebar-link pre { display: none; }

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
}

.sidebar-link.active {
  background: #fff;
  color: #1a1f3c;
  font-weight: 600;
  border-radius: 8px;
}

.sidebar-link-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  flex-shrink: 0;
  border-top: 0.5px solid rgba(255,255,255,.08);
  padding: 0.5rem 0.55rem;
}

.sidebar-logout-link {
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 10px;
}
.sidebar-logout-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* ── Sidebar colapso ─────────────────────────────────────── */
.student-sidebar {
  transition: width 0.22s cubic-bezier(.4,0,.2,1) smooth;
  overflow: hidden;
}

.sidebar-collapse-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.3);
  padding: 4px 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
}
.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.sidebar-collapse-btn .collapse-icon {
  display: block;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}

/* Estado colapsado */
.student-sidebar.collapsed {
  width: 56px;
}
.student-sidebar.collapsed .sidebar-brand {
  justify-content: center;
  gap: 0;
  padding: 1.1rem 0;
}
.student-sidebar.collapsed .sidebar-brand-text { display: none; }
.student-sidebar.collapsed .sidebar-collapse-btn {
  margin-left: 0;
  padding: 4px;
}
.student-sidebar.collapsed .sidebar-collapse-btn .collapse-icon {
  transform: rotate(180deg);
}
.student-sidebar.collapsed .sidebar-nav { padding: 0.5rem 0.35rem; }
.student-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0;
  font-size: 0;
  gap: 0;
}
.student-sidebar.collapsed .sidebar-link-icon {
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.student-sidebar.collapsed .sidebar-footer { padding: 0.5rem 0.35rem; }

/* Main */
.student-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f0f2f7;
}

/* Header */
.student-header {
  background: #fff;
  border-bottom: 0.5px solid rgba(0,0,0,.08);
  padding: 0 1.75rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  gap: 1.25rem;
  flex-shrink: 0;
}

.student-header-bell {
  position: relative;
  cursor: pointer;
  color: #666;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.student-header-bell:hover { background: rgba(0,0,0,.06); color: #1a1f3c; }
.student-header-bell.has-notif { color: #1a1f3c; }

.notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #e53030;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  line-height: 1;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 200;
  overflow: hidden;
  cursor: default;
}

.notif-panel-header {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 16px 8px;
  border-bottom: 0.5px solid rgba(0,0,0,.08);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,.06);
  transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(0,0,0,.025); }

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-icon.red    { background: #fde8e8; }
.notif-icon.amber  { background: #fef3cd; }
.notif-icon.blue   { background: #e6f1fb; }
.notif-icon.green  { background: #eaf3de; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 500; color: #1a1f3c; line-height: 1.35; }
.notif-sub   { font-size: 11px; color: #888; margin-top: 2px; line-height: 1.4; }

.notif-dismiss {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #bbb;
  padding: 2px 4px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.notif-item:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { color: #c0392b; }

.notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 13px;
  color: #bbb;
}

.student-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.student-header-user:hover .student-avatar { opacity: .85; }

.student-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #185FA5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Content area */
.student-content {
  padding: 1.75rem 2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
}

.student-welcome-section { margin-bottom: 1.5rem; }

.student-welcome-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f3c;
  margin-bottom: 4px;
}

.student-welcome-sub { font-size: 14px; color: #5b5b5b; }

/* Cards (alumno y profesor comparten estilos) */
#viewStudentDash .dash-grid,
#viewTeacherDash .dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

#viewStudentDash .dash-card,
#viewTeacherDash .dash-card {
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.278);
  height: auto;
  cursor: default;
  transition: box-shadow .15s;
  display: flex;
  flex-direction: column;
}

#viewStudentDash .dash-card:hover,
#viewTeacherDash .dash-card:hover {
  background: #f3f2f2c4;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.11);
}

#viewStudentDash .dash-card-icon,
#viewTeacherDash .dash-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1;
}

#viewStudentDash .dash-card h4,
#viewTeacherDash .dash-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1f3c;
  margin: 0 0 6px;
}

#viewStudentDash .dash-card p,
#viewStudentDash .dash-card .dash-card-stat,
#viewTeacherDash .dash-card p,
#viewTeacherDash .dash-card .dash-card-stat {
  font-size: 14px;
  color: #5b5b5b;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

#viewStudentDash .dash-card #studentNextClassContent {
  flex: 1;
}

.dash-card-btn {
  margin-top: 14px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: opacity .13s;
}

.dash-card-btn:hover { opacity: .85; }
.dash-card-btn.dark   { background: #1a1f3c; color: #fff; }
.dash-card-btn.golden { background: #9a7c2a; color: #fff; }
.dash-card-btn.olive  { background: #4a5d2a; color: #fff; }
.dash-card-btn.purple  { background: #8d4d8f; color: #fff; }

/* Pending tasks section */
.student-section {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 2.5px 2.5px 2.5px 1.25px rgba(0, 0, 0, 0.262);
}

.student-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1f3c;
  margin-bottom: 1rem;
}

.pending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(0,0,0,.06);
}

.pending-item:last-child { border-bottom: none; padding-bottom: 0; }

.pending-item-icon {
  width: 32px;
  height: 32px;
  background: #f0f2f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.pending-item-info { flex: 1; min-width: 0; }

.pending-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-item-due { font-size: 12px; color: #5b5b5b; margin-top: 2px; }

.meet-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  background: #1a1f3c;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.meet-btn:hover { background: #1558b0; }

.pending-empty {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  padding: 1.5rem 0;
}

/* ─── Página de login (vista completa) ───────────────────────────────────── */

#viewLogin { background: #fff; }
#viewLogin.active { display: flex; }

.login-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Panel izquierdo */
.login-left {
  flex: 1.3;
  background:
    linear-gradient(135deg, rgba(8,10,22,0.97) 0%, rgba(14,19,48,0.96) 100%),
    url('./../teaching.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
}

.login-logo-icon { font-size: 26px; color: #fff; line-height: 1; }
.login-logo-icon img { height: 36px; width: auto; display: block; }

.login-logo-text {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.login-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.login-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.login-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}

.lf-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  color: rgba(255,255,255,.75);
}

.login-back {
  background: none;
  border: none;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: left;
  transition: color .13s;
  margin-top: 1rem;
}

.login-back:hover { color: rgba(255,255,255,.7); }

/* Panel derecho */
.login-right {
  flex: 0.9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.login-form-box { width: 100%; max-width: 360px; }

.login-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2rem;
}

.login-form-box .field { margin-bottom: 1.25rem; }

.login-form-box .field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 7px;
  font-weight: 400;
}

.login-form-box .field input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: #fff;
}

.login-form-box .field input:focus { border-color: #C9943A; }

.login-pass-wrap { position: relative; }
.login-pass-wrap input { padding-right: 42px; }

.login-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #aaa;
  padding: 2px;
  line-height: 1;
  transition: color .13s;
}

.login-pass-toggle:hover { color: #666; }

.login-forgot {
  display: block;
  font-size: 13px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  transition: color .13s;
}

.login-forgot:hover { color: #555; }

.btn-login-submit {
  width: 100%;
  padding: 13px;
  background: #C9943A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  margin-bottom: 1.5rem;
}

.btn-login-submit:hover { background: #b8832c; }
.btn-login-submit:disabled { opacity: .6; cursor: not-allowed; }

.login-contact-hint {
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.login-contact-hint span {
  color: #185FA5;
  cursor: pointer;
  font-weight: 500;
}

.login-contact-hint span:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .login-left  { display: none; }
  .login-right { flex: 1; }
}

/* ─── Landing page ───────────────────────────────────────────────────────── */

#viewPublic { background: #0d1117; }
.nav-links a:hover { color: #fff; }

/* Hero */
.lp-hero {
  background:
    linear-gradient(to right, rgba(5,8,18,0.94) 30%, rgba(5,8,18,0.55) 65%, rgba(5,8,18,0.25) 100%),
    url('./../teaching.png');
  background-size: cover;
  background-position: center right;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 5rem 6vw;
}

.lp-hero-inner { max-width: 600px; }

.lp-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}

.lp-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.lp-accent { color: #C9943A; }

.lp-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.lp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.lp-btn-outline {
  padding: 11px 26px;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.lp-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.lp-btn-ghost {
  padding: 11px 26px;
  border: none;
  color: rgba(255,255,255,.65);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}
.lp-btn-ghost:hover { color: #fff; }

/* Features */
.lp-features {
  background: #f9fafb;
  padding: 5rem 2rem;
  text-align: center;
}

.lp-features-inner { max-width: 960px; margin: 0 auto; }

.lp-section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 3rem;
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
}

.lp-feat-card { text-align: center; }

.lp-feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.2rem;
  background: rgba(201, 148, 58, 0.08);
  border-radius: 50%;
}

.lp-feat-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.lp-feat-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  max-width: 200px;
  margin: 0 auto;
}

/* Testimonials */
.lp-testimonials {
  background: #f9fafb;
  padding: 5rem 2rem;
  text-align: center;
}

.lp-testimonials-inner { max-width: 960px; margin: 0 auto; }

.lp-testimonials-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #C9943A;
  margin-bottom: 1rem;
}

.lp-testimonials-title { margin-bottom: 1rem; }

.lp-testimonials-sub {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.lp-testimonial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.lp-stars {
  font-size: 1.3rem;
  color: #C9943A;
  letter-spacing: 2px;
}

.lp-testimonial-quote {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.lp-testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.lp-testimonials-cta { display: flex; justify-content: center; }

/* About */
.lp-about { background: #fff; padding: 5rem 2rem; }

.lp-about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.lp-about-img {
  flex: 0 0 auto;
  width: 42%;
  
}

.lp-about-img img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.lp-about-text { flex: 1; }

.lp-about-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 1.25rem;
}

.lp-about-text p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.lp-btn-dark {
  display: inline-block;
  padding: 10px 24px;
  border: 1.5px solid #111;
  border-radius: 8px;
  color: #111;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5rem;
  transition: background .15s, color .15s;
}
.lp-btn-dark:hover { background: #111; color: #fff; }

/* Newsletter */
.lp-newsletter { background: #0d1117; padding: 4rem 2rem; }

.lp-nl-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.lp-nl-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.lp-nl-icon {
  font-size: 1.5rem;
  background: rgba(201,148,58,.12);
  border: 1.5px solid rgba(201,148,58,.3);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C9943A;
}

.lp-nl-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.lp-nl-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
  max-width: 300px;
}

.lp-nl-form { display: flex; gap: 8px; flex-wrap: wrap; }

.lp-nl-form input {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,.06);
  color: #fff;
  width: 240px;
  outline: none;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .13s;
}
.lp-nl-form input::placeholder { color: rgba(255,255,255,.25); }
.lp-nl-form input:focus { border-color: #C9943A; }

.lp-nl-form button {
  padding: 11px 22px;
  background: #C9943A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.lp-nl-form button:hover { background: #b8832c; }

/* Footer */
.lp-footer {
  background: #080b12;
  padding: 2.25rem 2rem 1.5rem;
  border-top: 0.5px solid rgba(255,255,255,.05);
}

.lp-footer-inner {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.lp-footer-logo { display: flex; align-items: center; gap: 10px; }
.lp-footer-logo-icon img { height: 36px; width: auto; display: block; }
.lp-footer-logo-text {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.lp-footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.lp-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  text-decoration: none;
  transition: color .13s;
}
.lp-footer-nav a:hover { color: #fff; }

.lp-footer-social { display: flex; gap: 14px; }
.lp-social-link {
  font-size: 16px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .13s;
  cursor: pointer;
}
.lp-social-link:hover { color: #fff; }

.lp-footer-copy {
  max-width: 960px;
  margin: 0 auto;
  font-size: 11px;
  color: rgba(255,255,255,.2);
  text-align: center;
  border-top: 0.5px solid rgba(255,255,255,.05);
  padding-top: 1rem;
}

/* Responsive landing */
@media (max-width: 768px) {
  .lp-hero { padding: 4rem 1.5rem; }
  .lp-about-inner { flex-direction: column; gap: 2rem; }
  .lp-about-img { width: 100%; }
  .lp-nl-inner { flex-direction: column; }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ─── Página de contacto ─────────────────────────────────────────────────── */

#viewContact { background: #f0f2f7; }

/* Cabecera oscura */
.ct-header {
  background: #0d1117;
  padding: 3rem 2rem 4rem;
}

.ct-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #C9943A;
  margin-bottom: 0.85rem;
}

.ct-header-inner { max-width: 900px; margin: 0 auto; }

.ct-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: color .13s;
}
.ct-back:hover { color: rgba(255,255,255,.85); }

.ct-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.ct-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 520px;
}

/* Cuerpo */
.ct-body {
  background: #f0f2f7;
  padding: 2.5rem 2rem 4rem;
  margin-top: -2rem;
  border-radius: 24px 24px 0 0;
}

.ct-inner { max-width: 900px; margin: 0 auto; }

.ct-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 2.5rem;
}

@media (max-width: 680px) { .ct-grid { grid-template-columns: 1fr; } }

.ct-aside { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.ct-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ct-social-card { margin: 0; }

.ct-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1f3c;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f2f5;
}

/* Campos del formulario */
.ct-field { margin-bottom: 1rem; }

.ct-field label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #111;
  transition: border-color .13s;
  resize: vertical;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus { border-color: #C9943A; }

.ct-field textarea { height: 110px; }

.ct-submit {
  width: 100%;
  padding: 12px;
  background: #C9943A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  transition: background .15s;
}
.ct-submit:hover { background: #b8832c; }

/* Info de contacto */
.ct-info-list { display: flex; flex-direction: column; gap: 16px; }

.ct-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ct-info-icon {
  width: 36px;
  height: 36px;
  background: #fef5e7;
  color: #C9943A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ct-info-label { font-size: 11px; color: #aaa; margin-bottom: 2px; }
.ct-info-value { font-size: 13px; color: #222; font-weight: 500; }
.ct-info-value a { color: inherit; text-decoration: none; }
.ct-info-value a:hover { text-decoration: underline; }
.ct-wa-icon { background: #edfaf3; color: #25D366; text-decoration: none; transition: background .12s; }
.ct-wa-icon:hover { background: #d6f5e7; }

/* Redes sociales */
.ct-social-row { display: flex; gap: 8px; flex-wrap: wrap; }

.ct-social-btn {
  padding: 7px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #555;
  background: none;
  transition: background .12s, border-color .12s;
  font-family: inherit;
}
.ct-social-btn:hover { background: #f5f5f5; border-color: rgba(0,0,0,.25); }
.ct-yt  { border-color: #e53030; color: #e53030; }
.ct-yt:hover  { background: #fff0f0; }
.ct-ig  { border-color: #c13584; color: #c13584; }
.ct-ig:hover  { background: #fff0f8; }
.ct-lc  { border-color: #785a00; color: #785a00; }
.ct-lc:hover  { background: #fffbe6; }

/* FAQ */
.ct-faq-section { margin-top: 1rem; }

.ct-faq-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1f3c;
  margin-bottom: 1.25rem;
}

/* Sobreescribir faq-q/faq-a para fondo blanco en este contexto */
.ct-faq-section .faq-q { background: #fff; }
.ct-faq-section .faq-q:hover { background: #fafafa; }
.ct-faq-section .faq-a { background: #fff; }

/* ─── Nav hamburger ──────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.75);
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  align-items: center;
}
.nav-hamburger:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ─── Sidebar overlay (móvil) ────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
  cursor: pointer;
}
.sidebar-overlay.active { display: block; }

/* ─── Botón hamburger del header de alumno ───────────────────────────────── */
.student-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  align-items: center;
  margin-right: auto;
}
.student-mobile-toggle:hover { background: rgba(0,0,0,.06); }

/* ─── Responsive nav (hamburger) ─────────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0 1rem; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0d1117;
    flex-direction: column;
    align-items: flex-start;
    padding: .5rem 1.25rem 1rem;
    gap: 0;
    border-bottom: .5px solid rgba(255,255,255,.1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 11px 0;
    font-size: 15px;
    width: 100%;
    border-bottom: .5px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .btn-nav {
    width: 100%;
    text-align: center;
    padding: 10px 18px;
    margin-top: 8px;
    font-size: 14px;
  }

  /* Hero: gradiente más oscuro para legibilidad en vertical */
  .lp-hero {
    background-image:
      linear-gradient(rgba(5,8,18,.82) 0%, rgba(5,8,18,.78) 100%),
      url('./../teaching.png');
    background-position: center center;
    padding: 3rem 1.25rem;
    min-height: 80vh;
  }

  /* Newsletter full width en móvil */
  .lp-nl-form { flex-direction: column; width: 100%; }
  .lp-nl-form input { width: 100%; }
  .lp-nl-form button { width: 100%; }

  /* Blog padding reducido */
  .blog-body { padding: 1.5rem 1rem 3rem; }
  .bp-body   { padding: 0 1rem 3rem; }
  .bp-text   { padding: 1.25rem; }
}

/* ─── Responsive sidebar de alumno (tablet y móvil) ─────────────────────── */
@media (max-width: 768px) {
  .student-sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    height: 100%;
    z-index: 300;
    transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .student-sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.45);
  }
  .student-sidebar.collapsed              { left: -66px; }
  .student-sidebar.collapsed.mobile-open  { left: 0; }

  .student-mobile-toggle { display: flex; }
  .student-header-bell   { display: none; }

  .student-content { padding: 1rem 1rem 2rem; }
  .student-header  { padding: 0 1rem; gap: .75rem; }

  .student-welcome-title { font-size: 20px; }

  #viewStudentDash .dash-grid,
  #viewTeacherDash .dash-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .student-content { padding: .75rem .75rem 2rem; }
  .student-header  { padding: 0 .75rem; }
  .student-welcome-title { font-size: 18px; }

  #viewStudentDash .dash-grid,
  #viewTeacherDash .dash-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}