/* RESET */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0f172a;
  color: white;
}

/* HEADER PUBLICO */
.public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-top {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: #93c5fd;
  text-transform: uppercase;
}

.public-header h2 {
  margin: 5px 0 0;
}

/* NAV */
.public-nav {
  display: flex;
  gap: 12px;
}

/* HERO */
.hero {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 46px;
  line-height: 1.2;
}

.hero p {
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 18px;
  line-height: 1.6;
}

/* BOTONES */
.btn {
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  margin: 8px;
  font-weight: bold;
  transition: 0.2s;
}

.btn-main {
  background: #2563eb;
  color: white;
}

.btn-main:hover {
  background: #1d4ed8;
}

.btn-alt {
  background: #1e293b;
  color: white;
}

.btn-alt:hover {
  background: #334155;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
}

/* SECCIONES */
.section {
  padding: 60px 40px;
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #020617;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  background: #172554;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: #94a3b8;
  line-height: 1.5;
}

/* LOGIN */
#loginModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-box {
  background: #020617;
  padding: 30px;
  border-radius: 12px;
  width: 320px;
  border: 1px solid #1e293b;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

/* DASHBOARD */
#dashboard {
  display: none;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  width: 240px;
  height: 100vh;
  background: #020617;
  border-right: 1px solid #1e293b;
  padding: 25px 18px;
}

.sidebar a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.sidebar a:hover,
.sidebar a.active {
  background: #1e293b;
  color: white;
}

/* CONTENIDO */
.dashboard-content {
  margin-left: 240px;
  padding: 30px;
}

/* PANEL */
.panel {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

/* TEMARIO */
.temario-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.tema-btn {
  width: 100%;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 10px;
  margin-bottom: 10px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.tema-btn:hover {
  background: #1d4ed8;
}

/* PROGRESO */
#panelProgresoAlumno {
  background: #020617;
  padding: 15px;
  border-radius: 10px;
}

/* LISTAS */
ul {
  padding-left: 20px;
  margin: 0;
}

/* MODALES PUBLICOS */
.modal-publico {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-box-publico {
  background: #020617;
  padding: 25px;
  border-radius: 12px;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box-publico input,
.modal-box-publico textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  color: white;
  border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .dashboard-content {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 32px;
  }
}

/* AVISO (ARREGLADO PARA CHROME) */
.aviso-companeros {
  background: #3b0a0a;
  border: 2px solid #ef4444;
  color: white;
  animation: parpadeo 1.5s infinite alternate;
}

@keyframes parpadeo {
  from { border-color: red; }
  to { border-color: white; }
}

.aviso-companeros h2 {
  color: #ff4d4d;
}

.aviso-companeros p {
  color: #ffd7d7;
}
.brand-block h2 {
  margin: 6px 0 0;
  font-size: 40px;
  line-height: 1;
}

.hero-modern {
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.18), transparent 35%),
    linear-gradient(135deg, #081225 0%, #0f172a 45%, #111827 100%);
  padding: 90px 40px 70px;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
  font-size: 15px;
}

.hero-modern h1 {
  max-width: 1100px;
  margin: 0 auto 22px;
  font-size: 68px;
  line-height: 1.05;
  font-weight: 800;
  color: #f8fafc;
}

.hero-subtitle {
  max-width: 920px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.7;
  color: #94a3b8;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-soft {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.section-title-block {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title-block h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 42px;
  color: #f8fafc;
}

.section-title-block p {
  margin: 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.98));
  border: 1px solid #22304a;
  border-radius: 22px;
  padding: 28px;
  min-height: 250px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.feature-card-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.82));
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.feature-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.15;
  color: #ffffff;
}

.feature-card p {
  margin: 0;
  color: #dbe4f0;
  font-size: 18px;
  line-height: 1.7;
}

.includes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.include-box {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #e2e8f0;
}

.trust-section {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.trust-panel {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid #1e293b;
  border-radius: 24px;
  padding: 40px 30px;
}

.trust-panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 44px;
}

.trust-panel p {
  max-width: 850px;
  margin: 0 auto 16px;
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1.8;
}

.cta-section {
  padding-top: 30px;
  padding-bottom: 70px;
}

.cta-panel-public {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, #081225, #0b1220);
  border: 1px solid #22304a;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
}

.cta-panel-public h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 44px;
}

