/* ===========================================
   Aprende Stand Up — style.css
   Checho Falco · La Plata · 2026
   =========================================== */

/* ---------- Variables ---------- */
:root {
  /* Paleta base (Tres Empanadas) */
  --rojo: #922b2b;
  --amarillo: #f4c542;
  --crema: #faf3e3;

  /* Paleta nueva (Aprende Stand Up) */
  --lima: #b8c84a;        /* amarillo verdoso — enlaces, detalles */
  --violeta: #5b3a86;     /* CTAs del jueves, libros recomendados */

  /* Neutros para lectura */
  --tinta: #1a1a1a;        /* texto principal */
  --tinta-suave: #4a4a4a;  /* meta, secundario */
  --linea: #e8e0c8;        /* separadores sutiles */
  --papel: #fdfaf0;        /* fondo cuerpo de notas (crema más claro) */

  /* Tipografía */
  --serif-display: 'Fraunces', Georgia, serif;
  --serif-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans: 'Work Sans', -apple-system, sans-serif;

  /* Medidas */
  --max-lectura: 36rem;     /* ~65 caracteres por línea */
  --max-ancho: 72rem;
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--violeta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--rojo); }

/* ---------- Tipografía display ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tinta);
}
h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 2.5rem 0 1rem;
}
h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

p { margin: 0 0 1.25rem; }
p + p { margin-top: -0.25rem; }

/* ---------- Layout ---------- */
.contenedor {
  max-width: var(--max-ancho);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.contenedor-lectura {
  max-width: var(--max-lectura);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--linea);
  padding: 1.25rem 0;
  background: var(--crema);
}
.site-header .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--tinta);
  text-decoration: none;
}
.logo span { color: var(--rojo); }

.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--tinta-suave);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--violeta); }

/* En mobile: items más chicos, sin partirse, rojo del logo */
@media (max-width: 600px) {
  .nav {
    gap: 0.7rem;
    font-size: 0.8125rem;
  }
  .nav a {
    color: var(--rojo);
    font-weight: 500;
  }
}

/* ---------- Home: Hero editorial ---------- */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--linea);
  background: var(--crema);
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.hero .subtitulo {
  font-family: var(--serif-body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--tinta-suave);
  max-width: 40ch;
  margin: 0;
}
.hero .meta-autor {
  font-family: var(--sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rojo);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ---------- Home: Bloques de presentación ---------- */
.bloque-intro {
  padding: 3rem 0;
}
.bloque-intro p {
  font-size: 1.125rem;
}

/* ---------- Home: Índice de notas ---------- */
.indice {
  padding: 3rem 0;
  border-top: 1px solid var(--linea);
}
.indice h2 {
  margin-top: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinta-suave);
  font-family: var(--sans);
  font-weight: 600;
}
.indice-grupo {
  margin: 2rem 0 3rem;
}
.indice-grupo h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lima);
  margin: 0 0 1rem;
  font-weight: 600;
  filter: brightness(0.85);
}
.indice ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: nota;
}
.indice li {
  counter-increment: nota;
  border-bottom: 1px solid var(--linea);
  padding: 1rem 0;
}
.indice li::before {
  content: counter(nota, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rojo);
  margin-right: 1rem;
  letter-spacing: 0.05em;
}
.indice li a {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--tinta);
  text-decoration: none;
}
.indice li a:hover {
  color: var(--violeta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.indice li .descripcion {
  display: block;
  font-family: var(--serif-body);
  font-size: 0.9375rem;
  color: var(--tinta-suave);
  margin-top: 0.35rem;
  margin-left: 2.5rem;
}

/* ---------- Notas: header de nota ---------- */
.nota-header {
  padding: 3rem 0 2rem;
  background: var(--crema);
  border-bottom: 1px solid var(--linea);
}
.nota-header .breadcrumb {
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tinta-suave);
  margin-bottom: 1rem;
}
.nota-header .breadcrumb a { color: var(--tinta-suave); text-decoration: none; }
.nota-header .breadcrumb a:hover { color: var(--violeta); }
.nota-header .numero-nota {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rojo);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.nota-header h1 { margin-bottom: 0.75rem; }
.nota-header .copete {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--tinta-suave);
  margin: 0;
  max-width: 36rem;
}

/* ---------- Notas: cuerpo ---------- */
.nota-cuerpo {
  padding: 3rem 0 2rem;
}
.nota-cuerpo h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
}
.nota-cuerpo h2:first-child { margin-top: 0; }

