/* =================================================================
   PPA — ppa.css v6
   Paleta Tres Empanadas
   1 fuente: IBM Plex Sans (todo) — Playfair Display solo para logo PPA
   ================================================================= */

:root {
  /* Paleta Tres Empanadas */
  --tinta:    #2A1408;   /* marrón oscuro cálido */
  --papel:    #F0E6CC;   /* crema cálida */
  --papel2:   #E8D8B0;   /* crema más oscura */
  --gris:     #6B4C35;   /* marrón medio */
  --rojo:     #7A1C1C;   /* rojo bordo */
  --violeta:  #5C2D6E;   /* violeta */
  --oliva:    #6B6B2A;   /* verde oliva */
  --linea:    #C8A878;   /* línea cálida */
  --grisclaro:#C4A882;   /* texto secundario */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--papel); }

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rojo); }
a:visited { color: inherit; }

.contenedor { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .contenedor { padding: 0 24px; } }
@media (min-width: 1024px) { .contenedor { padding: 0 32px; } }

/* =================================================================
   CABECERA STICKY — fondo violeta
   ================================================================= */
.cabecera-ppa {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--violeta);
  color: var(--papel);
  transition: all 0.2s ease;
}

.cab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 16px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,230,204,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.cab-edicion { color: var(--papel); font-weight: 700; }

.cab-logo-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 5px;
  transition: all 0.2s;
}
.cab-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--papel);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cab-tagline {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,230,204,0.7);
  margin-top: 2px;
}
.cab-hamburguesa {
  background: none;
  border: none;
  color: var(--papel);
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cab-hamburguesa span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--papel);
  border-radius: 1px;
}

.cab-ticker-wrap {
  overflow: hidden;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cab-ticker {
  display: flex;
  width: max-content;
  animation: cab-scroll 22s linear infinite;
}
.cab-ticker span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(240,230,204,0.7);
  white-space: nowrap;
  padding: 0 14px;
}
.cab-ticker span b {
  color: var(--papel);
  font-weight: 700;
  margin-left: 3px;
}
@keyframes cab-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sticky compacto */
.cabecera-ppa.sticky .cab-top    { display: none; }
.cabecera-ppa.sticky .cab-tagline { display: none; }
.cabecera-ppa.sticky .cab-logo-fila { padding: 6px 16px; }
.cabecera-ppa.sticky .cab-logo  { font-size: 18px; }

.cab-spacer { height: 88px; transition: height 0.2s; }
.cab-spacer.sticky { height: 52px; }

/* =================================================================
   DRAWER MENÚ — fondo violeta oscuro
   ================================================================= */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(42,20,8,0.6);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.menu-overlay.abierto { opacity: 1; pointer-events: all; }

.menu-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 260px; height: 100%;
  background: var(--violeta);
  z-index: 201;
  transition: right 0.22s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.menu-drawer.abierto { right: 0; }

.menu-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-drawer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 900;
  color: var(--papel);
}
.menu-cerrar {
  background: none; border: none;
  color: rgba(240,230,204,0.7); font-size: 18px;
  cursor: pointer; padding: 4px;
}

.menu-nav { padding: 8px 0; flex: 1; }
.menu-nav a {
  display: block;
  padding: 13px 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--papel);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s, background 0.15s;
}
.menu-nav a:hover { color: var(--papel); background: rgba(255,255,255,0.08); }
.menu-nav a.activo { color: #F5C842; }

/* =================================================================
   PIE — fondo violeta
   ================================================================= */
.pie {
  background: var(--violeta);
  color: var(--papel);
  padding: 20px 0;
  margin-top: 32px;
}
.pie .contenedor { display: flex; flex-direction: column; gap: 8px; }
.pie-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 900;
  color: var(--papel);
}
.pie-bajada { font-size: 9px; color: rgba(240,230,204,0.6); letter-spacing: 0.05em; }
.pie-meta {
  display: flex; flex-wrap: wrap;
  gap: 4px 10px; font-size: 9px;
}
.pie-meta a { color: rgba(240,230,204,0.6); }
.pie-meta a:hover { color: var(--papel); }
.pie-legal { font-size: 8px; color: rgba(240,230,204,0.3); letter-spacing: 0.05em; }

/* =================================================================
   KICKER — patrón único para todas las secciones
   ================================================================= */
.kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rojo);
}
.kicker-linea {
  height: 2px; background: var(--oliva);
  margin: 7px 0 12px;
}

/* =================================================================
   UTILIDADES
   ================================================================= */
.sube { color: var(--oliva); font-weight: 600; }
.baja { color: var(--rojo); font-weight: 600; }
.dato-stale { opacity: 0.5; }

/* Ocultar elementos legacy */
.barra-superior, .nav-principal, .franja-datos,
.cabecera-home, .nav-principal { display: none; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--linea); border-radius: 2px; }
