/* ============================================
   Uso — 20 de agosto de 2026
   Off-white / ink, acento amber→magenta.
   Self-contained: no importa shared/base.css.
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:root {
  --bg:      #fbfaf7;
  --surface: #ffffff;
  --ink:     #0e0e0e;
  --ink-2:   #5a5a5a;
  --ink-3:   #9a9a9a;
  --line:    rgba(14,14,14,0.08);
  --line-2:  rgba(14,14,14,0.14);
  --amber:   #ffa916;
  --magenta: #ff0173;
  --gradient: linear-gradient(90deg, #ffa916 0%, #ff0173 100%);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --shadow-lg: 0 18px 50px rgba(14,14,14,0.10);
}

/* --- Auth overlay (claro, mismo lenguaje que el resto de los decks) --- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(251,250,247,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
}
.auth-overlay.fade-out { opacity: 0; transition: opacity 0.4s; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 3rem 2.5rem; text-align: center;
  box-shadow: var(--shadow-lg); max-width: 380px; width: 90%;
}
.auth-lock { width: 38px; height: 38px; color: var(--magenta); margin: 0 auto 1.2rem; }
.auth-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.auth-subtitle { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-input {
  padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); font-family: var(--font); font-size: 0.95rem;
  outline: none; color: var(--ink); transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--magenta); }
.auth-submit {
  padding: 0.8rem; border: none; border-radius: 12px; cursor: pointer;
  background: var(--gradient); color: #fff; font-family: var(--font);
  font-weight: 600; font-size: 0.95rem; transition: transform 0.2s, filter 0.2s;
}
.auth-submit:hover { transform: translateY(-1px); filter: saturate(1.1); }
.auth-error { color: #e0142f; font-size: 0.82rem; opacity: 0; transition: opacity 0.3s; }
.auth-error.visible { opacity: 1; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
}

/* --- Layout --- */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 5vw, 72px);
}
.slide + .slide { border-top: 1px solid var(--line); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sub { color: var(--ink-2); font-size: 1rem; margin-bottom: 40px; }

/* --- Portada --- */
.cover { text-align: center; }
.cover h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.cover .fecha {
  margin-top: 22px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* --- Numerón --- */
.headline {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 32px;
}
.headline .n {
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.headline .t { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink); font-weight: 500; }

/* --- Desglose --- */
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.cell .v { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cell .l { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; }
.cell--muted .v { color: var(--ink-3); }

/* --- Métricas de recurrencia --- */
.rec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rec .v {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rec .l { font-size: 0.92rem; color: var(--ink-2); margin-top: 10px; max-width: 30ch; }

/* --- Tabla --- */
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line-2);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.marca { font-weight: 600; white-space: nowrap; }
.dias { white-space: nowrap; color: var(--ink-2); }
.dias b { color: var(--ink); font-weight: 600; }
.pct {
  display: inline-block;
  min-width: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pct--alto { color: var(--magenta); }
.acciones { color: var(--ink-2); line-height: 1.45; }

.nota {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 90ch;
}

@media (max-width: 900px) {
  .split, .rec { grid-template-columns: 1fr; }
  table { font-size: 0.74rem; }
  tbody td, thead th { padding-left: 8px; padding-right: 8px; }
}
