/* =========================================================
   Soft Brutalist Consultant - Theme Styles
   ========================================================= */

:root {
  --bg: #faf7f2;
  --surface: #f3ede4;
  --fg: #15151c;
  --muted: #6b6b76;
  --border: #e6e0d6;
  --card: #ffffff;
  --primary: #15151c;
  --primary-fg: #faf7f2;
  --accent-start: #ff7e5f;
  --accent-end: #feb47b;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;

  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section--alt { background: var(--surface); }
.section--cta { background: var(--fg); color: var(--primary-fg); }
.section--cta .sbc-lead-form__title,
.section--cta .sbc-lead-form__subtitle { color: var(--primary-fg); }

.section__head { margin-bottom: 48px; max-width: 720px; }
.section__head .link { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.display { font-family: var(--font-display); font-size: clamp(40px, 7vw, 88px); line-height: 0.95; margin: 0 0 24px; letter-spacing: -0.01em; text-transform: uppercase; }
.display-sm { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); line-height: 1; margin: 0 0 16px; text-transform: uppercase; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 600px; }

/* ---------- Brand ---------- */
@keyframes blink-cursor {
  0%, 48%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px var(--border);
  transition: box-shadow 0.35s ease, transform 0.3s ease;
}
.brand-link:hover .brand-avatar-wrap {
  box-shadow:
    0 0 0 2px var(--accent-start),
    0 0 18px -3px color-mix(in srgb, var(--accent-start) 55%, transparent);
  transform: scale(1.07) rotate(-3deg);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.brand-link:hover .brand-name { color: var(--accent-start); }

.brand-cursor {
  color: var(--accent-start);
  animation: blink-cursor 1.1s step-start infinite;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    top          0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background   0.4s ease,
    border-color 0.4s ease;
}

/* Gradient accent rule appears on scroll */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-start) 35%, var(--accent-end) 65%, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header.is-scrolled::after { opacity: 0.5; }
.site-header.is-hidden { top: -80px; }

/* Nav wrap */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
}

/* Right cluster: nav + cta + toggle */
.nav-end {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Brand */
.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Desktop menu list */
.site-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }

/* Link base — desktop */
.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.site-nav a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }

/* Number */
.nav-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.site-nav a:hover .nav-num { color: var(--accent-start); opacity: 1; }

/* Text reveal label */
.nav-label { display: block; line-height: 1.3; }
.nav-label__inner {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text-reveal effect: desktop / fine pointer only */
@media (pointer: fine) {
  .nav-label { overflow: hidden; height: 1.3em; }
  .nav-label__inner::after {
    content: attr(data-text);
    position: absolute;
    top: 100%; left: 0;
    font-weight: 600;
    white-space: nowrap;
    color: var(--fg);
  }
  .site-nav a:hover .nav-label__inner { transform: translateY(-100%); }
}

/* CTA pill button */
.nav-cta {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border: 1.5px solid color-mix(in srgb, var(--fg) 22%, transparent);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background    0.25s ease,
    border-color  0.25s ease,
    color         0.25s ease,
    transform     0.2s ease;
}
.nav-cta:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--primary-fg);
  transform: translateY(-1px);
}
.nav-cta__arrow { display: inline-block; transition: transform 0.25s ease; }
.nav-cta:hover .nav-cta__arrow { transform: translateX(3px); }

