/*
 * base.css
 * Reset, tipografía base, botones, labels, utilidades globales.
 * Incluye estilos para páginas internas (prose, post cards, paginación).
 */

/* ── RESET ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}
  html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
body {
  background-color: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-primary);
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-base);
  overflow-x: hidden;
}

/* Admin bar offset */
body.admin-bar .cl-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .cl-header { top: 46px; }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base), opacity var(--t-base);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { list-style: none; }
em     { font-style: normal; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--c-white);
}

p {
  max-width: 65ch;
  color: var(--c-white-dim);
}

code, pre, .cl-mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0.02em;
}

/* ── LAYOUT ──────────────────────────────────────────── */
.cl-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.cl-main { min-height: 100vh; }

/* Padding top para páginas internas (offset del header fijo) */
.cl-inner-page {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: var(--section-py);
}

/* ── BOTONES ─────────────────────────────────────────── */
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-base);
  transition:
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base),
    transform var(--t-slow);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.cl-btn:hover          { transform: translateY(-1px); }
.cl-btn:active         { transform: translateY(0); }

.cl-btn--primary {
  background: var(--c-red);
  color: var(--c-white);
  border: 1px solid var(--c-red);
}
.cl-btn--primary:hover {
  background: var(--c-red-deep);
  border-color: var(--c-red-deep);
  color: var(--c-white);
}

.cl-btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid var(--c-border-mid);
}
.cl-btn--outline:hover {
  border-color: var(--c-white-muted);
  color: var(--c-white);
}

.cl-btn--ghost {
  background: transparent;
  color: var(--c-white-dim);
  border: 1px solid var(--c-border);
  padding: var(--space-2) var(--space-5);
}
.cl-btn--ghost:hover {
  color: var(--c-white);
  border-color: var(--c-border-mid);
}

/* ── LABELS / EYEBROWS ───────────────────────────────── */
.cl-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--c-white-muted);
}

.cl-label__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-red);
  flex-shrink: 0;
}

.cl-label--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ── SECTION HEADER ──────────────────────────────────── */
.cl-section-header {
  margin-bottom: var(--space-12);
}
.cl-section-header .cl-label {
  margin-bottom: var(--space-4);
}
.cl-section-header__title {
  font-size: var(--size-3xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 20ch;
}

/* ── PAGE HEADER (páginas internas) ──────────────────── */
.cl-page-header {
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--space-12);
}
.cl-page-header .cl-label {
  margin-bottom: var(--space-4);
}
.cl-page-header__title {
  font-size: var(--size-3xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}
.cl-page-header__desc {
  margin-top: var(--space-4);
  font-size: var(--size-md);
  color: var(--c-white-dim);
  max-width: 55ch;
}

/* ── PROSE (contenido del editor) ────────────────────── */
.cl-prose {
  color: var(--c-white-dim);
  font-size: var(--size-base);
  line-height: var(--leading-normal);
  max-width: 72ch;
}
.cl-prose p             { margin-bottom: var(--space-5); max-width: 72ch; color: var(--c-white-dim); }
.cl-prose h2            { font-size: var(--size-2xl); margin: var(--space-10) 0 var(--space-4); color: var(--c-white); }
.cl-prose h3            { font-size: var(--size-xl); margin: var(--space-8) 0 var(--space-3); color: var(--c-white); }
.cl-prose a             { color: var(--c-red); text-decoration: underline; text-underline-offset: 3px; }
.cl-prose a:hover       { color: var(--c-white); }
.cl-prose ul,
.cl-prose ol            { list-style: initial; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.cl-prose li            { margin-bottom: var(--space-2); color: var(--c-white-dim); }
.cl-prose blockquote    {
  border-left: 2px solid var(--c-red);
  padding-left: var(--space-5);
  margin: var(--space-8) 0;
  font-size: var(--size-md);
  color: var(--c-white-dim);
}
.cl-prose code          {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}
.cl-prose img           { max-width: 100%; margin: var(--space-8) 0; }
.cl-prose hr            { border: none; border-top: 1px solid var(--c-border); margin: var(--space-10) 0; }

/* ── POST CARDS (blog) ───────────────────────────────── */
.cl-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.cl-post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-slow);
  position: relative;
}
.cl-post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--c-red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t-slow);
}
.cl-post-card:hover { border-color: var(--c-border-mid); transform: translateY(-3px); }
.cl-post-card:hover::before { transform: scaleY(1); }