.cta-panel-public p {
  max-width: 800px;
  margin: 0 auto 26px;
  color: #94a3b8;
  font-size: 19px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .hero-modern h1 {
    font-size: 56px;
  }

  .feature-grid,
  .includes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .brand-block h2 {
    font-size: 28px;
  }

  .hero-modern {
    padding: 60px 20px 45px;
  }

  .hero-modern h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title-block h2,
  .trust-panel h2,
  .cta-panel-public h2 {
    font-size: 32px;
  }

  .feature-grid,
  .includes-grid {
    grid-template-columns: 1fr;
  }

  .feature-card h3 {
    font-size: 26px;
  }

  .feature-card p,
  .trust-panel p {
    font-size: 18px;
  }
}
body {
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.10), transparent 22%),
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.06), transparent 20%),
    linear-gradient(180deg, #050b16 0%, #081121 38%, #091425 100%);
  color: #f8fafc;
}

.public-header {
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.brand-top {
  color: #9cc4ff;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-block h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-modern {
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(96, 165, 250, 0.05), transparent 18%),
    linear-gradient(180deg, rgba(8, 17, 33, 0.96), rgba(7, 13, 24, 0.92));
  position: relative;
  overflow: hidden;
}

.hero-modern::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(5, 10, 20, 0.5));
  pointer-events: none;
}

.hero-kicker {
  background: rgba(20, 36, 67, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-modern h1 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-subtitle {
  color: #a9b8cf;
}

.btn {
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.btn-main {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.btn-main:hover {
  background: linear-gradient(135deg, #2d6df0, #1e40af);
  transform: translateY(-1px);
}

.btn-alt {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.btn-alt:hover {
  background: rgba(51, 65, 85, 0.96);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.section-soft,
.trust-section,
.methodology-section,
.cta-section,
.section {
  position: relative;
}

.section-title-block h2,
.trust-panel h2,
.methodology-panel h2,
.cta-panel-public h2 {
  letter-spacing: -0.035em;
}

.section-title-block p,
.cta-panel-public p {
  color: #9fb0c8;
}

.feature-grid {
  gap: 20px;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.92), rgba(10, 16, 28, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 20px;
  padding: 24px;
  min-height: 230px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.26);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.feature-card-primary {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(22, 54, 124, 0.92));
  border: 1px solid rgba(147, 197, 253, 0.26);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.feature-card p {
  color: #d4deeb;
  font-size: 17px;
  line-height: 1.7;
}

.includes-grid {
  gap: 14px;
}

.include-box {
  background: rgba(8, 16, 30, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: #e5edf8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.trust-panel,
.methodology-panel,
.cta-panel-public {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.82), rgba(8, 15, 28, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.trust-panel {
  border-radius: 24px;
}

.trust-panel p,
.methodology-panel p {
  color: #d0d9e6;
}

.methodology-section {
  padding-top: 10px;
  padding-bottom: 20px;
}

.methodology-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
}

.methodology-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 600;
}

.methodology-panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 1.15;
}

.methodology-panel p {
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: 20px;
  line-height: 1.85;
}

.cta-panel-public {
  border-radius: 24px;
}

@media (max-width: 900px) {
  .methodology-panel {
    padding: 28px 20px;
  }

  .methodology-panel h2 {
    font-size: 30px;
  }

  .methodology-panel p {
    font-size: 18px;
  }
}
.hidden {
  display: none !important;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.temario-list {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.tema-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.tema-content p {
  color: #cbd5e1;
  line-height: 1.6;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mini-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
}

.sidebar {
  top: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 25px;
}

.sidebar a {
  padding: 10px 12px;
  transition: 0.2s;
}

.tema-btn {
  text-align: left;
  border-radius: 10px;
  padding: 12px 14px;
  transition: 0.2s;
}

.tema-btn.active {
  background: #1d4ed8;
  border-color: #3b82f6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 18px;
  color: #cbd5e1;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.modal-intro {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .temario-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
.admin-gestion-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.admin-usuarios-box,
.admin-detalle-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px;
}

.admin-user-item {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.admin-user-item:hover {
  background: #1e293b;
}

.admin-user-item.active {
  border-color: #3b82f6;
  background: #172554;
}

.admin-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: #cbd5e1;
}

.admin-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-temas-lista {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  background: #111827;
}

.admin-tema-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid #1f2937;
  color: #cbd5e1;
}

.admin-tema-item:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .admin-gestion-layout {
    grid-template-columns: 1fr;
  }

  .admin-check-grid {
    grid-template-columns: 1fr;
  }
}