/* ============================================
   CostaCX — Sistema visual
   ============================================ */

/* Skip link accesibilidad */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

:root {
  --black: #0a0a0a;
  --white-raw: #f5f5f5;
  --white-pure: #ffffff;
  --yellow: #f5d300;
  --hairline: rgba(245, 245, 245, 0.12);
  --hairline-dark: rgba(10, 10, 10, 0.12);
  --muted: rgba(245, 245, 245, 0.55);
  --muted-dark: rgba(10, 10, 10, 0.55);

  --display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --section-pad-y: clamp(80px, 12vw, 160px);
  --gutter: clamp(20px, 4vw, 56px);
  --max-w: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--black);
  color: var(--white-raw);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: var(--yellow);
  color: var(--black);
}

/* ===== Type ===== */

.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--white-pure);
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--white-raw);
  max-width: 60ch;
}

/* ===== Layout primitives ===== */

.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

.section.invert {
  background: var(--white-pure);
  color: var(--black);
}

.section.invert .display { color: var(--black); }
.section.invert .eyebrow { color: var(--muted-dark); }
.section.invert .lede { color: var(--black); }
.section.invert .hairline,
.section.invert .hairline-h { background: var(--hairline-dark); }

.hairline {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  margin: 0;
  border: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 80px;
}

.section.invert .section-head { border-bottom-color: var(--hairline-dark); }

.section-head .meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  align-self: end;
}

.section.invert .section-head .meta { color: var(--muted-dark); }

@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
    margin-bottom: 48px;
  }
  .section-head .meta { text-align: left; }
}

/* ===== Animated underline link ===== */

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: inherit;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-underline:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
  animation: redrawUnderline 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes redrawUnderline {
  0%   { transform: scaleX(1); transform-origin: right center; }
  49%  { transform: scaleX(0); transform-origin: right center; }
  50%  { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

.link-arrow { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.link-underline:hover .link-arrow { transform: translateX(6px); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--black);
  color: var(--white-pure);
}

.btn-ghost {
  border: 1px solid var(--white-raw);
  color: var(--white-raw);
  padding: 17px 27px;
}
.btn-ghost:hover {
  background: var(--white-raw);
  color: var(--black);
}
.section.invert .btn-ghost {
  border-color: var(--black);
  color: var(--black);
}
.section.invert .btn-ghost:hover {
  background: var(--black);
  color: var(--white-pure);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 17px 27px;
  border: 1px solid #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

/* ===== Reveal on scroll ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Yellow accent (surgical) ===== */
.accent { color: var(--yellow); }

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav.invert {
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0));
  color: var(--black);
}

.nav-brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--white-pure);
}