@media (min-width: 761px) { .nav-cta { display: flex; } }
/* ── Hamburger button (base, hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 40px; height: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
  position: relative;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform  0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity    0.25s ease,
    width      0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease;
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3) { width: 22px; }

.nav-toggle.is-open span:nth-child(1) { width: 22px; transform: translateY(8px) rotate(45deg);  background: var(--primary-fg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { width: 22px; transform: translateY(-8px) rotate(-45deg); background: var(--primary-fg); }

/* ── Mobile full-screen nav ── */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--fg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 40px 64px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    overflow-y: auto;
  }

  /* accent line that sweeps in */
  .site-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 40px; right: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  }

  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav.is-open::before { transform: scaleX(1); }

  /* list */
  .site-nav .menu {
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0; padding: 0;
  }

  .site-nav .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
  }
  .site-nav .menu li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }

  /* link items */
  .site-nav .menu a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    border-radius: 0;
    background: transparent !important;
    font-family: var(--font-display);
    font-size: clamp(36px, 13vw, 68px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transform: translateY(32px);
    opacity: 0;
    transition:
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      opacity   0.45s ease,
      color     0.2s ease;
  }
  .site-nav .menu a:hover { color: #fff; }

  /* mobile number (JS-added .nav-num span) */
  .site-nav .menu .nav-num {
    font-size: 11px;
    color: var(--accent-start);
    opacity: 1;
    padding-top: 12px;
    min-width: 28px;
  }

  /* mobile label — no overflow clip, full display font */
  .site-nav .menu .nav-label { overflow: visible; height: auto; }
  .site-nav .menu .nav-label__inner {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transform: none !important; /* disable text-reveal on mobile */
  }
  .site-nav .menu .nav-label__inner::after { display: none; }

  /* stagger in */
  .site-nav.is-open .menu a { transform: translateY(0); opacity: 1; }
  .site-nav.is-open .menu li:nth-child(1) a { transition-delay: 0.07s; }
  .site-nav.is-open .menu li:nth-child(2) a { transition-delay: 0.14s; }
  .site-nav.is-open .menu li:nth-child(3) a { transition-delay: 0.21s; }
  .site-nav.is-open .menu li:nth-child(4) a { transition-delay: 0.28s; }
  .site-nav.is-open .menu li:nth-child(5) a { transition-delay: 0.35s; }

  /* header floats above overlay when open */
  body.nav-open .site-header {
    z-index: 201;
    top: 0 !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  body.nav-open .site-header::after { opacity: 0; }
  body.nav-open .brand-text        { color: var(--primary-fg); }
  body.nav-open .custom-logo-link  { filter: brightness(0) invert(1); }

  /* scroll lock */
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; overflow: hidden; }
.hero__bg { position: absolute; inset: -10%; opacity: 0.45; z-index: 0; filter: blur(20px); }
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__form { margin-top: 32px; max-width: 640px; }

.gradient-mesh {
  background:
    radial-gradient(at 0% 0%, var(--accent-start) 0%, transparent 50%),
    radial-gradient(at 100% 100%, var(--accent-end) 0%, transparent 50%),
    radial-gradient(at 50% 50%, #ffd6c2 0%, transparent 60%);
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(21,21,28,.08); }
.card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; margin: 0 0 12px; letter-spacing: 0.01em; }
.card__body { color: var(--muted); font-size: 15px; }
.card__media img { border-radius: var(--radius-sm); margin-bottom: 16px; }

/* ---------- Recurso card ---------- */
.recurso-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.recurso-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(21,21,28,.1); }
.recurso-card__link { text-decoration: none; color: inherit; display: block; }
.recurso-card__art {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  position: relative; overflow: hidden;
}
.recurso-art--2 { background: linear-gradient(135deg, #6a82fb, #fc5c7d); }
.recurso-art--3 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.recurso-art--4 { background: linear-gradient(135deg, #1f1c2c, #928dab); }
.recurso-card__art img { width: 100%; height: 100%; object-fit: cover; }
.recurso-card__body { padding: 22px; }
.recurso-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.tag, .badge, .meta-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag { background: var(--surface); color: var(--fg); }
.badge { background: var(--fg); color: var(--primary-fg); }
.meta-sm { color: var(--muted); padding: 4px 0; }
.recurso-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; line-height: 1.05; margin: 0 0 8px; }
.recurso-card__excerpt { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: 14px; }
.filter:hover, .filter.is-active { background: var(--fg); color: var(--primary-fg); border-color: var(--fg); }

/* ---------- Recurso single ---------- */
.recurso-hero { position: relative; padding: 80px 0 64px; overflow: hidden; }
.recurso-hero__bg { position: absolute; inset: -10%; opacity: 0.4; filter: blur(40px); }
.recurso-hero__inner { position: relative; z-index: 1; }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 500; color: var(--muted); }
.back-link:hover { color: var(--fg); }

.recurso-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 96px;
}
@media (max-width: 900px) { .recurso-grid { grid-template-columns: 1fr; } }

.recurso-aside__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 100px;
}
.highlights { list-style: none; padding: 0; margin: 16px 0; }
.highlights li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); }
.highlights li::before { content: "→"; position: absolute; left: 0; color: var(--accent-start); font-weight: 700; }

