/*!
 * ============================================================================
 * Copyright © 2026 Diego Fernando Zapata. Todos los derechos reservados.
 * Proyecto: Cea Langelorc - Estilos de «Material educativo oficial de la ANSV»
 * Identificador: DZ-CEALANGELORC-2026-B8E29A1F
 * Versión: 1.3.1 · Fecha: 2026-10-05
 * ============================================================================
 */

:root {
  --mat-primary: #0284c7;
  --mat-primary-dark: #0369a1;
  --mat-emerald: #087e69;
  --mat-navy: #071d43;
  --mat-bg: #f8fafc;
  --mat-card: #ffffff;
  --mat-border: #e2e8f0;
  --mat-text: #0f172a;
  --mat-muted: #475569;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--mat-bg);
  color: var(--mat-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mat-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 56px;
}

.mat-hero {
  position: relative;
  padding: 44px 40px;
  background: #fff;
  border: 1.5px solid var(--mat-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px -12px rgba(2, 132, 199, 0.12);
  overflow: hidden;
}

.mat-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #0284c7, #087e69 55%, #f59e0b);
}

.mat-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mat-primary);
}

.mat-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mat-navy);
}

.mat-intro {
  margin: 0 0 22px;
  max-width: 780px;
  font-size: 16px;
  color: var(--mat-muted);
}

.mat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mat-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mat-btn-primary {
  background: var(--mat-emerald);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 126, 105, 0.28);
}

.mat-btn-primary:hover,
.mat-btn-primary:focus-visible {
  background: #066b59;
  transform: translateY(-1px);
}

.mat-btn-ghost {
  background: #fff;
  color: var(--mat-navy);
  border: 1.5px solid #cbd5e1;
}

.mat-btn-ghost:hover,
.mat-btn-ghost:focus-visible {
  border-color: var(--mat-primary);
  color: var(--mat-primary);
}

.mat-license {
  display: flex;
  gap: 16px;
  margin: 24px 0 8px;
  padding: 20px 22px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 5px solid var(--mat-primary);
  border-radius: 14px;
  color: #0c4a6e;
  font-size: 14.5px;
}

.mat-license-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e0f2fe;
}

.mat-license-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--mat-primary-dark);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mat-license h2 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: #075985;
}

.mat-license p { margin: 0 0 8px; }

.mat-license ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.mat-license li { margin: 2px 0; }

.mat-license-src { margin: 0; font-size: 13px; }

.mat-license a { color: var(--mat-primary-dark); font-weight: 700; }

.mat-group { margin-top: 34px; }

.mat-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--mat-navy);
}

.mat-group h2 small {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--mat-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.mat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--mat-card);
  border: 1.5px solid var(--mat-border);
  border-radius: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mat-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 14px 30px -14px rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
}

.mat-card h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--mat-navy);
}

.mat-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--mat-muted);
}

.mat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--mat-primary-dark);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}

.mat-card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mat-card-link:hover { text-decoration: underline; }

.mat-empty,
.mat-help {
  margin-top: 30px;
  padding: 24px 26px;
  background: #fff;
  border: 1.5px solid var(--mat-border);
  border-radius: 16px;
}

.mat-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mat-help p,
.mat-empty p { margin: 4px 0 0; color: var(--mat-muted); font-size: 14px; }

.mat-footer {
  flex-shrink: 0;
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border-top: 1.5px solid var(--mat-border);
  color: #64748b;
  font-size: 13px;
}

.mat-footer-links { margin-bottom: 10px; }

.mat-footer-links a {
  margin: 0 8px;
  color: var(--mat-primary);
  font-weight: 700;
  text-decoration: none;
}

.mat-footer-links a:hover { text-decoration: underline; }

.mat-footer p { margin: 0; }

@media (max-width: 768px) {
  .mat-main { padding: 88px 16px 40px; }
  .mat-hero { padding: 32px 22px; }
  .mat-license { flex-direction: column; padding: 18px; }
  .mat-hero-actions .mat-btn { width: 100%; justify-content: center; }
  .mat-help .mat-btn { width: 100%; justify-content: center; }
}