.nav-links {
  display: flex;
  gap: 15px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a { opacity: 0.7; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

/* ── Hamburguesa ── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white-pure);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Líneas → X cuando está abierto */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Color invertido si nav sobre fondo blanco */
.nav.invert .nav-burger span { background: var(--black); }

@media (max-width: 720px) {
  .nav-burger { display: flex; z-index: 102; }
  .nav-burger.open span { background: var(--black); }

  /* ── Menú abierto: overlay a pantalla completa ── */
  .nav.menu-open {
    position: fixed;
    inset: 0;
    display: block;                   /* block en vez de flex */
    background: var(--yellow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    z-index: 100;
    overflow-y: auto;
  }

  /* Banda negra superior */
  .nav.menu-open::before {
    content: '';
    display: block;
    width: 100%;
    height: 64px;
    background: var(--black);
  }

  /* Brand: esquina izquierda dentro de la banda negra */
  .nav.menu-open .nav-brand {
    position: absolute;
    top: 0; left: var(--gutter);
    height: 64px;
    display: flex;
    align-items: center;
    color: var(--white-pure);
    z-index: 2;
  }
  .nav.menu-open .nav-brand span { color: var(--yellow) !important; }

  /* X: esquina derecha dentro de la banda negra */
  .nav.menu-open .nav-burger {
    position: absolute;
    top: 0; right: var(--gutter);
    height: 64px;
    display: flex;
    align-items: center;
    z-index: 2;
    margin-top: 15px;
  }
  .nav.menu-open .nav-burger span { background: var(--white-pure); }

  /* Links */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .nav-links.open {
    display: flex;
    margin-top: 44px;
  }
  .nav-links a {
    font-size: 28px;
    font-family: var(--display);
    text-transform: none;
    letter-spacing: -0.02em;
    opacity: 1;
    padding: 10px 0;
    color: var(--black);
    width: 100% !important;
    text-align: center;
  }
  .nav-links a:hover { opacity: 0.7; }

  /* Ocultar botones flotantes cuando el menú está abierto */
  body.menu-open .wa-fab,
  body.menu-open .wcx-chat { display: none !important; }
}

/* ===== HERO shared ===== */

.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-h1 {
  font-size: clamp(56px, 9vw, 148px);
  margin-top: 48px;
  max-width: 18ch;
}

.hero-h1 .yellow { color: var(--yellow); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  color: var(--white-pure);
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero-h1 {
    font-size: clamp(36px, 9vw, 52px);
    margin-top: 32px;
  }
  .hero-b .hero-h1 {
    font-size: clamp(38px, 10vw, 56px);
  }
  .hero-c .hero-h1 {
    font-size: clamp(44px, 12vw, 64px);
  }
  .hero {
    padding-top: 110px;
  }
}

/* ===== Triada / cards de servicios ===== */

.triada {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.triada-card {
  padding: 56px 40px 48px 40px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.4s;
  position: relative;
}
.triada-card:last-child { border-right: none; }
.triada-card:hover { background: rgba(245,211,0,0.04); }

.triada-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.triada-title {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  line-height: 1;
}

.triada-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-raw);
}

.triada-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.triada-bullets li::before {
  content: '— ';
  color: var(--muted);
}

@media (max-width: 900px) {
  .triada { grid-template-columns: 1fr; }
  .triada-card {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 40px var(--gutter);
  }
  .triada-card:last-child { border-bottom: none; }
}

/* ===== GEO bloque ===== */

.geo-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.geo-h {
  font-size: clamp(40px, 5vw, 80px);
}

.geo-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
}

.llm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.llm-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.llm-list li .name {
  font-family: var(--display);
  font-size: 22px;
  color: var(--white-pure);
  text-transform: none;
  letter-spacing: -0.02em;
}
.llm-list li .status {
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.llm-list li .status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 900px) {
  .geo-block { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== Casos / portfolio (showcase + thumbnails) ===== */

.casos-showcase-wrap {
  margin-top: 64px;
}

.showcase-header {
  margin-bottom: 40px;
}

.casos-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.showcase-image {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.showcase-image img,
.showcase-image .placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.showcase-image .placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark);
  background: repeating-linear-gradient(45deg, #ececec 0 8px, #f4f4f4 8px 16px);
  transition: opacity 0.5s;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.showcase-image .stamp {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--black); color: var(--white-pure);
  padding: 6px 10px;
  z-index: 2;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
}
.showcase-num {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark);
  display: flex; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 16px;
}
.showcase-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 15px;
  color: var(--black);
}
.showcase-subtitle {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.showcase-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  max-width: 50ch;
}
.showcase-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}

.casos-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.casos-thumb {
  aspect-ratio: 4/3;
  background: #ececec;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s, transform 0.4s;
}
.casos-thumb .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-dark);
  background: repeating-linear-gradient(45deg, #ececec 0 8px, #f4f4f4 8px 16px);
  text-align: center; padding: 6px;
}
.casos-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.casos-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.5);
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 1;
}
.casos-thumb:hover::after { opacity: 0.2; }
.casos-thumb.active::after { opacity: 0; }
.casos-thumb.active {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}
.casos-thumb-label {
  position: absolute; bottom: 4px; left: 6px;
  font-family: var(--mono); font-size: 9px;
  color: var(--black);
  background: var(--white-pure);
  padding: 2px 6px;
  z-index: 2;
}

@media (max-width: 900px) {
  .casos-showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase-image { height: 300px; }
  .casos-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .showcase-title { font-size: clamp(28px, 7vw, 44px); }
  .showcase-actions { flex-direction: column; align-items: stretch; }
  .showcase-actions .btn { justify-content: center; padding: 16px 20px; }
}
@media (max-width: 540px) {
  .casos-thumbs { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .casos-thumb-label { font-size: 8px; padding: 1px 4px; }
  .showcase-image .stamp { font-size: 10px; padding: 4px 8px; bottom: 10px; left: 10px; }
}

/* ===== Servicios completos (lista numerada) ===== */

.servicios-list {
  border-top: 1px solid var(--hairline);
}
.servicio-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: padding 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}