/* Recurso aside improvements */
.recurso-aside__header { margin-bottom: 24px; }
.recurso-aside__icon {
  font-size: 28px;
  color: var(--accent-start);
  margin-bottom: 12px;
  display: block;
}
.recurso-aside__header h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; margin: 0 0 8px; }
.recurso-aside__header p { color: var(--muted); font-size: 14px; margin: 0; }
.recurso-aside__hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  margin-top: 14px;
}

/* ── Blog Post Single ──────────────────────────────────── */
.post-hero {
  background: var(--fg);
  color: var(--primary-fg);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--accent-start) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.post-hero .back-link { color: rgba(255,255,255,0.5); margin-bottom: 32px; }
.post-hero .back-link:hover { color: #fff; }
.post-hero .back-link i { margin-right: 6px; }
.post-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.post-hero__meta .tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.post-hero__meta .meta-sm { color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 5px; }
.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 68px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 28px;
  max-width: 15ch;
}
.post-hero__byline {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.55);
}
.post-hero__byline strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.post-hero__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; object-position: top;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

/* Post body */
.post-body { padding: 64px 0; }
.post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16 / 7;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-tags__label { color: var(--muted); font-size: 14px; }
.post-tag {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.post-tag:hover { background: var(--fg); color: var(--primary-fg); border-color: var(--fg); }

/* Author bio */
.author-bio {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 48px; padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-bio__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: top;
  box-shadow: 0 0 0 2px var(--accent-start);
}
.author-bio__name {
  font-family: var(--font-display);
  font-size: 18px; text-transform: uppercase;
  margin: 0 0 8px; font-weight: 700;
}
.author-bio__desc { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.author-bio__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--accent-start);
}
.author-bio__cta:hover { text-decoration: underline; }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.post-nav__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.post-nav__item:hover { border-color: var(--accent-start); background: var(--surface); }
.post-nav__item--next { text-align: right; }
.post-nav__dir { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.post-nav__item--next .post-nav__dir { justify-content: flex-end; }
.post-nav__title { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.3; }

/* Related posts */
.related-posts { background: var(--surface); }
.related-posts__title { margin-bottom: 32px; }
.related-posts__title .eyebrow { display: block; margin-bottom: 8px; }

@media (max-width: 640px) {
  .post-hero { padding: 60px 0 52px; }
  .post-hero__title { font-size: clamp(28px, 8vw, 40px); }
  .author-bio { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
}

/* ── Blog Archive & Post Cards ─────────────────────────── */
.blog-archive .section__head { margin-bottom: 32px; }
.blog-grid { margin-top: 40px; }

/* Featured first post */
.post-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.post-featured__image {
  display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10;
}
.post-featured__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-featured__image:hover img { transform: scale(1.03); }
.post-featured__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05;
  margin: 12px 0 16px;
}
.post-featured__title a { text-decoration: none; color: inherit; }
.post-featured__title a:hover { color: var(--accent-start); }
.post-featured__excerpt { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 24px; }
.post-featured .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Post card */
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21,21,28,.09);
  border-color: color-mix(in srgb, var(--accent-start) 30%, var(--border));
}
.post-card__link { display: block; }
.post-card__image {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.post-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-card__meta .meta-sm { display: flex; align-items: center; gap: 4px; }
.post-card__title {
  font-family: var(--font-display); font-size: 20px; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.1; margin: 0;
}
.post-card__title a { text-decoration: none; color: inherit; }
.post-card__title a:hover { color: var(--accent-start); }
.post-card__excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.post-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px;
}
.post-card__date { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.post-card__read {
  font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--accent-start);
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s ease;
}
.post-card:hover .post-card__read { gap: 8px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px; color: var(--muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.3; }

@media (max-width: 760px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__image { order: -1; }
}

/* ---------- Forms ---------- */
/* ── Contact Form ──────────────────────────────────────── */
.sbc-cf { position: relative; }

/* Two-column row */
.sbc-cf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

/* Single field */
.sbc-cf__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.sbc-cf__field--full { grid-column: 1 / -1; }

.sbc-cf__field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.sbc-cf__field:focus-within label { color: var(--accent-start); }

.sbc-cf__field input,
.sbc-cf__field textarea,
.sbc-cf__field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  padding: 10px 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.sbc-cf__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b76' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
  cursor: pointer;
}
.sbc-cf__field input::placeholder,
.sbc-cf__field textarea::placeholder { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.sbc-cf__field input:focus,
.sbc-cf__field textarea:focus,
.sbc-cf__field select:focus { border-bottom-color: var(--accent-start); }

.sbc-cf__field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Submit button — full variant */
.sbc-cf__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: var(--fg);
  color: var(--primary-fg);
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-top: 8px;
}
.sbc-cf__submit:hover { transform: translateY(-2px); }
.sbc-cf__submit:active { transform: translateY(0); }
.sbc-cf__arrow { font-size: 22px; transition: transform 0.25s ease; }
.sbc-cf__submit:hover .sbc-cf__arrow { transform: translateX(6px); }

