/* ============================================
   CEF — Corporación para los Estudios en Francia
   Sistema de diseño — Fase 0 (mantenimiento)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0F2A52;
  --red: #C8102E;
  --blanco: #FFFFFF;
  --hueso: #F3F1EC;
  --tinta: #1B2027;
  --navy-hover: #16386B; /* tinte de navy solo para estados hover, no es color de marca nuevo */
  --ink-muted: rgba(27, 32, 39, 0.62);
  --line: #E1DCCF;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { color: inherit; }

/* Logo real CEF — recreado en HTML/CSS (texto nítido, sin imagen rasterizada) */
.brand-group {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-cef {
  display: inline-flex;
  flex-direction: column;
  border: 1.5px solid var(--navy);
  background: var(--blanco);
  line-height: 1;
}
.logo-cef__word {
  padding: 5px 12px 3px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
}
.logo-cef__word .c,
.logo-cef__word .e { color: var(--navy); }
.logo-cef__word .f { color: var(--red); }
.logo-cef__sub {
  background: var(--navy);
  color: var(--blanco);
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 4px 8px;
  white-space: nowrap;
}

/* Línea de firma — dos tonos, tal como en el manual */
.ribbon {
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.back-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy-hover);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.back-link:hover { border-color: var(--navy-hover); }

/* Hero / maintenance */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  margin: 0 0 20px;
  line-height: 1.15;
}
.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 17px;
}

.notice-card {
  max-width: 560px;
  margin: 44px auto 0;
  background: var(--blanco);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: left;
}
.notice-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
}
.notice-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--blanco);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background .2s ease;
}
.btn:hover { background: var(--navy-hover); }

/* Contact row on maintenance page */
.contact-row {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}
.contact-row a { color: var(--navy-hover); text-decoration: none; font-weight: 500; }

/* Documentation page */
.page-head {
  padding: 56px 0 8px;
}
.page-head .eyebrow { color: var(--red); }
.page-head h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 500;
  margin: 0 0 14px;
}
.page-head p {
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 620px;
}

.doc-list {
  list-style: none;
  margin: 40px 0 80px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.doc-item {
  border-bottom: 1px solid var(--line);
}
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--tinta);
  transition: padding-left .2s ease, color .2s ease;
}
.doc-link:hover {
  padding-left: 10px;
  color: var(--navy);
}
.doc-name {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  font-family: 'Source Serif 4', serif;
}
.doc-name .doc-index {
  font-family: 'Public Sans', sans-serif;
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.doc-action {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-link:hover .doc-action { color: var(--red); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }

@media (max-width: 560px) {
  .hero { padding: 64px 0 40px; }
  .notice-card { padding: 24px; }
  .doc-link { flex-direction: column; align-items: flex-start; gap: 6px; }
}