.servicio-row:hover {
  padding-left: 24px;
}
.servicio-row:hover .servicio-title { color: var(--yellow); }

.servicio-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.servicio-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  line-height: 1.1;
  transition: color 0.3s;
}

.servicio-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--white-raw);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .servicio-row {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .servicio-row .servicio-desc {
    grid-column: 2;
    margin-top: 8px;
  }
  .servicio-row:hover { padding-left: 0; }
}

/* ===== Quiénes somos ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-h {
  font-size: clamp(40px, 5vw, 80px);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 58ch;
  margin-top: 32px;
}

.about-body strong { color: var(--white-pure); font-weight: 600; }
.section.invert .about-body strong { color: var(--black); }

.capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.capabilities li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.capabilities li:nth-child(odd) { padding-right: 16px; }
.capabilities li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hairline); }
.capabilities li::before {
  content: counter(cap, decimal-leading-zero);
  counter-increment: cap;
  font-size: 11px;
  color: var(--muted);
}
.capabilities { counter-reset: cap; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li:nth-child(even) { border-left: none; padding-left: 0; }
}

/* ===== Testimonios ===== */

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.testimonio {
  padding: 56px 48px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.testimonio:nth-child(2n) { border-right: none; }

.testimonio-quote {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white-pure);
}

.testimonio-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.testimonio-author .name { color: var(--white-pure); }
.testimonio-author .company { color: var(--muted); }

@media (max-width: 720px) {
  .testimonios-grid { grid-template-columns: 1fr; }
  .testimonio { border-right: none; padding: 40px var(--gutter); }
}

/* ===== Blog ===== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.blog-card {
  padding: 32px 32px 48px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  transition: background 0.4s;
  cursor: pointer;
}
.blog-card:last-child { border-right: none; }
.blog-card:hover { background: rgba(245,245,245,0.02); }
.blog-card:hover .blog-title { color: var(--yellow); }

.blog-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-title {
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white-pure);
  flex-grow: 1;
  transition: color 0.3s;
}

.blog-bajada {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Blog featured — image cards */
.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: filter 0.5s, transform 0.5s;
}
.blog-card:hover .blog-card__image img {
  filter: grayscale(0);
  transform: scale(1.04);
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { border-right: none; border-bottom: 1px solid var(--hairline); }
  .blog-card:last-child { border-bottom: none; }
}

/* ===== CTA banda ===== */

.cta-banda {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta-h {
  font-size: clamp(48px, 7vw, 110px);
  max-width: 18ch;
}

.cta-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 50ch;
}

/* ===== Footer ===== */

.footer {
  padding: 80px var(--gutter) 32px;
  background: var(--black);
  color: var(--white-raw);
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand-name {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--white-pure);
  line-height: 1;
}
.footer-brand-name .accent { color: var(--yellow); }

.footer-brand p {
  margin-top: 24px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 400;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 15px;
  color: var(--white-raw);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--yellow); }