/* CTA section overrides — white fields on dark bg */
.section--cta .sbc-cf__field input,
.section--cta .sbc-cf__field textarea,
.section--cta .sbc-cf__field select { color: var(--primary-fg); border-bottom-color: rgba(255,255,255,0.25); }
.section--cta .sbc-cf__field input::placeholder,
.section--cta .sbc-cf__field textarea::placeholder { color: rgba(255,255,255,0.35); }
.section--cta .sbc-cf__field input:focus,
.section--cta .sbc-cf__field textarea:focus,
.section--cta .sbc-cf__field select:focus { border-bottom-color: var(--accent-end); }
.section--cta .sbc-cf__field label { color: rgba(255,255,255,0.5); }
.section--cta .sbc-cf__field:focus-within label { color: var(--accent-end); }
.section--cta .sbc-cf__submit {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
}
.section--cta .sbc-cf__field select {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--cta .sbc-cf__field select option { background: var(--fg); color: var(--primary-fg); }

/* Inline variant — footer */
.sbc-cf__inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sbc-cf--inline .sbc-cf__field { margin-bottom: 0; }
.sbc-cf--inline .sbc-cf__field input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.sbc-cf--inline .sbc-cf__field input:focus { border-color: var(--accent-start); outline: none; }
.sbc-cf__submit--inline {
  white-space: nowrap;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--primary-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.sbc-cf__submit--inline:hover { opacity: 0.85; }

/* Status message */
.sbc-cf__status,
.sbc-lead-form__status {
  font-size: 14px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  min-height: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.sbc-cf__status.is-error,
.sbc-lead-form__status.is-error,
.sbc-cf__status.is-success,
.sbc-lead-form__status.is-success {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sbc-cf__status.is-error,
.sbc-lead-form__status.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.sbc-cf__status.is-success,
.sbc-lead-form__status.is-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

@media (max-width: 640px) {
  .sbc-cf__row { grid-template-columns: 1fr; gap: 0; }
  .sbc-cf__inline { grid-template-columns: 1fr; }
  .sbc-cf__submit--inline { width: 100%; text-align: center; padding: 14px; }
}

/* ── Contact Page Layout ────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { position: sticky; top: 100px; }
.contact-info .display-sm { margin-top: 12px; }
.contact-info__lead { font-size: 16px; color: var(--muted); line-height: 1.65; margin: 0 0 40px; max-width: 32ch; }

.contact-meta { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-meta__item { display: flex; align-items: flex-start; gap: 14px; }
.contact-meta__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--accent-start);
  margin-top: 2px;
}
.contact-meta__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  display: block;
  margin-bottom: 2px;
}
.contact-meta__value { font-size: 15px; font-weight: 500; text-decoration: none; display: block; }
a.contact-meta__value:hover { color: var(--accent-start); }

.contact-socials { display: flex; flex-direction: column; gap: 0; }
.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.contact-social-link:first-child { border-top: 1px solid var(--border); }
.contact-social-link:hover { color: var(--fg); padding-left: 4px; }
.contact-social-link__left { display: flex; align-items: center; gap: 10px; }
.contact-social-link__left i { font-size: 16px; }

.contact-form-wrap { padding-top: 8px; }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { position: static; }
  .contact-info__lead { max-width: 100%; }
}

/* legacy compat — keep old selector alive for footer */
.sbc-lead-form__title { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; margin: 0 0 6px; }
.sbc-lead-form__subtitle { color: var(--muted); font-size: 14px; margin: 0; }
.section--cta .sbc-lead-form__title,
.section--cta .sbc-lead-form__subtitle { color: var(--primary-fg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 24px; font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: var(--radius-sm); border: 0; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn-primary { background: var(--fg); color: var(--primary-fg); }
.btn-primary:hover { transform: translateY(-2px); }
.section--cta .btn-primary { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: white; }

/* ---------- Social pills ---------- */
.social-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.social-pill { padding: 12px 20px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-family: var(--font-mono); font-size: 14px; transition: background .2s; }
.social-pill:hover { background: var(--fg); color: var(--primary-fg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fg); color: var(--primary-fg); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 56px; margin-bottom: 56px; }

/* Brand column */
.footer-brand__link {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--primary-fg); margin-bottom: 14px;
}
.footer-brand__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.15);
}
.footer-brand__name {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
}
.footer-brand__desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; margin: 0 0 24px; max-width: 28ch; }

/* Social icons row */
.footer-social-icons { display: flex; gap: 6px; }
.footer-social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social-icon:hover {
  background: var(--accent-start);
  border-color: var(--accent-start);
  color: #fff;
  transform: translateY(-2px);
}

/* Nav column */
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 18px;
  font-weight: 400;
}
/* wp_nav_menu outputs <ul class="footer-nav__list"> */
.footer-nav__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav__list a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-nav__list a:hover,
.footer-nav__list .current-menu-item > a { color: #fff; }
/* wp_nav_menu footer-bottom outputs <ul class="footer-bottom__list"> */
.footer-bottom__list { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.footer-bottom__list a { text-decoration: none; color: rgba(255,255,255,0.3); transition: color 0.2s ease; font-size: 13px; }
.footer-bottom__list a:hover { color: rgba(255,255,255,0.7); }

/* Form column */
.footer-form__sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0 0 16px; }
.footer-form .sbc-cf--inline .sbc-cf__field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--primary-fg);
}
.footer-form .sbc-cf--inline .sbc-cf__field input::placeholder { color: rgba(255,255,255,0.3); }
.footer-form .sbc-cf--inline .sbc-cf__field input:focus { border-color: var(--accent-start); }
.footer-form .sbc-cf__submit--inline { background: var(--accent-start); color: #fff; }
.footer-form .sbc-cf__submit--inline:hover { opacity: 1; background: var(--accent-end); }
.footer-form .sbc-cf__status { color: rgba(255,255,255,0.6); background: transparent; border-color: transparent; }
.footer-form .sbc-cf__status.is-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.footer-form .sbc-cf__status.is-error { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.footer-bottom__nav { display: flex; gap: 20px; }
.footer-bottom__nav a { text-decoration: none; color: rgba(255,255,255,0.3); transition: color 0.2s ease; }
.footer-bottom__nav a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Prose ---------- */
.prose { font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--font-display); text-transform: uppercase; margin-top: 1.8em; }
.prose p { margin: 1em 0; }
.prose a { color: var(--accent-start); }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---------- Misc ---------- */
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--primary-fg); padding: 12px 16px; z-index: 999; }
.skip-link:focus { left: 0; }
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; margin: 0 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .current { background: var(--fg); color: var(--primary-fg); }
.hint { margin-top: 12px; color: var(--muted); }

