@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --re-bg: #060808;
  --re-panel: #111315;
  --re-panel-2: #191B1F;
  --re-line: #26282D;
  --re-line-2: #1E2024;
  --re-text: #EEF0F3;
  --re-text-2: #D5D8DE;
  --re-muted: #9A9BA1;
  --re-orange: #FBAF44;
  --re-red: #F0436A;
  --re-cyan: #2BB6D9;
  --re-green: #3CCB8B;
  --re-gray: #9A9BA1;
  --re-soft: #E2E3E7;
}

body.re-body { margin: 0; background: var(--re-bg); }
.re-root, .re-root * { box-sizing: border-box; }
.re-root { min-height: 100vh; background: var(--re-bg); color: var(--re-text); font-family: 'Sora', system-ui, sans-serif; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.re-root a { color: var(--re-orange); }
.re-root button { font-family: inherit; }
.re-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* Encabezado */
.re-head { background: var(--re-panel); border: 1px solid var(--re-line); border-top: 2px solid var(--re-orange); border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.re-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.re-brand img { height: 60px; width: auto; display: block; }
.re-sep { width: 1px; height: 40px; background: #2A2C31; }
.re-brand-title { font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.re-brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--re-orange); }
.re-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--re-orange); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--re-orange); }
.re-chip::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--re-orange); }
.re-kpis { display: flex; flex-wrap: wrap; gap: 28px; }
.re-kpi { display: flex; flex-direction: column; gap: 2px; }
.re-kpi span:first-child { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--re-muted); }
.re-kpi span:last-child { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 700; }