/* ── Footer social icons ── */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: 50%;
  color: #0a0a0a;
  font-size: 16px;
  transition: background 0.25s, transform 0.25s;
}
.footer-social-icon:hover {
  background: #fff;
  transform: scale(1.1);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-bottom-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Hero variants ===== */

/* Variant A — Safe / declarativo limpio (default) */
.hero-a .hero-h1 {
  text-wrap: balance;
}

/* Variant B — Editorial split */
.hero-b .hero-h1 {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  max-width: none;
}
.hero-b .hero-h1 .line {
  display: block;
}
.hero-b .hero-h1 .line-2 {
  padding-left: 18%;
}
.hero-b .hero-h1 .line-3 {
  padding-left: 6%;
}

/* Variant C — Experimental: massive, breaking out */
.hero-c {
  padding-top: 120px;
}
.hero-c .hero-h1 {
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  max-width: none;
}
.hero-c .hero-h1 .line { display: block; }
.hero-c .marquee-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-c .marquee-row span { display: inline-block; }

.hero-variant-switch {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(245,245,245,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
}
.hero-variant-switch button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  color: var(--muted);
  transition: all 0.3s;
}
.hero-variant-switch button.active {
  background: var(--yellow);
  color: var(--black);
}

/* ===== Cursor blob (CMYK) — only when enabled ===== */

body.blob-active { cursor: none; }
body.blob-active a, body.blob-active button { cursor: none; }

.clip-defs {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

.white-bg-layer {
  position: fixed;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
  z-index: 200;
  clip-path: url(#blob-clip);
  -webkit-clip-path: url(#blob-clip);
  display: none;
}

.color-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 201;
  clip-path: url(#blob-clip);
  -webkit-clip-path: url(#blob-clip);
  display: none;
  overflow: hidden;
}

body.blob-active .white-bg-layer,
body.blob-active .color-layer { display: block; }

.layer-cyan    { color: #00bcd4; mix-blend-mode: multiply; animation: jc 1.2s ease-in-out infinite; }
.layer-magenta { color: #e91e63; mix-blend-mode: multiply; animation: jm 1.4s ease-in-out infinite; }
.layer-yellow  { color: #ffc400; mix-blend-mode: multiply; animation: jy 1.0s ease-in-out infinite; }
.layer-black   { color: #000000; mix-blend-mode: multiply; }

@keyframes jc { 0%,100% { transform: translate(-3px,-2px);} 50% { transform: translate(-4px,-1px);} }
@keyframes jm { 0%,100% { transform: translate(2px,1px);}   50% { transform: translate(3px,2px);} }
@keyframes jy { 0%,100% { transform: translate(-1px,2px);}  50% { transform: translate(0px,3px);} }

.dot-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 10000;
  mix-blend-mode: difference;
  display: none;
}
body.blob-active .dot-cursor { display: block; }

@media (hover: none) {
  body.blob-active { cursor: auto; }
  .dot-cursor, .white-bg-layer, .color-layer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .layer-cyan, .layer-magenta, .layer-yellow { animation: none; }
}

/* ===== Process strip (servicio page) ===== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.process-step {
  padding: 40px 28px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
}
.process-step:last-child { border-right: none; }
.process-num {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: var(--white-pure);
  letter-spacing: -0.04em;
}
.section.invert .process-num { color: var(--black); }
.process-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white-pure);
}
.section.invert .process-title { color: var(--black); }
.process-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.section.invert .process-desc { color: var(--muted-dark); }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--hairline); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--hairline); }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step:nth-child(odd) { border-right: none; }
}

/* ===== Service hero (subtler) ===== */

.svc-hero {
  padding-top: 160px;
  padding-bottom: 80px;
}
.svc-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 32px;
}
.svc-hero h1 {
  font-size: clamp(56px, 9vw, 140px);
}
.svc-hero .lede {
  margin-top: 32px;
  font-size: clamp(18px, 1.6vw, 24px);
  max-width: 60ch;
}

/* ===== Big number metrics ===== */

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.metric {
  padding: 56px 32px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric:last-child { border-right: none; }
.metric-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  color: var(--white-pure);
  letter-spacing: -0.04em;
}
.section.invert .metric-num { color: var(--black); }
.metric-num .small { font-size: 0.5em; color: var(--muted); }
.section.invert .metric-num .small { color: var(--muted-dark); }
.metric-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 28ch;
}
.section.invert .metric-label { color: var(--muted-dark); }
.section.invert .metric { border-right-color: var(--hairline-dark); }

@media (max-width: 720px) {
  .metrics-row { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--hairline); }
  .metric:last-child { border-bottom: none; }
}

/* ===== Services Grid (3 columnas bajo manifiesto) ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
}
.svc-grid-heading {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--yellow);
}
.svc-grid-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.svc-grid-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.svc-grid-item:last-child { border-bottom: none; padding-bottom: 0; }
.svc-grid-title {
  font-family: var(--text);
  font-weight: 700;
  font-size: 16px;
  color: var(--white-pure);
  margin-bottom: 6px;
}
.svc-grid-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
}
.svc-grid-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ===== Misc ===== */

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* placeholder image (when web image fails) */
.caso-image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  background: repeating-linear-gradient(45deg, #ececec 0 8px, #f4f4f4 8px 16px);
}

/* ===== Página de servicios: Hero ===== */

.svc-page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
}
.svc-page-hero .eyebrow {
  margin-bottom: 32px;
}
.svc-page-hero h1 {
  font-size: clamp(48px, 7vw, 120px);
  max-width: 16ch;
}
.svc-page-hero .lede {
  margin-top: 32px;
  max-width: 60ch;
}

/* ===== Manifiesto ===== */

.manifiesto {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.manifiesto-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.manifiesto-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifiesto-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 68ch;
}
.manifiesto-body strong {
  color: var(--white-pure);
  font-weight: 600;
}

@media (max-width: 720px) {
  .manifiesto-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Clusters ===== */

.cluster {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  border-bottom: 1px solid var(--hairline);
}

.cluster-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.cluster-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cluster-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white-pure);
}
.cluster-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

/* ── Cluster: mapa desktop ── */

.cluster-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  margin: 0 auto;
}
.cluster-map .lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cluster-map .lines line {
  stroke: var(--hairline);
  stroke-width: 0.15;
}

.cluster-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.cluster-node .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--hairline);
  background: var(--black);
  width: 260px;
  transition: border-color 0.4s, background 0.4s;
  text-decoration: none;
  color: inherit;
}
.cluster-node .card:hover {
  border-color: var(--yellow);
  background: rgba(245,211,0,0.04);
}
.cluster-node.center .card {
  border-color: var(--yellow);
  background: rgba(245,211,0,0.06);
  width: 280px;
  text-align: center;
  align-items: center;
}
.cluster-node.featured .card {
  border-color: var(--yellow);
}
.cluster-node .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cluster-node .title {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white-pure);
  line-height: 1.1;
}
.cluster-node .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.cluster-node .cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 4px;
}