/* =========================================================
   Home — Secciones específicas del homepage
   ========================================================= */

/* ── Hero ──────────────────────────────────────────────── */
.home-hero { position: relative; }

.home-hero__word {
  display: inline-block;
  will-change: transform, opacity;
}
.home-hero__word--accent {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cycling tagline */
.home-hero__tagline {
  position: relative;
  height: 1.7em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(13px, 2vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.home-hero__role {
  position: absolute;
  top: 0; left: 0;
  display: block;
  line-height: 1.7;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-hero__role.is-active {
  clip-path: inset(0 0 0% 0);
}

/* Botón outline */
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 12px 24px;
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--primary-fg);
  transform: translateY(-2px);
}

.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
}

/* Scroll hint */
.home-hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 24px;
}
.home-hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent-start), transparent);
  transform-origin: top;
}

@media (max-width: 760px) {
  .home-hero__scroll-hint { display: none; }
  .home-hero__ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Stats Bar ─────────────────────────────────────────── */
.home-stats {
  background: var(--fg);
  color: var(--primary-fg);
  padding: 64px 0;
}
.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.home-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  will-change: contents;
}
.home-stat__num--text {
  letter-spacing: -0.02em;
}
.home-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

@media (max-width: 680px) {
  .home-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

/* ── Ecosistema Digital ────────────────────────────────── */
.home-eco__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.eco-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, opacity;
}
.eco-card:hover {
  border-color: color-mix(in srgb, var(--accent-start) 45%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent-start) 15%, transparent);
}

