/*
Theme Name: Astra Child - PROTEINA
Template: astra
Version: 2.0.1
Author: agarassino
Description: Rebranding 2026 de proteina.com.ar — "la guía honesta de proteínas en Argentina". Sistema editorial Archivo + Public Sans, paleta papel/blaze, scorecards propios. Ver DESIGN.md.
*/

/* ==========================================================================
   DESIGN SYSTEM — PROTEINA 2026 (ver DESIGN.md)
   ========================================================================== */

:root {
  --paper: #f5f3ee;
  --surface: #eae6dd;
  --ink: #17191b;
  --blaze: #ff4a1c;
  --blaze-dark: #d93c10;
  --pine: #0f6b4f;
  --gold: #f2b417;
  --green-bar: #22b573;
  --muted: #6b655a;
  --muted-soft: #9b9384;
  --hairline: rgba(23, 25, 27, 0.08);

  --font-display: "Archivo", -apple-system, system-ui, sans-serif;
  --font-body: "Public Sans", -apple-system, system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 6px 20px rgba(23, 25, 27, 0.08);
  --shadow-card: 0 4px 12px rgba(23, 25, 27, 0.06);
}

/* ==========================================================================
   BASE
   ========================================================================== */

body.proteina-2026 {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

.proteina-2026 h1,
.proteina-2026 h2,
.proteina-2026 h3,
.proteina-2026 h4,
.proteina-2026 .entry-title,
.proteina-2026 .ast-single-post .entry-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.15;
}

.proteina-2026 h1,
.proteina-2026 .entry-title {
  font-weight: 900;
  letter-spacing: -1px;
}

.proteina-2026 a {
  color: var(--blaze);
  text-decoration: none;
}
.proteina-2026 a:hover {
  color: var(--blaze-dark);
}

.proteina-2026 .site-content {
  background: var(--paper);
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.proteina-2026 .site-header,
.proteina-2026 .ast-primary-header-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.proteina-2026 .site-title,
.proteina-2026 .ast-site-title-wrap .site-title a {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.proteina-2026 .main-header-menu .menu-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: #4b463d;
}
.proteina-2026 .main-header-menu .menu-link:hover {
  color: var(--blaze);
}

/* CTA "Guía 2026" en el menú: marcar el item con la clase .cta-guia */
.proteina-2026 .menu-item.cta-guia .menu-link {
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 10px 18px;
}
.proteina-2026 .menu-item.cta-guia .menu-link:hover {
  background: var(--blaze);
}

/* ==========================================================================
   LOOP / TARJETAS DE ARTÍCULO (markup de Astra)
   ========================================================================== */

.proteina-2026 .ast-article-post,
.proteina-2026 article.post {
  background: #fcfbf8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
}

.proteina-2026 .ast-article-post .post-thumb,
.proteina-2026 .ast-article-post .post-thumb-img-content {
  position: relative;
}

/* Badge de categoría sobre la imagen (Astra imprime .cat-links) */
.proteina-2026 .ast-article-post .cat-links {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}
.proteina-2026 .ast-article-post .cat-links a {
  color: var(--paper);
}

.proteina-2026 .ast-article-post .entry-title {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.proteina-2026 .ast-article-post .entry-title a {
  color: var(--ink);
}
.proteina-2026 .ast-article-post .entry-title a:hover {
  color: var(--blaze);
}

.proteina-2026 .ast-excerpt-container {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.proteina-2026 .read-more,
.proteina-2026 .ast-button {
  color: var(--blaze);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   COMPONENTES DE MARCA (bloques HTML / patrones reutilizables)
   ========================================================================== */

/* Hero de la home ------------------------------------------------------- */
.proteina-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 52px 0;
}
.proteina-hero__copy { flex: 1.3; }
.proteina-hero__eyebrow {
  display: inline-block;
  background: var(--surface);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.proteina-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 0;
}
.proteina-hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: #5b554a;
  max-width: 520px;
  margin: 18px 0 26px;
}
.proteina-hero__aside {
  flex: 1;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px;
}

/* Botones --------------------------------------------------------------- */
.proteina-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.proteina-btn--primary {
  background: var(--blaze);
  color: var(--paper);
}
.proteina-btn--primary:hover {
  background: var(--blaze-dark);
  color: var(--paper);
}
.proteina-btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

/* Chips de categoría ---------------------------------------------------- */
.proteina-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fcfbf8;
  color: var(--ink);
}
.proteina-chip--active {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
}

/* Scorecard de review (shortcode [proteina_scorecard]) ------------------ */
.proteina-scorecard {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}
.proteina-scorecard__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.proteina-scorecard__badge {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: var(--radius-lg);
  background: var(--blaze);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
}
.proteina-scorecard__badge small {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}
.proteina-scorecard__verdict {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}
.proteina-scorecard__verdict span {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: #a29a8b;
  margin-top: 3px;
}
.proteina-scorecard__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.proteina-scorecard__label {
  width: 96px;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: #c9c3b6;
}
.proteina-scorecard__bar {
  flex: 1;
  height: 8px;
  background: #2c2f32;
  border-radius: 999px;
  overflow: hidden;
}
.proteina-scorecard__bar > span {
  display: block;
  height: 100%;
  background: var(--green-bar);
  border-radius: 999px;
}
.proteina-scorecard__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  width: 26px;
  text-align: right;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   HOME — página de bloques (clases REALES del maquetador)
   Sobrescribe los componentes de arriba con el markup que usa la home.
   ========================================================================== */

/* Hero: título + bajada + CTA, apilados y con aire */
.proteina-2026 .proteina-hero {
  display: block;
  max-width: 860px;
  margin: 8px 0 40px;
  padding: 0;
}
.proteina-2026 .proteina-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
}
.proteina-2026 .proteina-hero .subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 26px;
}
.proteina-2026 .proteina-hero .cta {
  display: inline-block;
  background: var(--blaze);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.proteina-2026 .proteina-hero .cta:hover {
  background: var(--blaze-dark);
  color: var(--paper);
}

/* Chips de categoría (píldoras) */
.proteina-2026 .proteina-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 48px;
}
.proteina-2026 .proteina-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: #fcfbf8;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.proteina-2026 .proteina-category:hover {
  background: var(--ink);
  color: var(--paper);
}
.proteina-2026 .proteina-category .icon {
  font-size: 16px;
  line-height: 1;
}

/* Título de sección */
.proteina-2026 .proteina-section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 8px 0 22px;
}

/* Grilla de posts */
.proteina-2026 .proteina-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.proteina-2026 .proteina-post-card {
  display: flex;
  flex-direction: column;
  background: #fcfbf8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.proteina-2026 .proteina-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(23, 25, 27, 0.12);
  color: var(--ink);
}
.proteina-2026 .proteina-post-card .thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.proteina-2026 .proteina-post-card .content {
  padding: 18px 20px 22px;
}
.proteina-2026 .proteina-post-card .category-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.proteina-2026 .proteina-post-card .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 8px;
}
.proteina-2026 .proteina-post-card .excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* La home es una página: sacar el padding/caja de artículo de Astra */
.proteina-2026 .page .ast-article-single {
  padding: 24px 0 0;
}

@media (max-width: 600px) {
  .proteina-2026 .proteina-posts {
    grid-template-columns: 1fr;
  }
}