/* ── Cluster: lista mobile (fallback) ── */

.cluster-list {
  display: none;
}
.cluster-list .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s;
}
.cluster-list .card:hover {
  padding-left: 16px;
}
.cluster-list .card:first-child {
  border-top: 1px solid var(--hairline);
}
.cluster-list .card.featured {
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
}
.cluster-list .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cluster-list .title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  line-height: 1.1;
}
.cluster-list .desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.cluster-list .cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

@media (max-width: 900px) {
  .cluster-map { display: none; }
  .cluster-list { display: flex; flex-direction: column; }
  .cluster-tag { margin-left: 0; }
}

/* ===== Subpáginas de servicio ===== */

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--yellow); }

/* Tipos de web (3 columnas) */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.tipo-card {
  padding: 56px 40px 48px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.4s;
}
.tipo-card:last-child { border-right: none; }
.tipo-card:hover { background: rgba(245,211,0,0.04); }
.tipo-card .tipo-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.tipo-card .tipo-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  line-height: 1.05;
}
.tipo-card .tipo-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-raw);
}
.tipo-card .tipo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.tipo-card .tipo-features li::before {
  content: '— ';
  color: var(--muted);
}

@media (max-width: 900px) {
  .tipos-grid { grid-template-columns: 1fr; }
  .tipo-card {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 40px var(--gutter);
  }
  .tipo-card:last-child { border-bottom: none; }
}

/* Contenido editorial (dos columnas texto) */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.editorial-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 60ch;
}
.editorial-body strong { color: var(--white-pure); font-weight: 600; }
.section.invert .editorial-body strong { color: var(--black); }

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* FAQ (accordion) */
.faq-list {
  border-top: 1px solid var(--hairline);
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--yellow); }
.faq-icon {
  font-size: 24px;
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s;
  padding: 0 0 0 0;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 28px;
}
.faq-answer p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}
.section.invert .faq-question { color: var(--black); }
.section.invert .faq-item { border-bottom-color: var(--hairline-dark); }
.section.invert .faq-list { border-top-color: var(--hairline-dark); }
.section.invert .faq-answer p { color: var(--muted-dark); }

/* ===================================================================
   BLOG — Listado + Sidebar
   =================================================================== */

/* Filtros */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-filter {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--muted);
  padding: 8px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.blog-filter:hover,
.blog-filter.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* Layout grid + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Blog page grid (scoped inside .blog-layout to avoid conflict with home blog) */
.blog-layout .blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 720px) {
  .blog-layout .blog-grid { grid-template-columns: 1fr; }
}

/* Blog page card */
.blog-layout .blog-card {
  display: flex;
  flex-direction: column;
}
.blog-layout .blog-card[data-hidden="true"] { display: none; }

.blog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 555 / 291;
  background: #111;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.85;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
  opacity: 1;
}