/* Buscador */
.re-hero { max-width: 980px; width: 100%; margin: 40px auto 0; display: flex; flex-direction: column; gap: 22px; }
.re-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--re-orange); }
.re-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.re-hero p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--re-text-2); max-width: 760px; }
.re-form { background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 14px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.re-field { display: flex; flex-direction: column; gap: 6px; }
.re-field.grow { flex: 999 1 380px; }
.re-field.place { flex: 1 1 200px; }
.re-field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--re-muted); }
.re-field input { height: 56px; padding: 0 16px; border-radius: 10px; border: 1px solid #34363C; background: #0B0D0F; color: var(--re-text); font-family: inherit; font-size: 17px; }
.re-field input:focus { outline: 2px solid var(--re-orange); outline-offset: 1px; border-color: transparent; }
.re-btn { height: 56px; padding: 0 26px; border-radius: 10px; border: 0; background: var(--re-orange); color: #060808; font-weight: 800; font-size: 16px; cursor: pointer; flex: 1 1 180px; }
.re-btn:hover { filter: brightness(1.06); }
.re-btn:disabled { opacity: .6; cursor: progress; }
.re-ghost { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--re-line); background: transparent; color: var(--re-text); font-weight: 600; font-size: 14px; cursor: pointer; }
.re-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.re-suggest span { font-size: 13px; color: var(--re-muted); }
.re-suggest button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #34363C; background: transparent; color: var(--re-text-2); font-size: 13px; cursor: pointer; }
.re-suggest button:hover { border-color: var(--re-orange); color: var(--re-orange); }
.re-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.re-source { background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.re-source b { font-size: 14px; }
.re-source span { font-size: 12px; color: var(--re-muted); }
.re-error { background: #2A1016; border: 1px solid #5A1E2B; color: #FFB3C3; border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* Espera */
.re-wait { max-width: 980px; width: 100%; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.re-wait-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.re-wait-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.re-wait h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.re-bar { height: 8px; border-radius: 999px; background: var(--re-line); overflow: hidden; }
.re-bar div { height: 100%; background: var(--re-orange); border-radius: 999px; transition: width .8s ease; }
.re-steps { list-style: none; margin: 0; padding: 0; background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 12px; overflow: hidden; }
.re-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--re-line-2); }
.re-steps li:last-child { border-bottom: 0; }
.re-dot { width: 24px; height: 24px; border-radius: 999px; border: 2px solid #3A3C42; flex: none; display: flex; align-items: center; justify-content: center; }
.re-steps li.done .re-dot { background: var(--re-orange); border-color: var(--re-orange); }
.re-steps li.done .re-dot::after { content: ''; width: 9px; height: 5px; border-left: 2.5px solid #060808; border-bottom: 2.5px solid #060808; transform: rotate(-45deg) translate(1px, -1px); }
.re-steps li.now .re-dot { border-color: var(--re-orange); animation: re-pulse 1.2s ease-in-out infinite; }
.re-steps b { font-size: 14px; display: block; }
.re-steps small { font-size: 12px; color: var(--re-muted); }
@keyframes re-pulse { 50% { box-shadow: 0 0 0 6px rgba(251,175,68,.18); } }
.re-tip { background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 12px; padding: 18px; font-size: 14px; line-height: 1.5; color: var(--re-text-2); }

/* Panel */
.re-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.re-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.re-card { background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.re-card h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.re-card .re-sub { font-size: 11px; color: var(--re-muted); }
.re-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.re-rings div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.re-rings span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--re-muted); }
.re-rings svg { width: 76px; height: 76px; }
.re-note { background: var(--re-panel-2); border: 1px solid #2E3036; border-radius: 8px; padding: 8px 10px; font-size: 11px; text-align: center; font-weight: 600; }
.re-track { height: 6px; border-radius: 999px; background: var(--re-line); overflow: hidden; }
.re-track div { height: 100%; border-radius: 999px; }
.re-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.re-row b { font-weight: 700; }
.re-list { display: flex; flex-direction: column; }
.re-list > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--re-line-2); font-size: 12px; line-height: 1.4; color: var(--re-text-2); }
.re-list .num { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: var(--re-orange); width: 22px; flex: none; }
.re-list .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.re-list .who b { color: var(--re-text); font-size: 13px; }
.re-list .who small { color: var(--re-muted); font-size: 11px; }
.re-pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.re-table-wrap { overflow-x: auto; }
.re-table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: 12px; }
.re-table th { text-align: left; color: var(--re-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--re-line); font-weight: 700; }
.re-table td { padding: 10px 6px; border-bottom: 1px solid var(--re-line-2); color: #B8BDC6; }
.re-table td:first-child { color: var(--re-text); font-weight: 700; white-space: nowrap; }
.re-table td:last-child, .re-table th:last-child { text-align: right; }
.re-chart { width: 100%; height: 210px; }
.re-timeline { overflow-x: auto; }
.re-timeline > div { min-width: 760px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.re-timeline .ev { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--re-orange); padding-top: 10px; }
.re-timeline .ev span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; color: var(--re-orange); }
.re-timeline .ev p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--re-text-2); }
.re-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Informe en texto */
.re-report { background: var(--re-panel); border: 1px solid var(--re-line); border-radius: 12px; padding: 28px; }
.re-report-inner { max-width: 820px; margin: 0 auto; font-size: 15px; line-height: 1.65; color: var(--re-text-2); }
.re-report-inner h1 { font-size: 26px; line-height: 1.2; color: var(--re-text); margin: 0 0 16px; }
.re-report-inner h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--re-orange); margin: 28px 0 10px; }
.re-report-inner h3 { font-size: 15px; color: var(--re-text); margin: 20px 0 8px; }
.re-report-inner ul, .re-report-inner ol { padding-left: 20px; }
.re-report-inner li { margin: 4px 0; }
.re-report-inner strong { color: var(--re-text); }
.re-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6B717C; }

@media (max-width: 640px) {
  .re-root { padding: 10px; }
  .re-kpis { gap: 16px; }
  .re-brand img { height: 46px; }
  .re-report { padding: 18px; }
}
@media print {
  .re-root { background: #fff; color: #111; }
  .re-actions, .re-ghost { display: none; }
}
