/* ══════════════════════════════════════════════════════════════
   informe.css — Estilos compartidos para informes de MTII
   Usado por: tema1-osciladores.html, tema2-rigido.html
══════════════════════════════════════════════════════════════ */

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --paper:   #ffffff;
  --page-bg: #f4f4f0;
  --text:    #1a1a1a;
  --dim:     #666;
  --border:  #ddd;
  --accent:  #1a3a6e;
  --accent2: #8b0000;
  --sans:    system-ui, -apple-system, sans-serif;
  --serif:   'Crimson Pro', Georgia, serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;
  --max-w:   780px;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { background: var(--page-bg); }

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--page-bg);
}

/* ─── PAPER CONTAINERS ───────────────────────────────────── */
.paper {
  max-width: var(--max-w);
  margin: 40px auto 0;
  background: var(--paper);
  padding: 60px 70px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

.paper-cont {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  background: var(--paper);
  padding: 48px 70px 60px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

@media (max-width: 860px) {
  .paper, .paper-cont {
    margin-left: 0; margin-right: 0;
    padding: 32px 24px 48px;
    box-shadow: none;
  }
  .paper-cont { padding-top: 32px; }
}

/* ─── SIMULACIÓN — DARK BAND ─────────────────────────────── */
.sim-band {
  background: #06090f;
  line-height: 0;
}

.sim-band iframe {
  display: block;
  width: 100%;
  height: 860px;
  border: none;
}

/* ─── CABECERA ───────────────────────────────────────────── */
.report-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.report-header h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 8px;
}

.report-header .subtitle {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.meta-grid span { color: var(--text); font-weight: 500; }

/* ─── SECCIONES & TIPOGRAFÍA ─────────────────────────────── */
.paper section, .paper-cont section { margin-bottom: 40px; }

.paper h2, .paper-cont h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dde4f0;
}

.paper h3, .paper-cont h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #2a3a5e;
  margin: 24px 0 10px;
}

.paper p, .paper-cont p { margin-bottom: 14px; text-align: justify; }

.sec-num { color: var(--dim); margin-right: 8px; }

/* ─── ECUACIONES ─────────────────────────────────────────── */
.eq-box {
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 14px 20px;
  margin: 20px 0;
  background: #f7f9ff;
  overflow-x: auto;
}

.eq-label {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ─── DERIVACIÓN & NOTAS ─────────────────────────────────── */
.derivation {
  border-left: 3px solid #c8d4ee;
  padding-left: 20px;
  margin: 16px 0;
}

.note {
  background: #fffbeb;
  border-left: 3px solid #d4a500;
  padding: 10px 16px;
  font-size: 15px;
  margin: 16px 0;
  color: #4a3800;
}

/* ─── TABLA DE PARÁMETROS ────────────────────────────────── */
.report-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0 24px;
}
.report-param-table th {
  background: var(--accent);
  color: white;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 9px 14px;
  text-align: left;
}
.report-param-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.report-param-table tr:nth-child(even) td { background: #f9f9f9; }
.report-param-table td:first-child {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent2);
  white-space: nowrap;
}

/* ─── TABLA DE ESTABILIDAD (Tarea 2) ─────────────────────── */
.stab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 14px 0 20px;
}
.stab-table th {
  background: #2a3a5e;
  color: white;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  text-align: center;
}
.stab-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.stab-table td:first-child {
  text-align: left;
  font-family: var(--mono);
  color: var(--accent2);
}
.estable   { color: #1a6e2e; font-weight: 600; }
.inestable { color: #8b0000; font-weight: 600; }

/* ─── FIGURAS ────────────────────────────────────────────── */
figure { text-align: center; margin: 24px auto; }
figure svg { display: block; margin: 0 auto; }
figure img { display: block; margin: 0 auto; border-radius: 4px; }
figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; font-style: italic; }
.fig-source { font-size: 12px; color: var(--dim); font-style: normal; margin-top: 4px; display: block; }

/* ─── CONCLUSIONES & REFERENCIAS ────────────────────────── */
ol.conclusions { padding-left: 20px; margin: 12px 0; }
ol.conclusions li { margin-bottom: 12px; text-align: justify; }

ol.refs { padding-left: 20px; font-size: 15.5px; }
ol.refs li { margin-bottom: 10px; text-align: justify; }
ol.refs li em { font-style: italic; }
ol.refs li span.doi { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ─── SITE FOOTER ────────────────────────────────────────── */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #f0f0ec;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--dim);
}

.site-footer .footer-loc { display: flex; align-items: center; gap: 6px; }

.site-footer a {
  color: var(--dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── SCROLLBAR (light) ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