.blog-card-body {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.blog-card-cat {
  color: var(--yellow);
}
.blog-card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
.blog-card-title a:hover { color: var(--yellow); }

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .link-underline {
  margin-top: auto;
}

/* CTA inline (dentro del grid) */
.blog-cta-inline {
  grid-column: 1 / -1;
  background: var(--yellow);
  padding: 48px 40px;
}
.blog-cta-inner {
  max-width: 520px;
}
.blog-cta-inner h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
}
.blog-cta-inner p {
  color: var(--black);
  opacity: 0.75;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.blog-cta-inner .btn-accent {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.blog-cta-inner .btn-accent:hover {
  background: transparent;
  color: var(--black);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-cta {
  background: var(--yellow);
  padding: 32px 28px;
}
.sidebar-cta h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
}
.sidebar-cta p {
  color: var(--black);
  opacity: 0.75;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.sidebar-cta .btn-accent {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  text-align: center;
  display: block;
}
.sidebar-cta .btn-accent:hover {
  background: transparent;
  color: var(--black);
}

.sidebar-cta-secondary {
  background: none;
  border: 1px solid var(--hairline);
  padding: 28px 24px;
}
.sidebar-cta-secondary h3 {
  color: var(--white);
  margin-top: 12px;
}
.sidebar-cta-secondary p {
  color: var(--muted);
}

.sidebar-block {
  border: 1px solid var(--hairline);
  padding: 28px 24px;
}
.sidebar-title {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-cats li {
  border-bottom: 1px solid var(--hairline);
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--white-raw);
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.3s;
}
.sidebar-cat-link:hover { color: var(--yellow); }
.cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Sidebar recientes */
.sidebar-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-recent-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--white-raw);
  transition: color 0.3s;
}
.sidebar-recent-link:hover { color: var(--yellow); }
.sidebar-recent-link img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}
.sidebar-recent-link span {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Sidebar — Curso list ===== */
.sidebar-curso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-curso-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--white-raw);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.3s;
}
.sidebar-curso-link:hover { color: var(--yellow); }
.sidebar-curso-link img {
  width: 80px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}
.sidebar-curso-link span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Sidebar — WhatsApp & Promo banners ===== */
.sidebar-whatsapp,
.sidebar-promo {
  display: block;
  overflow: hidden;
  transition: opacity 0.3s;
}
.sidebar-whatsapp:hover,
.sidebar-promo:hover {
  opacity: 0.85;
}
.sidebar-whatsapp img,
.sidebar-promo img {
  width: 100%;
  height: auto;
  border: 2px solid #fff;
}

/* ===== Sidebar — Formulario de contacto ===== */
.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-form input[type="text"],
.sidebar-form input[type="email"],
.sidebar-form input[type="tel"],
.sidebar-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--white-raw);
  font-family: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color 0.3s;
}
.sidebar-form input::placeholder,
.sidebar-form textarea::placeholder {
  color: var(--muted);
}
.sidebar-form input:focus,
.sidebar-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.sidebar-form textarea {
  resize: vertical;
  min-height: 80px;
}
.sidebar-gdpr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
}
.sidebar-gdpr input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}
.sidebar-gdpr a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sidebar-submit {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ============================
   CURSOS
   ============================ */

/* Home highlight block */
.cursos-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}
.cursos-highlight-info { }
.cursos-highlight-info .curso-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(245,211,0,0.3);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.cursos-highlight-info h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white-pure);
  margin-bottom: 20px;
}
.cursos-highlight-info > p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}
.cursos-modules-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}
.cursos-modules-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.cursos-modules-list li:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.cursos-modules-list .mod-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--yellow);
  flex-shrink: 0;
  width: 24px;
}
.cursos-highlight-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.cursos-highlight-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

/* Cursos listing page */
.curso-listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 0;
}
.curso-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.curso-card:hover { border-color: rgba(245,211,0,0.3); }
.curso-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.curso-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.curso-card:hover .curso-card-image img { transform: scale(1.03); }
.curso-card-body { padding: 32px; }
.curso-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.curso-card-body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white-pure);
  margin-bottom: 12px;
}
.curso-card-body h2 a { color: inherit; text-decoration: none; }
.curso-card-body h2 a:hover { color: var(--yellow); }
.curso-card-body > p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.curso-card-audio {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.curso-card-audio .audio-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 12px;
  display: block;
}

/* Module page */
.curso-audio-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 32px;
}
.curso-audio-wrap .eyebrow { margin-bottom: 20px; }

