/* ============================================================
   SHARP-Raptor Challenge — stylesheet
   Design notes:
   - Dark "cockpit/HUD" inspired hero, light content sections
   - Accent color: amber/orange (high-speed, heat, transonic)
   - Typography: system sans for body, condensed weight for headings
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-light: #f7f7f5;
  --bg-alt: #eef0ec;
  --ink: #14161a;
  --ink-soft: #4a4f57;
  --accent: #ff7a1a;
  --accent-dark: #c75a00;
  --line: #d8dad4;
  --radius: 14px;
  --max-width: 880px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

sup { font-size: 0.65em; }

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,122,26,0.18), transparent 55%),
    var(--bg);
  color: #f4f4f2;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 14px;
}

.subtitle {
  font-size: 1.05rem;
  color: #c9cad0;
  max-width: 680px;
  margin: 0 auto 28px;
}

.authors {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #f4f4f2;
}

.affiliations {
  font-size: 0.8rem;
  color: #9a9da6;
  max-width: 700px;
  margin: 0 auto 28px;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.logos img {
  max-height: 50px;
  max-width: 150px;
  width: 100%;
  height: 100%;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.logos img:hover { opacity: 1; }

.logos-small img { height: 30px; }

/* ============ BUTTONS ============ */
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #f4f4f2;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  background: rgba(255,122,26,0.12);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ============ SECTIONS ============ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center; /* Centra los títulos y la alineación general */
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 1.5rem;
  max-width: 760px;
  margin: 0 auto 24px auto;
  text-align: left;
  text-decoration: underline;         /* en vez de border-bottom */
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;        /* separación entre texto y línea, como el padding-bottom de antes */
}

.section h3 {
  font-size: 1.2rem;
  margin: 32px auto 16px;
  text-align: center;
}

.section p {
  text-align: left; /* Mantener lectura fluida alineada a la izquierda */
  max-width: 760px;
  margin: 0 auto 20px auto; /* Bloque de párrafo centrado horizontalmente */
  color: var(--ink);
}

.section ul, .section ol {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 24px auto;
  padding-left: 24px;
}

.section li {
  margin-bottom: 8px;
}

.placeholder {
  color: var(--ink-soft);
  font-style: italic;
  text-align: left;
}

/* ============ TABLES ============ */
.table-container {
  max-width: 760px;
  margin: 24px auto 40px auto;
  overflow-x: auto;
}

.table-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  margin: 0 auto 8px auto;
  max-width: 760px;
}

.table-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 12px !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  background-color: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* ============ BIBTEX BLOCK ============ */
.code-block {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  text-align: left;
}

.code-block pre {
  margin: 0;
  color: #d8e0e8;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover { background: var(--accent-dark); color: #fff; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.footer a:hover { color: var(--accent-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 36px; }
  .section { padding: 40px 16px; }
}