/* Diseño basado en la referencia visual: azul institucional, tarjetas blancas,
   jerarquía clara y composición sobria. WCAG: foco visible, contraste y navegación por teclado. */

:root {
  --blue: #002f85;
  --blue-dark: #001f59;
  --white: #ffffff;
  --text: #ffffff;
  --ink: #002f85;
  --line: rgba(255,255,255,.25);
  --shadow: 0 14px 34px rgba(0, 20, 70, .22);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.08) 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.035) 28.2% 28.35%, transparent 28.55% 100%);
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(22px, 5vw, 68px) 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,31,89,.7), rgba(0,47,133,.2));
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: -250px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.02);
}

.brand {
  position: relative;
  z-index: 1;
  margin-bottom: 38px;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,.7);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.35;
  max-width: 240px;
}

.hero-content { position: relative; z-index: 1; max-width: 940px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .8;
}

h1, h2 {
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 22px; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin: 0; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 42px 0 12px; font-weight: 700; }

p { font-weight: 400; margin: 0 0 16px; }
strong { font-weight: 700; }

.hero p { max-width: 930px; }

section { padding: 26px 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
}

.intro-card, .notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card {
  margin: -20px 8% 20px;
  padding: 24px 28px;
  position: relative;
}

.intro-card p, .notice p { color: var(--ink); margin: 4px 0 0; }

.icon, .notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.notice {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 5px solid var(--blue);
}

.notice strong { display: block; color: var(--blue); }

hr {
  border: 0;
  height: 1px;
  margin: 12px 0;
  background: var(--line);
}

ul {
  margin: 8px 0 22px;
  padding-left: 1.5rem;
}

li { margin: 8px 0; }
li::marker { color: rgba(255,255,255,.75); }

.video-card {
  margin: 28px 0 36px;
  padding: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
}

.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #001f59;
}

.video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 10px 8px 2px;
  font-size: .8rem;
  opacity: .78;
  letter-spacing: .04em;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: var(--ink);
  background: var(--white);
}

th, td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d7e0ed;
}

thead th {
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
}

tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .08em;
  opacity: .78;
}

@media (max-width: 700px) {
  .page { width: min(100% - 20px, var(--max)); padding-top: 10px; }
  .hero { padding: 26px 20px 32px; border-radius: 18px; }
  .brand { margin-bottom: 28px; }
  .intro-card { margin: -12px 8px 16px; padding: 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading > span { flex-basis: 44px; height: 44px; }
  .notice { padding: 18px; }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: var(--blue); }
  .video-card { break-inside: avoid; }
}