.eco-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.eco-card__icon {
  font-size: 22px;
  line-height: 1;
}
.eco-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.45;
  padding-top: 2px;
}

.eco-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
}

.eco-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.eco-card__list li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.eco-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-start);
  font-size: 11px;
  top: 2px;
}

.eco-card--cta {
  background: color-mix(in srgb, var(--accent-start) 5%, var(--card));
  border-color: color-mix(in srgb, var(--accent-start) 22%, var(--border));
}
.eco-card--cta .eco-card__title {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 900px) {
  .home-eco__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .home-eco__grid { grid-template-columns: 1fr; gap: 12px; }
  .eco-card { padding: 22px 18px; }
}

/* ── Service List ──────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; }

.svc-item {
  display: grid;
  grid-template-columns: 68px 1fr 40px;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  will-change: transform, opacity;
  transition: padding-left 0.3s ease;
}
.svc-list .svc-item:first-child { border-top: 1px solid var(--border); }

/* hover background sweep */
.svc-item::before {
  content: '';
  position: absolute;
  inset: 0 -4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-start) 5%, var(--bg));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}
.svc-item:hover::before { opacity: 1; }

.svc-item__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  flex-shrink: 0;
}
.svc-item__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.45;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.svc-item__icon {
  font-size: 26px;
  line-height: 1;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-item:hover .svc-item__num { color: var(--accent-start); opacity: 1; }
.svc-item:hover .svc-item__icon { transform: scale(1.15) rotate(-5deg); }

.svc-item__body { min-width: 0; }

.svc-item__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 7px;
  transition: color 0.2s ease;
}
.svc-item:hover .svc-item__title { color: var(--accent-start); }

.svc-item__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 54ch;
}

.svc-item__arrow {
  font-size: 22px;
  color: var(--muted);
  opacity: 0.4;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s ease, opacity 0.2s ease;
}
.svc-item:hover .svc-item__arrow {
  transform: translateX(8px);
  color: var(--accent-start);
  opacity: 1;
}

@media (max-width: 760px) {
  .svc-item { grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; }
  .svc-item__arrow { display: none; }
  .svc-item__title { font-size: clamp(18px, 5vw, 24px); }
}

/* ── Proceso ───────────────────────────────────────────── */
.home-proceso__track {
  position: relative;
  display: flex;
  flex-direction: column;
}
.home-proceso__line {
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: var(--border);
  z-index: 0;
  overflow: hidden;
  border-radius: 2px;
}
.home-proceso__line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-start), var(--accent-end));
  transform-origin: top;
  border-radius: 2px;
}
.home-proceso__step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.home-proceso__step:last-child { border-bottom: none; }
.home-proceso__step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.home-proceso__step.is-active .home-proceso__step-num {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  color: #fff;
}
.home-proceso__step-body { flex: 1; padding-top: 10px; }
.home-proceso__step-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 8px;
}
.home-proceso__step-desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

@media (max-width: 600px) {
  .home-proceso__line { left: 19px; }
  .home-proceso__step-num { width: 40px; height: 40px; font-size: 11px; }
  .home-proceso__step { gap: 20px; }
}

/* ── prefers-reduced-motion overrides (home) ───────────── */
@media (prefers-reduced-motion: reduce) {
  .home-hero__word              { opacity: 1 !important; transform: none !important; }
  .home-hero__scroll-line       { animation: none !important; opacity: 0.6; }
  .eco-card                     { opacity: 1 !important; transform: none !important; }
  .svc-item                     { opacity: 1 !important; transform: none !important; }
  .home-proceso__line-fill      { height: 100% !important; }
  .recurso-card                 { opacity: 1 !important; transform: none !important; }
}

