*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #001548;
  --blue: #0481FD;
  --blue-deep: #225AB8;
  --blue-soft: #5FA8FF;
  --bg: #F0F3F9;
  --bg-card: #FFFFFF;
  --muted: #5B6478;
  --border: rgba(0, 21, 72, 0.1);
  --border-strong: rgba(4, 129, 253, 0.35);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* Barra de navegación: includes/nav.php + assets/css/site-nav.css */

.hero {
  padding: 4.5rem 2rem 3.5rem;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(4,129,253,0.08); border: 1px solid var(--border-strong);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.25; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 1rem;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero h1 span { color: var(--blue); }
.hero-desc {
  font-size: 17px; color: var(--muted);
  line-height: 1.75; max-width: 640px; margin: 0 auto;
}

section { padding: 4rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin: 0 auto 2.5rem; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 0.75rem;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.25;
  color: var(--navy); margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 16px; color: var(--muted);
  max-width: 620px; line-height: 1.7; margin: 0 auto;
}

.links-section { background: #fff; }
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.link-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.85rem;
  min-height: 170px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(0,21,72,0.08);
}
.link-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(4,129,253,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.link-card h3 {
  font-weight: 600; font-size: 0.95rem;
  color: var(--navy); line-height: 1.3;
}
.link-card .badge-inline {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-deep);
}
.link-card span.cta {
  font-size: 12.5px; color: var(--blue-deep); font-weight: 500;
  margin-top: auto;
}

.repo-inner { padding: 0 2rem 4rem; max-width: 1100px; margin: 0 auto; }
.protected-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem; font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1.25rem;
}
.protected-bar button {
  background: none; border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 14px; cursor: pointer; font-family: inherit; font-size: 12px;
}
.file-list { list-style: none; display: grid; gap: 0.75rem; }
.file-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: #fff; border-radius: 12px;
  border: 1px solid var(--border); text-decoration: none; color: var(--navy);
  font-size: 14px; transition: border-color 0.2s;
}
.file-list a:hover { border-color: var(--border-strong); }
.file-list span.meta { color: var(--muted); font-size: 12px; text-align: right; }

.auth-wrap {
  padding: 3rem 2rem 5rem;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.auth-box {
  width: 100%; max-width: 420px; padding: 2rem;
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,21,72,0.06);
}
.auth-box h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.auth-box p { color: var(--muted); font-size: 14px; margin-bottom: 1.25rem; }
.auth-box label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 0.35rem; }
.auth-box input[type="password"],
.auth-box input[type="text"],
.auth-box input[type="email"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; margin-bottom: 1rem;
}
.badge-inline {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: 0.35rem;
}
.course-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  border-color: var(--border-strong, rgba(4, 129, 253, 0.35));
  box-shadow: 0 8px 28px rgba(0,21,72,0.08);
}
.course-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(4,129,253,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.course-card-body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.course-card-body strong { font-size: 1rem; color: var(--navy); font-weight: 600; }
.course-card-meta { font-size: 13px; color: var(--muted); }
.course-card-arrow { color: var(--blue-deep); font-weight: 600; }
.module-grid { display: grid; gap: 0.85rem; }
.module-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none; color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.module-btn:hover {
  border-color: rgba(4, 129, 253, 0.35);
  box-shadow: 0 6px 20px rgba(0,21,72,0.06);
}
.module-btn-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(4,129,253,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.module-btn-text { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.4; }
.module-btn-arrow { color: var(--blue-deep); font-size: 18px; }
.course-actions {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.course-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.course-action-btn:hover { background: var(--blue); }
.repo-back-link { margin-bottom: 1.25rem; }
.repo-back-link a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-deep);
  text-decoration: none;
}
.repo-back-link a:hover { text-decoration: underline; }
.auth-box button[type="submit"] {
  width: 100%; padding: 13px; border: none; border-radius: 100px;
  background: var(--navy); color: #fff; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.auth-box button[type="submit"]:hover { background: var(--blue); }
.auth-error { color: #b42318; font-size: 13px; margin-bottom: 1rem; }

footer {
  background: #000C2E; padding: 2.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer .contact-f {
  font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 400;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
footer .contact-f a.contact-text { color: rgba(255,255,255,0.45); text-decoration: none; white-space: nowrap; }
footer .contact-f a.contact-text:hover { color: var(--blue-soft); }
footer .social-icons { display: flex; align-items: center; gap: 14px; }
footer .social-icons a { color: rgba(255,255,255,0.45); display: flex; transition: color 0.2s; }
footer .social-icons a:hover { color: var(--blue-soft); }
footer .copy { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 400; }

@media (max-width: 900px) {
  .links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  footer {
    flex-direction: column; align-items: flex-start;
    gap: 1.25rem; padding: 2rem 1.25rem;
  }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  section { padding: 3rem 1.25rem; }
}