.cl-post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }

.cl-post-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cl-post-card__title {
  font-size: var(--size-lg);
  font-weight: var(--weight-semi);
  color: var(--c-white);
  letter-spacing: 0;
  line-height: var(--leading-snug);
}
.cl-post-card__title a { color: var(--c-white); }
.cl-post-card__title a:hover { color: var(--c-red); }
.cl-post-card__excerpt { font-size: var(--size-sm); color: var(--c-white-muted); max-width: none; }
.cl-post-card__link { margin-top: auto; align-self: flex-start; }

/* ── PAGINACIÓN ──────────────────────────────────────── */
.cl-pagination,
.pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}
.cl-pagination .nav-links,
.pagination .nav-links {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.cl-pagination .page-numbers,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: var(--size-sm);
  color: var(--c-white-muted);
  border: 1px solid var(--c-border);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.cl-pagination .page-numbers:hover,
.pagination .page-numbers:hover,
.cl-pagination .page-numbers.current,
.pagination .page-numbers.current {
  background: var(--c-red);
  color: var(--c-white);
  border-color: var(--c-red);
}

/* ── ESTADOS VACÍOS / ERROR ──────────────────────────── */
.cl-empty-state,
.cl-error-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-20) 0;
}
.cl-error-state__title {
  font-size: var(--size-3xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 20ch;
}
.cl-error-state__desc {
  font-size: var(--size-md);
  color: var(--c-white-dim);
  max-width: 45ch;
}
.cl-error-state__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── SKIP LINK ───────────────────────────────────────── */
.cl-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--c-red);
  color: var(--c-white);
  font-size: var(--size-sm);
}
.cl-skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ── TEXT UTILS ──────────────────────────────────────── */
.cl-text--red   { color: var(--c-red); }
.cl-text--muted { color: var(--c-white-muted); }
.cl-text--dim   { color: var(--c-white-dim); }
.cl-text--mono  { font-family: var(--font-mono); }
.cl-text--upper { text-transform: uppercase; letter-spacing: var(--tracking-wider); }

/* ── REVEAL ANIMATIONS ───────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-crawl), transform var(--t-crawl);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.10s; }
[data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal-delay="3"] { transition-delay: 0.38s; }
[data-reveal-delay="4"] { transition-delay: 0.55s; }
/* ═══════════════════════════════════════
   FIX GLOBAL TIPOGRAFÍA — INTER ONLY
═══════════════════════════════════════ */

:root {
  --font-primary: "Inter", "Helvetica Neue", Arial, sans-serif !important;
  --font-mono: "IBM Plex Mono", Consolas, monospace !important;
}

/* Forzamos TODO el sistema */
html, body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, small, strong, em,
button, input, textarea, label {

  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
}

/* Componentes del sitio */
.cl-btn,
.cl-label,
.cl-label--vertical,
.cl-hero__eyebrow,
.cl-hero__title,
.cl-hero__desc,
.cl-positioning__headline,
.cl-positioning__body,
.cl-benefit__title,
.cl-benefit__desc,
.cl-seeds__title,
.cl-seeds__sub,
.cl-seed-card__title,
.cl-seed-card__desc,
.cl-product-card__name,
.cl-product-card__desc,
.cl-product-card__phase,
.cl-product-card__link,
.cl-band__phrase,
.cl-stat__label,
.cl-section-header__title,
.cl-page-header__title,
.cl-page-header__desc,
.cl-prose,
.cl-prose p,
.cl-prose li,
.cl-prose h2,
.cl-prose h3 {

  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
}html, body, body * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* FIX GLOBAL TIPOGRAFÍA */
html, body, body * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}