.curso-content {
  max-width: 780px;
}
.curso-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white-pure);
  margin: 56px 0 20px;
}
.curso-content h2:first-child { margin-top: 0; }
.curso-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white-pure);
  margin: 40px 0 16px;
}
.curso-content p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.curso-content ul, .curso-content ol {
  color: var(--text);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 20px;
}
.curso-content li { margin-bottom: 8px; }
.curso-content strong { color: var(--white-pure); }
.curso-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}
.curso-content th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.curso-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}
.curso-table-wrap { overflow-x: auto; }

.curso-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  gap: 24px;
}
.curso-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.curso-nav a:hover { color: var(--yellow); }
.curso-nav .nav-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .cursos-highlight { grid-template-columns: 1fr; gap: 40px; }
  .cursos-highlight-image { order: -1; }
  .curso-listing-grid { grid-template-columns: 1fr; }
  .curso-nav { flex-direction: column; text-align: center; }
}

/* ============================
   BLOG POST (individual)
   ============================ */
.post-hero h1 {
  font-size: clamp(26px, 3vw, 70px) !important;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.post-content {
  max-width: 100%;
}
.post-hero-image {
  margin-top: 0;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
}
.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  opacity: 0.6;
}
.post-meta-bar .post-cat {
  color: var(--yellow);
  opacity: 1;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white-pure);
  margin: 56px 0 20px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white-pure);
  margin: 40px 0 16px;
}
.post-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white-pure);
  margin: 32px 0 12px;
}
.post-content p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.post-content ul, .post-content ol {
  color: var(--text);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--white-pure); }
.post-content a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: 0.8; }
.post-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 16px 24px;
  margin: 32px 0;
  color: var(--text);
  font-style: italic;
  background: rgba(255,255,255,0.02);
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0;
}
.post-video,
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 32px 0;
  border-radius: 4px;
}
.post-video iframe,
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}
.post-content th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 56px;
}
.post-nav a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  max-width: 45%;
}
.post-nav a:hover { color: var(--yellow); }
.post-nav .nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 6px;
}
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .post-nav { flex-direction: column; text-align: center; }
  .post-nav a { max-width: 100%; }
}

/* ── Content Components ─────────────────────────────────────────────────────── */

/* Grid layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2rem 0;
}
.grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .grid-2col, .grid-3col { grid-template-columns: 1fr; }
}

/* Grid items */
.grid-2col img, .grid-3col img {
  width: 100%;
  border-radius: 10px;
}
.grid-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid-item figcaption, .grid-item .caption {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* Info box / callout */
.info-box {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border-radius: 10px;
  background: rgba(245, 211, 0, 0.08);
  border-left: 3px solid var(--yellow);
}
.info-box::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f06a';
  position: absolute;
  left: 1.15rem;
  top: 1.35rem;
  font-size: 1.1rem;
  color: var(--yellow);
}
.info-box strong, .info-box .info-title {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}
.info-box p { margin: 0; color: var(--text); }