.nota-cuerpo hr {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
  height: 1rem;
}
.nota-cuerpo hr::before {
  content: "· · ·";
  color: var(--lima);
  letter-spacing: 0.5em;
  font-size: 1rem;
}

.nota-cuerpo blockquote {
  border-left: 3px solid var(--lima);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-style: italic;
  color: var(--tinta-suave);
}

/* ---------- Libro recomendado (running gag) ---------- */
.libro {
  display: block;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--linea);
  border-left: 4px solid var(--violeta);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  position: relative;
}
.libro::before {
  content: "📖 Recomendado";
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violeta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.libro .titulo-libro {
  font-family: var(--serif-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tinta);
  display: block;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.libro .autor-libro {
  color: var(--tinta-suave);
  font-size: 0.875rem;
}
.libro .nota-libro {
  margin-top: 0.6rem;
  font-style: italic;
  color: var(--tinta-suave);
}

/* En desktop, los libros flotan al margen */
@media (min-width: 1024px) {
  .libro {
    float: right;
    width: 16rem;
    margin: 0.25rem -8rem 1.25rem 1.5rem;
    clear: right;
  }
}

/* ---------- Bloque de cierre del jueves ---------- */
.cierre-jueves {
  margin: 3.5rem 0 1.5rem;
  padding: 2rem 1.75rem;
  background: var(--crema);
  border: 1px solid var(--linea);
  border-radius: 2px;
}
.cierre-jueves h3 {
  font-family: var(--serif-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--tinta);
}
.cierre-jueves p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cierre-jueves p:last-of-type { margin-bottom: 1.5rem; }
.cierre-jueves .info-lugar {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--tinta-suave);
  margin-bottom: 1.25rem;
}
.boton-jueves {
  display: inline-block;
  background: var(--violeta);
  color: #fff;
  padding: 0.85rem 1.75rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.boton-jueves:hover {
  background: var(--rojo);
  color: #fff;
  transform: translateY(-1px);
}
.cierre-otros {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linea);
  font-size: 0.9375rem;
  color: var(--tinta-suave);
}

/* ---------- Firma humana ---------- */
.firma {
  margin: 3rem 0 1rem;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1rem;
  line-height: 1.6;
}
.firma .nombre {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--serif-display);
  font-weight: 600;
  color: var(--tinta);
}

/* ---------- Notas siguiente/anterior ---------- */
.nav-notas {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linea);
  font-family: var(--sans);
}
.nav-notas a {
  flex: 1;
  text-decoration: none;
  color: var(--tinta-suave);
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}
.nav-notas a:hover { color: var(--violeta); }
.nav-notas .siguiente { text-align: right; }
.nav-notas .label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rojo);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.nav-notas .titulo-link {
  font-family: var(--serif-display);
  font-size: 1.0625rem;
  color: var(--tinta);
}

/* ---------- Notas relacionadas ---------- */
.relacionadas {
  margin: 2rem 0 0;
}
.relacionadas h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tinta-suave);
  font-weight: 600;
  margin: 0 0 1rem;
}
.relacionadas ul { list-style: none; padding: 0; margin: 0; }
.relacionadas li { padding: 0.5rem 0; border-bottom: 1px solid var(--linea); }
.relacionadas a {
  font-family: var(--serif-display);
  text-decoration: none;
  color: var(--tinta);
  font-size: 1.0625rem;
}
.relacionadas a:hover { color: var(--violeta); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--crema);
  border-top: 1px solid var(--linea);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--tinta-suave);
}
.site-footer .contenedor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .site-footer .contenedor {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}
/* Separación clara entre bloques en mobile */
@media (max-width: 719px) {
  .site-footer .contenedor > div + div {
    padding-top: 1.5rem;
    border-top: 1px solid var(--linea);
  }
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rojo);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.25rem 0; }
.site-footer a { color: var(--tinta-suave); text-decoration: none; }
.site-footer a:hover { color: var(--violeta); }
.site-footer .legales {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linea);
  font-size: 0.8125rem;
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Banner sticky mobile ---------- */
.banner-jueves {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--violeta);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-align: center;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.banner-jueves a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--lima);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.banner-jueves .cerrar {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
  line-height: 1;
}
.banner-jueves .cerrar:hover { opacity: 1; }

@media (min-width: 720px) {
  .banner-jueves { display: none; }
}

/* Padding extra al body en mobile cuando hay banner */
@media (max-width: 719px) {
  body.con-banner { padding-bottom: 3rem; }
}

/* ---------- Detalles ---------- */
::selection { background: var(--amarillo); color: var(--tinta); }