/* ---------- Page Transitions ---------- */
/* CSS safety net: overlay always reveals within 1.5s even if JS never fires */
@keyframes pt-fallback { to { transform: translateY(-100%); } }

#page-transition {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--fg);
  transform: translateY(0);           /* covers page on load */
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
  will-change: transform;
  animation: pt-fallback 0s 1.5s forwards; /* fallback: reveal after 1.5s */
}

body.page-ready #page-transition {
  animation: none;                    /* JS fired — cancel CSS fallback */
  transform: translateY(-100%);       /* sweeps up, reveals page */
}

body.page-leaving #page-transition {
  animation: none;                    /* cancel fallback during exit */
  transform: translateY(0);           /* sweeps back down, covers page */
  transition-duration: 0.45s;
  transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}

/* Entrance animations for key regions */
@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-ready .hero__inner {
  animation: anim-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}
body.page-ready .recurso-hero__inner {
  animation: anim-fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
body.page-ready .post-hero .container {
  animation: anim-fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
body.page-ready .section__head {
  animation: anim-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@media (prefers-reduced-motion: reduce) {
  #page-transition { transition: opacity 0.25s ease; animation: none; }
  body.page-ready   #page-transition { transform: none; opacity: 0; animation: none; }
  body.page-leaving #page-transition { transform: none; opacity: 1; animation: none; }
  body.page-ready .hero__inner,
  body.page-ready .recurso-hero__inner,
  body.page-ready .post-hero .container,
  body.page-ready .section__head { animation: none; }
}

/* ---------- Touch Ripple (pointer: coarse) ---------- */
@media (pointer: coarse) {
  .touch-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    width: 72px; height: 72px;
    border: 1.5px solid var(--accent-start);
    animation: touch-ripple-out 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes touch-ripple-out {
    0%   { transform: translate(-50%, -50%) scale(0);    opacity: 0.7; }
    60%  { opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1);    opacity: 0; }
  }
}

/* ---------- Custom Cursor (pointer: fine only) ---------- */
@media (pointer: fine) {
  body,
  a, button, [role="button"], label, input, select, textarea, summary {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--fg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition:
      width  0.28s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
      background 0.28s ease,
      border-radius 0.28s ease,
      opacity 0.35s ease;
    will-change: left, top, transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 2px solid var(--fg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      width  0.5s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.4s ease,
      border-width 0.4s ease,
      background  0.4s ease,
      border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease;
    will-change: left, top, transform;
  }

  /* ── dark sections (CTA home, footer) ── */
  .cursor-dot.is-dark { background: #fff; }
  .cursor-ring.is-dark { border-color: rgba(255,255,255,0.5); }
  .cursor-dot.is-dark.is-link { background: var(--accent-start); }
  .cursor-ring.is-dark.is-link {
    border-color: var(--accent-start);
    background: color-mix(in srgb, var(--accent-start) 15%, transparent);
  }

  /* ── hover: link / button ── */
  .cursor-dot.is-link {
    width: 6px; height: 6px;
    background: var(--accent-start);
  }
  .cursor-ring.is-link {
    width: 68px; height: 68px;
    border-color: var(--accent-start);
    background: color-mix(in srgb, var(--accent-start) 10%, transparent);
  }

  /* ── hover: image / figure / video ── */
  .cursor-dot.is-image {
    width: 5px; height: 5px;
    background: #fff;
    mix-blend-mode: difference;
  }
  .cursor-ring.is-image {
    width: 80px; height: 80px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.85);
    border-width: 1.5px;
    background: rgba(0, 0, 0, 0.1);
  }

  /* ── fast movement: ring fades ── */
  .cursor-ring.is-fast {
    opacity: 0.3;
    transition-duration: 0.08s;
  }

  /* ── click feedback on dot ── */
  @keyframes cursor-dot-pop {
    0%   { transform: translate(-50%,-50%) scale(1); }
    40%  { transform: translate(-50%,-50%) scale(0.35); }
    100% { transform: translate(-50%,-50%) scale(1); }
  }
  .cursor-dot.is-click {
    animation: cursor-dot-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