/* Variantes de color */
.info-box--blue {
  background: rgba(59, 130, 246, 0.10);
  border-left-color: #3b82f6;
}
.info-box--blue::before { color: #60a5fa; }
.info-box--blue strong, .info-box--blue .info-title { color: #fff; }

.info-box--green {
  background: rgba(34, 197, 94, 0.10);
  border-left-color: #22c55e;
}
.info-box--green::before { color: #4ade80; }
.info-box--green strong, .info-box--green .info-title { color: #fff; }

/* Variantes de icono */
.info-box--tip::before { content: '\f0eb'; }
.info-box--warning::before { content: '\f071'; }
.info-box--check::before { content: '\f058'; }
.info-box--star::before { content: '\f005'; }
.info-box--code::before { content: '\f121'; }
.info-box--link::before { content: '\f0c1'; }

/* Image compare side by side */
.img-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2rem 0;
  align-items: start;
}
.img-compare figure {
  margin: 0;
  text-align: center;
}
.img-compare img {
  width: 100%;
  border-radius: 10px;
}
.img-compare figcaption {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .img-compare { grid-template-columns: 1fr; }
}

/* Before/After slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 2rem 0;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ba-slider img {
  display: block;
  width: 100%;
  pointer-events: none;
}
.ba-slider .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ba-slider .ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--yellow);
  z-index: 3;
  cursor: col-resize;
}
.ba-slider .ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ba-slider .ba-handle::before {
  content: '◂ ▸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 14px;
  color: var(--bg);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
}
.ba-slider .ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}
.ba-slider .ba-label--before { left: 12px; }
.ba-slider .ba-label--after { right: 12px; }

/* Full-width figure inside post */
.post-figure-full {
  margin: 2.5rem 0;
  text-align: center;
}
.post-figure-full img {
  width: 100%;
  border-radius: 10px;
}
.post-figure-full figcaption {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: 10px;
}

/* ── Responsive video (YouTube embeds) ── */
.responsive-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 10px;
}
.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* ============================================
   Galería Trabajos — Desorden Organizado
   ============================================ */

.chaos-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  position: relative;
}

.chaos-card {
  position: relative;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease;
}

/* Estado caótico inicial — visible pero desplazado */
.chaos-card.is-chaotic {
  opacity: 0.6;
}

/* Transición a organizado */
.chaos-card.is-settling {
  opacity: 1;
}

/* Estado final organizado */
.chaos-card.is-organized {
  opacity: 1;
  transform: none !important;
}

/* Tamaños asimétricos */
.chaos-card--wide {
  grid-column: span 2;
}

.chaos-card--tall {
  grid-row: span 2;
}

/* Card inner */
.chaos-card__inner {
  background: var(--surface, #141414);
  border: 1px solid var(--hairline);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.chaos-card__inner:hover {
  border-color: var(--yellow);
  background: rgba(245, 211, 0, 0.03);
}

/* Número */
.chaos-card__num {
  font-family: var(--mono, 'SF Mono', monospace);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* Sector badge */
.chaos-card__sector {
  font-family: var(--mono, 'SF Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted, #666);
  margin-bottom: 12px;
}

/* Título */
.chaos-card__title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  color: var(--white-pure, #fff);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Descripción */
.chaos-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #888);
  flex: 1;
  margin-bottom: 20px;
}

/* Tags de herramientas */
.chaos-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chaos-tool {
  font-size: 10px;
  font-family: var(--mono, 'SF Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  color: var(--muted, #888);
  transition: border-color 0.3s, color 0.3s;
}

.chaos-card__inner:hover .chaos-tool {
  border-color: rgba(245, 211, 0, 0.3);
  color: var(--white-raw, #f5f5f5);
}

/* Footer de la card */
.chaos-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.chaos-card__year {
  font-family: var(--mono, 'SF Mono', monospace);
  font-size: 12px;
  color: var(--muted, #666);
}

.chaos-card__link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--muted, #666);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.chaos-card__link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245, 211, 0, 0.05);
}

/* Línea decorativa que se dibuja en hover */
.chaos-card__inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chaos-card__inner:hover::after {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .chaos-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .chaos-card--wide {
    grid-column: span 1;
  }
  .chaos-card--tall {
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .chaos-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chaos-card__inner {
    padding: 24px;
  }
  .chaos-card__title {
    font-size: 20px;
  }
}

/* ── Sección invertida para trabajos ── */
#galeria-trabajos {
  background: var(--black, #0a0a0a);
}

/* ── Imágenes en chaos cards ── */
.chaos-card__inner.has-image {
  padding: 0;
  overflow: hidden;
}
.chaos-card__image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.chaos-card--wide .chaos-card__image { height: 300px; }
.chaos-card--tall .chaos-card__image { height: 340px; }
.chaos-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(0.2);
}
.chaos-card__inner:hover .chaos-card__image img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.chaos-card__inner.has-image .chaos-card__content {
  padding: 20px 24px 24px;
}

/* ── Showcase image (carousel) ── */
.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.showcase-image {
  border-radius: 8px;
}

/* ── Thumb images ── */
.casos-thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.casos-thumb:hover .thumb-img { opacity: 0.8; }
.casos-thumb.active .thumb-img { opacity: 1; }

/* ── CTA Banner (dentro de posts) ── */
.cta-banner {
  margin: 48px 0 32px;
  padding: 48px 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cta-yellow {
  background: var(--yellow);
  color: var(--black);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.cta-banner-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--yellow);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.cta-banner-title,
.post-content .cta-banner-title {
  font-family: var(--display, 'Archivo Black', sans-serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--black);
}
.cta-banner-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.8);
  margin: 0 0 24px;
}
.cta-banner-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.15s;
}
.cta-banner-btn:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .cta-banner {
    padding: 32px 24px;
    margin: 36px 0 24px;
  }
  .cta-banner-btn {
    display: block;
    text-align: center;
  }
}
