/* =========================================================
   01 HUMAN AGENCY — Estudio independiente
   Diseño y desarrollo web sin intermediarios
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (brandbook) */
  --c-white: #ffffff;
  --c-black: #0a0a0a;
  --c-silver: #c0c0c0;
  --c-silver-2: #d9d9d9;
  --c-smoke: #a5a5a5;
  --c-deep: #2d2d2d;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-card: #ffffff;
  --fg: #0a0a0a;
  --fg-soft: #2d2d2d;
  --fg-mute: #6b6b6b;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.45);
  --grid-line: rgba(10, 10, 10, 0.09);
  --accent: #0a0a0a;
  --silver-grad: linear-gradient(135deg, #d9d9d9 0%, #ffffff 35%, #a5a5a5 55%, #ffffff 80%, #c0c0c0 100%);
  --silver-text: linear-gradient(135deg, #6b6b6b 0%, #0a0a0a 30%, #c0c0c0 55%, #0a0a0a 80%, #a5a5a5 100%);
  --silver-soft: linear-gradient(180deg, #ffffff 0%, #f0f0f0 50%, #d9d9d9 100%);
  --silver-ring: conic-gradient(from 180deg, #d9d9d9, #ffffff, #a5a5a5, #ffffff, #c0c0c0, #d9d9d9);
  --shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.25);
  --glow: 0 0 40px rgba(192, 192, 192, 0.15);
  --spot: rgba(192, 192, 192, 0.28);

  /* Typography */
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-display: "Anton", "Inter", "Arial Narrow", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-eyebrow: clamp(10px, 0.74vw, 12px);
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-h2: clamp(34px, 7vw, 120px);
  --fs-h1: clamp(40px, 11vw, 210px);

  /* Spacing */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vh, 160px);

  /* Timing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-fast: 240ms;
  --t-med: 600ms;
  --t-slow: 1000ms;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #121212;
  --fg: #f2f2f2;
  --fg-soft: #d9d9d9;
  --fg-mute: #8a8a8a;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.45);
  --grid-line: rgba(255, 255, 255, 0.09);
  --accent: #f5f5f5;
  --silver-grad: linear-gradient(135deg, #2d2d2d 0%, #d9d9d9 35%, #6b6b6b 55%, #f5f5f5 80%, #a5a5a5 100%);
  --silver-text: linear-gradient(135deg, #a5a5a5 0%, #ffffff 30%, #6b6b6b 55%, #f5f5f5 80%, #d9d9d9 100%);
  --silver-soft: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #111111 100%);
  --silver-ring: conic-gradient(from 180deg, #6b6b6b, #ffffff, #2d2d2d, #d9d9d9, #a5a5a5, #6b6b6b);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --glow: 0 0 40px rgba(192, 192, 192, 0.1);
  --spot: rgba(192, 192, 192, 0.13);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent, var(--bg) 70%);
  opacity: 0.65;
}
/* Degradado muy tenue en las esquinas (depth, sin neblinar el centro) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48% 42% at 100% 0%, color-mix(in srgb, var(--fg) 4%, transparent), transparent 70%),
    radial-gradient(52% 48% at 0% 100%, color-mix(in srgb, var(--fg) 3%, transparent), transparent 70%);
  opacity: 0.5;
}
main, .nav, .footer, .loader { position: relative; z-index: 1; }

body.is-loading { overflow: hidden; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Focus ring — accesibilidad */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography classes ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

em {
  font-family: var(--ff-sans);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Silver gradient text utility */
.silver-text,
[data-silver-text] {
  background: var(--silver-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 8s ease-in-out infinite;
}
@keyframes shimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd36f;
  box-shadow: 0 0 0 0 rgba(45, 211, 111, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 211, 111, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(45, 211, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 211, 111, 0); }
}

/* ---------- SVG sprite (decorative) ---------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 85;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--silver-grad);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}

/* ---------- Noise overlay ---------- */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.25;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] .noise { mix-blend-mode: screen; opacity: 0.25; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease-in-out), opacity .6s var(--ease-out);
}
.loader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}
.loader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Animated badge mark */
.loader__badge {
  position: relative;
  width: clamp(110px, 18vw, 160px);
  aspect-ratio: 140.78 / 133.22;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.loader__badge-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.78) rotate(-6deg);
  filter: drop-shadow(0 8px 30px rgba(10, 10, 10, 0.3));
  animation:
    badgeEnter 1s var(--ease-out) .1s forwards,
    badgeBreathe 2.4s var(--ease-in-out) 1.1s infinite;
}
[data-theme="dark"] .loader__badge-img {
  filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.18));
}
.loader__halo {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--fg) 12%, transparent) 0%,
      transparent 60%);
  z-index: 0;
  opacity: 0;
  animation: badgeHalo 2.4s var(--ease-in-out) 1.1s infinite;
}

@keyframes badgeEnter {
  0%   { opacity: 0; transform: scale(0.78) rotate(-6deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes badgeBreathe {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.05) rotate(1.5deg); }
}
@keyframes badgeHalo {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50%      { opacity: 0.7;  transform: scale(1.05); }
}

.loader__bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--fg);
  animation: fill 1.8s .4s var(--ease-in-out) forwards;
}
@keyframes fill { to { width: 100%; } }

.loader__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  max-width: min(90vw, 360px);
  line-height: 1.6;
  animation: fadeUp .6s 1.1s var(--ease-out) forwards;
}
@media (max-width: 600px) {
  .loader__label {
    font-size: 9px;
    letter-spacing: 0.18em;
    padding: 0 12px;
  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Custom cursor (invert magnifier via difference) ---------- */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  transform: translate(-50%, -50%);
  transition: opacity .2s var(--ease-out);
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s;
}
.cursor__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transition: width .35s var(--ease-out), height .35s var(--ease-out);
}
.cursor.is-hover .cursor__ring { width: 96px; height: 96px; }
.cursor.is-hover .cursor__dot { opacity: 0; }

/* Hide native cursor only when custom cursor is enabled */
.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor [data-magnetic],
.has-cursor input,
.has-cursor textarea { cursor: none; }

@media (hover: none) {
  .cursor { display: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  transition: background-color var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med), padding var(--t-fast);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--t-fast);
}
.nav__brand:hover { opacity: 0.7; }
.nav__logo {
  display: block;
  width: auto;
  transition: opacity var(--t-med) var(--ease-out);
}
.nav__logo--full { display: block; height: 34px; }
.nav__logo--mark { display: none; height: 40px; width: 40px; }

/* Theme-based logo swap */
[data-theme="light"] .nav__logo--dark { display: none; }
[data-theme="dark"] .nav__logo--light { display: none; }

.nav__menu {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav__menu a {
  position: relative;
  padding: 6px 0;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-in-out);
}
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.theme-toggle__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: transform .5s var(--ease-in-out), opacity .4s var(--ease-out);
}
[data-theme="light"] .theme-toggle__icon--sun { transform: rotate(0) scale(1); opacity: 1; }
[data-theme="light"] .theme-toggle__icon--moon { transform: rotate(90deg) scale(0); opacity: 0; }
[data-theme="dark"] .theme-toggle__icon--sun { transform: rotate(-90deg) scale(0); opacity: 0; }
[data-theme="dark"] .theme-toggle__icon--moon { transform: rotate(0) scale(1); opacity: 1; }

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.burger:hover { background: var(--bg-soft); }
.burger span {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--fg);
  transition: transform .4s var(--ease-in-out), opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 75;
  transform: translateY(-100%);
  transition: transform .8s var(--ease-in-out);
  display: grid;
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu__inner {
  padding: 110px var(--gutter) 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--ff-display);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-menu__nav a span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
}
.mobile-menu__nav a:hover { padding-left: 12px; }
.mobile-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}
.mobile-menu__email {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover svg { transform: translateX(6px); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--silver-grad);
  background-size: 200% 200%;
  opacity: 0;
  transform: translateY(80%);
  transition: transform .6s var(--ease-in-out), opacity .4s;
  z-index: -1;
}
.btn--primary:hover::before {
  opacity: 1;
  transform: translateY(0);
  animation: shimmer 3s var(--ease-in-out) infinite;
}
.btn--primary:hover { color: var(--c-black); }

.btn--lg { padding: 20px 32px; font-size: 15px; }

.btn--nav {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.02em;
  gap: 8px;
}
.btn--nav svg { width: 14px; height: 14px; }

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Sections generic ---------- */
.section {
  padding: var(--section-y) var(--gutter);
  position: relative;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 6vw, 72px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section__num {
  font-family: var(--ff-sans);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--fg-mute);
}
.section__mark {
  width: 14px;
  height: 14px;
  color: var(--fg);
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 1.2s var(--ease-in-out);
}
.section:hover .section__mark,
.section__head:hover .section__mark { transform: rotate(180deg); }
.section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
  margin-left: auto;
}
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0 0 clamp(40px, 6vw, 80px);
  max-width: 18ch;
}
.section__title em {
  font-family: var(--ff-sans);
  font-size: 0.62em;
  text-transform: none;
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.1;
  display: block;
  margin-top: 0.08em;
  background: var(--silver-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 9s ease-in-out infinite;
}
.section__title em.em-inline {
  display: inline;
  margin-top: 0;
  line-height: inherit;
  vertical-align: baseline;
  font-size: 0.7em;
}

/* Titles with inline em (e.g. "Marcas aliadas / del estudio") get tighter leading */
.section__title:has(.em-inline) { line-height: 0.86; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

/* Hero decorative strokes */
.hero__deco {
  position: absolute;
  color: var(--fg);
  pointer-events: none;
  opacity: 0.7;
}
.hero__deco--tl {
  top: 96px;
  right: calc(var(--gutter) + 60px);
  width: 60px;
  height: 60px;
  opacity: 0.35;
  animation: floatY 6s var(--ease-in-out) infinite;
}
.hero__deco--tr {
  top: 40%;
  right: var(--gutter);
  width: 80px;
  height: 50px;
  opacity: 0.4;
  transform: rotate(-14deg);
}
.hero__deco--mid {
  position: absolute;
  top: 50%;
  left: calc(50% + 180px);
  width: 28px;
  height: 28px;
  opacity: 0.5;
  animation: slowSpin 18s linear infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Hero title underline stroke */
.hero__title-serif em {
  position: relative;
}
.hero__title-underline {
  display: inline-block;
  position: relative;
}
.hero__underline {
  position: absolute;
  left: 0;
  bottom: -0.02em;
  width: 100%;
  height: 0.18em;
  color: var(--fg);
  opacity: 0.35;
  pointer-events: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.reveal-up.is-in .hero__underline,
.hero__title.is-in .hero__underline {
  animation: drawLine 1.6s .4s var(--ease-in-out) forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
/* Also draw on first load via IntersectionObserver class */
.hero__title.is-in .hero__underline,
.hero__title-underline .hero__underline {
  animation: drawLine 1.8s .8s var(--ease-in-out) forwards;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
}
.hero__meta-block {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero__content {
  align-self: center;
  padding: clamp(24px, 6vh, 60px) 0;
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 32px;
}
.hero__eyebrow .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--fg-mute);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(56px, 11.5vw, 210px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 clamp(32px, 5vh, 64px);
}
.hero__title em {
  font-family: var(--ff-sans);
  font-size: 0.68em;
  letter-spacing: -0.02em;
  text-transform: none;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  display: block;
  margin-top: 0.06em;
  background: var(--silver-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 7s ease-in-out infinite;
}
.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}
.is-ready .split-line > span {
  animation: riseInSlow 1.2s var(--ease-out) forwards;
}
.is-ready .split-line:nth-child(1) > span { animation-delay: .1s; }
.is-ready .split-line:nth-child(2) > span { animation-delay: .22s; }
.is-ready .split-line:nth-child(3) > span { animation-delay: .34s; }
.is-ready .split-line:nth-child(4) > span { animation-delay: .46s; }
@keyframes riseInSlow { to { transform: translateY(0); } }

.hero__tail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.4vw, 34px);
  max-width: 680px;
}
.hero__lede-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 24px 20px 22px;
  border-left: 2px solid var(--fg);
  background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 4%, transparent), transparent 60%);
  border-radius: 0 14px 14px 0;
}
.hero__lede-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  flex-shrink: 0;
  animation: slowSpin 22s linear infinite;
}
.hero__lede-mark svg { width: 16px; height: 16px; }
.hero__lede {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--fg-soft);
  line-height: 1.6;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 52ch;
}
.hero__lede strong { font-weight: 600; color: var(--fg); }

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--bg-soft);
  border-color: var(--fg);
}
.btn--ghost::before { display: none; }

/* ---------- Sello giratorio (hero) ---------- */
.stamp-wrap {
  position: absolute;
  right: clamp(8px, 5vw, 80px);
  top: clamp(132px, 23vh, 280px);
  width: clamp(150px, 16vw, 225px);
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity .9s var(--ease-out) .9s;
}
html.is-ready .stamp-wrap { opacity: 1; }
.stamp {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform .6s var(--ease-out);
}
.stamp-wrap:hover .stamp { transform: scale(1.06) rotate(4deg); }
.stamp__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: slowSpin 18s linear infinite;
}
.stamp-wrap:hover .stamp__ring { animation-duration: 6s; }
.stamp__text {
  font-family: var(--ff-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  fill: var(--fg);
}
.stamp__face {
  width: 54%;
  height: auto;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--line);
  padding: 8px;
}

.hero__marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter));
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-size: 14px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 110px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transform: rotate(90deg);
  transform-origin: right bottom;
}
.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-line span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--fg);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(333%); }
}

/* ---------- Reveal helpers ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Philosophy ---------- */
.philosophy {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}

/* ---------- Philosophy split ---------- */
.philosophy__split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

/* ---------- Silver Badge (Credo · horizontal compact) ---------- */
.credo {
  position: relative;
  border-radius: 22px;
  padding: clamp(10px, 1.2vw, 16px) clamp(22px, 2.6vw, 36px);
  display: grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  height: 100%;
  min-height: 100%;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  cursor: pointer;
  transition: transform .7s var(--ease-out), box-shadow .5s var(--ease-out);
  color: #0a0a0a;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, #ffffff 0%, #e8e8e8 14%, #c0c0c0 32%, #f2f2f2 48%, #a5a5a5 62%, #ffffff 80%, #d9d9d9 100%);
  background-size: 220% 220%;
  box-shadow: 0 20px 60px -20px rgba(10, 10, 10, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: shimmer 14s ease-in-out infinite;
}
[data-theme="dark"] .credo {
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.credo__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.8) 52%,
    rgba(255, 255, 255, 0.5) 56%,
    transparent 66%,
    transparent 100%
  );
  background-size: 250% 250%;
  opacity: 0.75;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: sheenSlide 9s ease-in-out infinite;
}
@keyframes sheenSlide {
  0%, 100% { background-position: -120% 50%; }
  50% { background-position: 220% 50%; }
}

.credo__spark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  color: #0a0a0a;
  stroke-width: 1.2;
  opacity: 0.85;
  animation: slowSpin 24s linear infinite;
  z-index: 2;
}

.credo__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.credo__avatar img {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(10, 10, 10, 0.22));
  transition: transform .7s var(--ease-out);
}

/* Hover animation */
.credo:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 30px 70px -20px rgba(10, 10, 10, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.credo:hover .credo__avatar img {
  animation: credoWobble 1.2s var(--ease-in-out);
}
.credo:hover .credo__sheen {
  animation-duration: 2.8s;
}
.credo:hover .credo__spark {
  animation-duration: 4s;
}
@keyframes credoWobble {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-4px) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(0deg) scale(1.04); }
  75% { transform: translateY(-4px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}

.credo__rule {
  width: 1px;
  height: 78%;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.35), transparent);
  align-self: center;
}

.credo__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.credo__text {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0;
  color: #0a0a0a;
}

.credo__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(10, 10, 10, 0.35);
  border-radius: 10px;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--t-med) var(--ease-out), background var(--t-fast);
}
.credo__icon:hover { transform: translateY(-2px) rotate(12deg); }
.credo__icon svg { width: 20px; height: 20px; }
.philosophy__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  max-width: 16ch;
  position: relative;
  display: inline-block;
}
.philosophy__scribble {
  display: block;
  width: clamp(160px, 22vw, 320px);
  height: 18px;
  margin-top: 12px;
  color: var(--fg);
  opacity: 0.55;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.6s var(--ease-in-out);
}
.philosophy__title.is-in .philosophy__scribble {
  stroke-dashoffset: 0;
}
.philosophy__body {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--fg-soft);
}

.philosophy__pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}
.pillar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), background-color var(--t-med);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--silver-grad);
  background-size: 200% 100%;
  opacity: 0;
  animation: shimmer 4s linear infinite;
  transition: opacity .4s;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 0%, rgba(192, 192, 192, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
  mix-blend-mode: screen;
}
[data-theme="dark"] .pillar::after { mix-blend-mode: multiply; }
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.pillar:hover::before { opacity: 1; }
.pillar:hover::after { opacity: 1; }
.pillar:hover .pillar__icon {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(-8deg) scale(1.05);
}

.pillar__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  background: var(--bg);
  transition: transform .6s var(--ease-in-out), background .4s, color .4s, border-color .4s;
  position: relative;
  z-index: 1;
}
.pillar__icon svg { width: 28px; height: 28px; }

.pillar__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0;
}
.pillar h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}
.pillar p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.55;
}
.pillar__tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ---------- Manifiesto ---------- */
.section--manifesto { overflow: clip; }
.manifesto {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(27px, 4.4vw, 68px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 26ch;
  color: var(--fg);
  text-wrap: pretty;
}
.manifesto .word { opacity: 0.14; }
.manifesto strong { font-weight: 600; }

/* ---------- Servicios — índice editorial (acordeón) ---------- */
.disc-index {
  display: grid;
  border-top: 1px solid var(--line);
  margin-inline: calc(-1 * var(--gutter));
}
.disc {
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.disc__head {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 3vw, 38px) var(--gutter);
  cursor: pointer;
  color: inherit;
  text-align: left;
  font: inherit;
}
.disc__head:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
.disc__ghost {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: 0.35;
}
.disc__title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}
.disc__toggle {
  justify-self: end;
  font-family: var(--ff-mono);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  transition: transform var(--t-med) var(--ease-in-out);
}
.disc.is-open .disc__toggle { transform: rotate(45deg); }

/* Inversión relativa al tema como estado (abierta / hover con puntero fino) */
.disc.is-open { background: var(--fg); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .disc:hover { background: var(--fg); color: var(--bg); }
}

/* Panel acordeón — altura animada con grid-template-rows */
.disc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-in-out);
}
.disc.is-open .disc__panel { grid-template-rows: 1fr; }
.disc__panel-inner { overflow: hidden; min-height: 0; }
.disc__desc {
  margin: 0;
  max-width: 100ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  padding: 2px var(--gutter) 0;
  text-wrap: pretty; /* evita palabras sueltas al final de línea */
}
.disc__specs {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.disc__specs li {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 100px;
}
.disc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px var(--gutter) clamp(24px, 3vw, 38px);
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity var(--t-fast);
}
.disc__cta:hover { opacity: 0.7; }


/* ---------- Process ---------- */
.process {
  list-style: none;
  padding: 0 0 0 44px;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process__line {
  position: absolute;
  left: 9px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.process__line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: top center;
}
.process__dot {
  position: absolute;
  left: -44px;
  top: clamp(38px, 3.4vw, 54px);
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}
.process__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--fg);
  transform: scale(0);
  transition: transform .6s var(--ease-in-out);
}
.process__step:hover .process__dot::after,
.process__step.is-active .process__dot::after { transform: scale(1); }
.process__step {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left var(--t-med) var(--ease-in-out);
  clip-path: inset(0 0 0 -60px);
}
.process__step.reveal-up { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), padding-left var(--t-med) var(--ease-in-out); }
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 1.2s var(--ease-in-out);
}
.process__step:hover::before { width: 100%; }
.process__step:hover { padding-left: 24px; }

.process__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}
.process__num { color: var(--fg); font-weight: 500; }

.process__step h3 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}
.process__step p {
  margin: 0;
  max-width: 44ch;
  font-size: 19.5px;
  color: var(--fg-soft);
  line-height: 1.55;
}
.process__ghost {
  position: absolute;
  right: 0;
  bottom: -0.3em;
  font-family: var(--ff-display);
  font-size: clamp(100px, 11vw, 200px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  opacity: 0;
  transform: translateX(12%);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.process__step:hover .process__ghost { opacity: 1; transform: translateX(0); }

/* ---------- Work ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.work__item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .6s var(--ease-out);
}
.work__item:hover { transform: translateY(-6px); }

.work__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.work__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--silver-grad);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  mix-blend-mode: overlay;
}
.work__item:hover .work__visual::after {
  opacity: 0.55;
  animation: shimmer 4s var(--ease-in-out) infinite;
}
.work__stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--fg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease-out);
}
.work__stroke rect {
  transition: stroke-dashoffset 1.2s var(--ease-in-out);
}
.work__item:hover .work__stroke { opacity: 1; }
.work__item:hover .work__stroke rect { stroke-dashoffset: 0; }

.work__visual[data-visual="editorial"] .work__grid {
  width: 70%;
  height: 80%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/100% 14.28%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/25% 100%;
  border: 1px solid var(--line-strong);
  position: relative;
}
.work__visual[data-visual="editorial"] .work__grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--fg);
  opacity: 0.04;
}
.work__visual[data-visual="editorial"] .work__grid::after {
  content: "Aa";
  position: absolute;
  top: 10%;
  left: 4%;
  font-family: var(--ff-sans);
  font-style: italic;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 1;
  color: var(--fg);
}

.work__visual[data-visual="studio"] .work__shape {
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #c0c0c0 35%, #6b6b6b 70%, #0a0a0a 100%);
  box-shadow: inset -20px -30px 60px rgba(0,0,0,0.4);
  filter: contrast(1.05);
}

.work__visual[data-visual="saas"] .work__lines {
  width: 70%;
  height: 60%;
  background:
    linear-gradient(var(--fg) 1px, transparent 1px) 0 0/100% 20%,
    linear-gradient(90deg, transparent 50%, var(--fg) 50.5%, transparent 51%) 0 20%/100% 60%;
  background-repeat: no-repeat;
  position: relative;
}
.work__visual[data-visual="saas"] .work__lines::before {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background:
    linear-gradient(to top, var(--fg) 30%, transparent 30%) 10% 100%/8% 50% no-repeat,
    linear-gradient(to top, var(--fg) 50%, transparent 50%) 25% 100%/8% 70% no-repeat,
    linear-gradient(to top, var(--fg) 35%, transparent 35%) 40% 100%/8% 55% no-repeat,
    linear-gradient(to top, var(--fg) 65%, transparent 65%) 55% 100%/8% 80% no-repeat,
    linear-gradient(to top, var(--fg) 45%, transparent 45%) 70% 100%/8% 65% no-repeat,
    linear-gradient(to top, var(--fg) 75%, transparent 75%) 85% 100%/8% 90% no-repeat;
  opacity: 0.8;
}

.work__visual[data-visual="brand"] .work__orb {
  width: 50%;
  aspect-ratio: 1;
  background:
    conic-gradient(from 90deg at 50% 50%, #ffffff 0deg, #c0c0c0 90deg, #0a0a0a 180deg, #a5a5a5 270deg, #ffffff 360deg);
  border-radius: 50%;
  filter: blur(0.3px) contrast(1.1);
  animation: slowSpin 40s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* Preview iframe variant for portfolio cards */
.work__visual--preview {
  background: var(--bg-soft);
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.work__item:hover .work__visual--preview {
  box-shadow:
    0 30px 80px -30px rgba(10, 10, 10, 0.55),
    0 0 0 1px rgba(10, 10, 10, 0.12);
}
[data-theme="dark"] .work__item:hover .work__visual--preview {
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}
/* Disable the parent translateY lift — we handle motion at the inner level for smoother feel */
.work__item:hover { transform: none; }

.work__preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  border-radius: inherit;
}
.work__preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  /* Simulate a ~1100px desktop viewport so site content reads at a comfortable size */
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  background: #ffffff;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.2s var(--ease-out), filter .5s var(--ease-out);
}
/* Subtle zoom-in on hover — focus effect (intensidad reducida 80%) */
.work__item:hover .work__preview iframe {
  transform: scale(0.508);
  filter: saturate(1.05) contrast(1.02);
}

/* Placa con el nombre — estado por defecto; al hover se revela la vista previa */
.work__plate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  /* Rejilla muy tenue (intensidad reducida) */
  background:
    linear-gradient(color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 48px 48px, 48px 48px, auto;
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.work__plate-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.work__plate-name {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.3vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--fg);
}
.work__plate-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
/* Solo con puntero fino: en táctil la placa permanece (la pastilla "Visitar sitio" queda visible) */
@media (hover: hover) and (pointer: fine) {
  .work__item:hover .work__plate {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }
}

/* Soft vignette for legibility */
.work__visual--preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 55%, rgba(10, 10, 10, 0.35) 100%);
  opacity: 1;
  transition: opacity .6s var(--ease-out);
}
.work__item:hover .work__visual--preview::before { opacity: 0.55; }

/* Sheen sweep across surface on hover — single elegant pass */
.work__shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 90%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.work__item:hover .work__shine {
  animation: workShine 1.4s var(--ease-out) forwards;
}
@keyframes workShine {
  0%   { left: -60%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* "Visitar sitio" pill — slides up from bottom on hover */
.work__open {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 10px 30px -10px rgba(10, 10, 10, 0.55);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.work__open svg { width: 12px; height: 12px; }
.work__item:hover .work__open {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 600px) {
  /* On mobile, surface the "Visitar sitio" pill always since hover doesn't apply */
  .work__open { opacity: 1; transform: translate(-50%, 0); }
  /* Zoom previews out further on mobile so the whole desktop page is visible
     within the smaller card without cropping */
  .work__preview iframe {
    width: 360%;
    height: 360%;
    transform: scale(0.2778);
  }
  .work__item:hover .work__preview iframe {
    transform: scale(0.2778);
  }
}

/* ---------- Notes / testimonials ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.note {
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}
.note p {
  font-family: var(--ff-sans);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--fg);
}
.note p em {
  font-style: italic;
  font-weight: 400;
  background: var(--silver-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 10s ease-in-out infinite;
}
.note footer {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 7.5vw, 120px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.contact__title em {
  font-family: var(--ff-sans);
  text-transform: none;
  font-size: 0.58em;
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.1;
  display: block;
  margin-top: 0.08em;
  background: var(--silver-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 9s ease-in-out infinite;
}
.contact__lede {
  margin: 0 0 40px;
  max-width: 44ch;
  color: var(--fg-soft);
}
.contact__direct {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.contact__direct li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact__direct li:last-child { border-bottom: 1px solid var(--line); }
.contact__direct a {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  position: relative;
  padding-right: 20px;
}
.contact__direct a::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform var(--t-med) var(--ease-out);
}
.contact__direct a:hover::after { transform: translate(4px, -4px); }

/* Live time block within contact */
.contact__times {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}
.time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  font-size: clamp(15px, 1.2vw, 17px);
}
.time-row:last-child { border-bottom: 0; }
.time-row__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.time-row__value {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Form */
.form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  position: relative;
  display: block;
}
.field__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  color: var(--fg);
  resize: none;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--fg);
}
.field__line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--fg);
  transition: width .5s var(--ease-in-out);
  pointer-events: none;
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line { width: 100%; }

.form__scope {
  border: 0;
  padding: 0;
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:has(input:checked) {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.form__feedback {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  margin: 0;
  min-height: 16px;
}
.form__feedback.is-success { color: #2dd36f; }
.form__feedback.is-error { color: #ff5b5b; }

/* ---------- Métricas — ficha técnica ---------- */
.specs {
  display: grid;
  border-top: 1px solid var(--line);
}
.spec {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 40px) clamp(4px, 1vw, 12px);
  border-bottom: 1px solid var(--line);
}
.spec__index {
  font-family: var(--ff-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.spec__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec__label {
  font-family: var(--ff-mono);
  font-size: clamp(26px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.spec__desc {
  font-family: var(--ff-sans);
  font-size: 27px;
  line-height: 1.45;
  color: var(--fg-mute);
  max-width: 46ch;
}
.spec__value {
  margin: 0;
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--fg);
  text-transform: uppercase;
  white-space: nowrap;
}
.spec__num { font-variant-numeric: tabular-nums; }
.spec__unit {
  font-family: var(--ff-mono);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
}

/* ---------- Asociaciones ---------- */
.section--allies {
  position: relative;
}
.allies__lede {
  max-width: 58ch;
  margin: 0 0 clamp(40px, 6vw, 72px);
  color: var(--fg-soft);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
}

.allies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.ally {
  position: relative;
  padding: 2px;
  border-radius: 20px;
  isolation: isolate;
  background: var(--line);
  transition: transform .6s var(--ease-out);
}
.ally:hover { transform: translateY(-6px); }

.ally__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--silver-ring);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  z-index: -1;
  animation: spinSlow 12s linear infinite;
}
@keyframes spinSlow {
  to { background-position: 200% 0%; }
}
.ally:hover .ally__ring { opacity: 1; }

.ally__body {
  position: relative;
  background: var(--fg);
  color: var(--bg);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 36px);
  display: grid;
  gap: 18px;
  min-height: 360px;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  transition: background-color var(--t-med), color var(--t-med);
}
.ally__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(192,192,192,0.22), transparent 60%);
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
}
[data-theme="dark"] .ally__body::before {
  background: radial-gradient(circle at 85% 0%, rgba(10,10,10,0.2), transparent 60%);
  mix-blend-mode: multiply;
}

.ally__head {
  display: grid;
  gap: 10px;
  position: relative;
}
.ally__tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}
[data-theme="dark"] .ally__tag {
  background: rgba(10, 10, 10, 0.08);
  border-color: rgba(10, 10, 10, 0.22);
}
.ally__name {
  font-family: var(--ff-display);
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  color: var(--bg);
}

.ally__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
  position: relative;
}

.ally__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.ally__chips li {
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .ally__chips li {
  border-color: rgba(10, 10, 10, 0.22);
  background: rgba(10, 10, 10, 0.06);
}

.ally__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  position: relative;
  width: max-content;
  transition: gap var(--t-fast);
}
.ally__cta svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.ally:hover .ally__cta { gap: 12px; }
.ally:hover .ally__cta svg { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 100px) var(--gutter) 28px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

/* CTA + redes */
.footer__cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.footer__cta-text { display: grid; gap: 16px; }
.footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  font-family: var(--ff-display);
  font-size: clamp(40px, 6.5vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--fg);
  max-width: 13ch;
}
.footer__cta-link svg {
  width: clamp(26px, 3.4vw, 52px);
  height: clamp(26px, 3.4vw, 52px);
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-out);
}
.footer__cta-link:hover svg { transform: translateX(10px); }
.footer__social { display: flex; gap: 10px; }
.footer__social-btn {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__social-btn svg { width: 20px; height: 20px; }
.footer__social-btn:hover {
  background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-3px);
}

/* Columnas de enlaces */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: clamp(40px, 5vw, 64px) 0;
}
.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}
.footer__grid a:hover { color: var(--fg-mute); }
.footer__colophon {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 32ch;
}

/* Wordmark gigante */
.footer__wordmark {
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(22px, 3vw, 38px);
  overflow: hidden;
}
.footer__wordmark span {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(46px, 13.2vw, 200px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* Contorno tenue que se "llena" de abajo hacia arriba al pasar el cursor */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 32%, transparent);
  background: linear-gradient(var(--fg), var(--fg)) no-repeat left bottom / 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1s var(--ease-in-out);
}
.footer__wordmark:hover span { background-size: 100% 100%; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  gap: 20px;
  flex-wrap: wrap;
}
.footer__top-btn { color: var(--fg); }
.footer__top-btn:hover { color: var(--fg-mute); }

/* ---------- WhatsApp floating CTA ---------- */
.wa-cta {
  --wa-green: #25d366;
  --wa-silver-1: #f3f3f3;
  --wa-silver-2: #d9d9d9;
  --wa-silver-3: #a5a5a5;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity .6s var(--ease-out) .1s, transform .6s var(--ease-out) .1s;
  /* Mobile-only: hidden by default, shown via media query below */
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--wa-silver-1) 0%, var(--wa-silver-2) 55%, var(--wa-silver-3) 100%);
  color: #0a0a0a;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(10, 10, 10, 0.12),
    0 8px 18px -8px rgba(10, 10, 10, 0.45),
    0 16px 40px -16px rgba(10, 10, 10, 0.35);
}

/* Subtle floating motion */
html.is-ready .wa-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: waFloat 4s var(--ease-in-out) infinite;
}

/* Edge flash — keeps the silver surface clean and lights up the button border every 4s */
.wa-cta__flash {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  /* Ring-only gradient: green ring sitting right on the button edge, transparent inside */
  padding: 2px;
  background: conic-gradient(from 90deg, rgba(37, 211, 102, 0.95), rgba(37, 211, 102, 0.55), rgba(37, 211, 102, 0.95));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
}
html.is-ready .wa-cta__flash {
  animation: waEdgeFlash 4s ease-out infinite;
}
/* Outer halo emanating from the button edge */
.wa-cta::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  box-shadow:
    0 0 0 0 rgba(37, 211, 102, 0),
    0 0 0 0 rgba(37, 211, 102, 0);
  pointer-events: none;
}
html.is-ready .wa-cta::before {
  animation: waOuterFlash 4s ease-out infinite;
}
/* Sheen across the silver surface to add metallic feel */
.wa-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.7) 45%, transparent 90%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0.8;
}
html.is-ready .wa-cta::after {
  animation: waSheen 4s ease-out infinite;
}

.wa-cta__icon {
  display: inline-grid;
  place-items: center;
  color: #0a0a0a;
  flex-shrink: 0;
}
.wa-cta__icon svg {
  width: 22px;
  height: 22px;
}
.wa-cta__label {
  position: relative;
  white-space: nowrap;
}
.wa-cta:hover { color: #0a0a0a; }
.wa-cta:active { transform: translateX(-50%) translateY(0) scale(0.97); }

@keyframes waFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
/* Edge ring lights up like a neon outline */
@keyframes waEdgeFlash {
  0%, 92%, 100% { opacity: 0; filter: blur(0); }
  6%            { opacity: 1; filter: blur(0.5px); }
  35%           { opacity: 0; filter: blur(1px); }
}
/* Outer halo expands outward from the border via box-shadow */
@keyframes waOuterFlash {
  0%, 92%, 100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
  6% {
    box-shadow:
      0 0 0 4px rgba(37, 211, 102, 0.6),
      0 0 28px 6px rgba(37, 211, 102, 0.55);
  }
  35% {
    box-shadow:
      0 0 0 14px rgba(37, 211, 102, 0),
      0 0 50px 18px rgba(37, 211, 102, 0);
  }
}
@keyframes waSheen {
  0%, 12%, 100% { left: -60%; }
  35%           { left: 130%; }
}

[data-theme="dark"] .wa-cta {
  --wa-silver-1: #ececec;
  --wa-silver-2: #c0c0c0;
  --wa-silver-3: #8a8a8a;
}

/* The CTA is mobile-only — show it under 720px */
@media (max-width: 720px) {
  .wa-cta { display: inline-flex; }

  /* Float + double-pulse blink for attention */
  html.is-ready .wa-cta {
    animation:
      waFloat 4s var(--ease-in-out) infinite,
      waBlink 4s ease-in-out infinite;
  }
  html.is-ready .wa-cta__icon {
    animation: waIconBlink 4s ease-in-out infinite;
  }
  /* The text blinks together with the rest — color tints to WhatsApp green and pulses */
  html.is-ready .wa-cta__label {
    animation: waLabelBlink 4s ease-in-out infinite;
  }
  @keyframes waBlink {
    0%, 18%, 30%, 100% {
      filter: brightness(1) saturate(1);
    }
    8%, 22% {
      filter: brightness(1.18) saturate(1.15);
    }
  }
  @keyframes waIconBlink {
    0%, 18%, 30%, 100% { color: #0a0a0a; transform: scale(1); }
    8%, 22%            { color: #128c7e; transform: scale(1.08); }
  }
  @keyframes waLabelBlink {
    0%, 18%, 30%, 100% {
      color: #0a0a0a;
      text-shadow: none;
      transform: translateY(0);
    }
    8%, 22% {
      color: #128c7e;
      text-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
      transform: translateY(-1px);
    }
  }
}

/* Hide the floating CTA while the mobile menu is open so it doesn't cover the menu footer */
body.menu-open .wa-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), visibility 0s .25s;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .wa-cta,
  .wa-cta__flash,
  .wa-cta::before,
  .wa-cta::after,
  html.is-ready .wa-cta,
  html.is-ready .wa-cta__flash,
  html.is-ready .wa-cta::before,
  html.is-ready .wa-cta::after {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__actions .btn--nav { display: none; }
  .burger { display: flex; }
  .hero__scroll { display: none; }
  .allies { grid-template-columns: 1fr; }
  .ally__body { min-height: 300px; }
  .philosophy__split { grid-template-columns: 1fr; }
  .philosophy__pillars { grid-template-columns: repeat(2, 1fr); }
  .credo { max-width: 520px; margin: 0 auto; width: 100%; }
  .credo__avatar img { width: clamp(140px, 22vw, 180px); }
  .process__step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process__step h3 { font-size: clamp(28px, 6vw, 40px); }
  .process__ghost { display: none; }
  .manifesto { max-width: 100%; }
  .stamp-wrap { position: static; width: 155px; margin: 36px 0 0 auto; }
  .work { grid-template-columns: 1fr; gap: 40px; }
  .work__item { grid-column: span 1; }
  .work__plate-name { font-size: clamp(30px, 7vw, 46px); }
  .notes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cta { align-items: flex-start; }
  .cursor { display: none; }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: 80px;
  }
  /* Hide decorative hero overlays on mobile (were overlapping with the nav) */
  .hero__deco { display: none !important; }
  /* Reorder hero on mobile: title first, then buttons, then meta info at bottom */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 92px;
    min-height: auto;
  }
  .hero__content { order: 1; padding: 0 0 8px; }
  .hero__marquee {
    order: 2;
    margin-top: 56px;
    padding: 16px 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 4%, transparent) 50%, transparent);
  }
  .hero__meta {
    order: 3;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 20px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .hero__meta-block { gap: 12px; }
  .hero__meta .eyebrow { letter-spacing: 0.14em; font-size: 10px; }

  /* Solid header on mobile so background content can't bleed through */
  .nav {
    padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
  }
  .nav__actions { gap: 8px; }
  .theme-toggle, .burger { width: 38px; height: 38px; flex: 0 0 38px; }
  .nav__logo--mark { height: 34px; width: 34px; }

  .credo {
    grid-template-columns: 1fr;
    padding: 24px 24px;
    gap: 18px;
    text-align: center;
    justify-self: center;
    width: 100%;
    max-width: 520px;
  }
  .credo__avatar { padding: 0; }
  .credo__avatar img {
    height: auto;
    width: 91%;
    max-width: 312px;
    aspect-ratio: 1 / 1;
  }
  .credo__rule {
    width: 70%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(10, 10, 10, 0.35), transparent);
    justify-self: center;
    margin: 0;
  }
  .credo__content {
    align-items: center;
    gap: 18px;
    padding: 0;
  }
  .credo__text { text-align: center; margin: 0; }
  .credo__icon { justify-self: center; margin: 0; }
  .credo__spark { top: 18px; right: 18px; }
  .hero { padding: 100px var(--gutter) 60px; }
  .hero__title {
    font-size: clamp(38px, 13vw, 56px);
    letter-spacing: -0.04em;
  }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__meta-block { gap: 16px; }
  .hero__tail { flex-direction: column; align-items: flex-start; }

  /* Mobile menu — stack foot vertically and keep clear of the WhatsApp CTA */
  .mobile-menu__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 8px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu__email { font-size: 15px; }
  .section__title,
  .philosophy__title,
  .contact__title {
    font-size: clamp(32px, 10vw, 52px);
  }
  .process__step h3 { font-size: clamp(26px, 8vw, 36px); }
  /* Footer móvil */
  .footer__cta { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer__cta-link { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer__colophon { max-width: 100%; }
  /* Llena el ancho disponible (descuenta el gutter) sin desbordar, en cualquier teléfono */
  .footer__wordmark span { font-size: clamp(20px, calc((100vw - 40px) / 6.85), 88px); }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .philosophy__pillars { grid-template-columns: 1fr; }
  .nav__menu { display: none; }
  .nav { padding: 16px var(--gutter); }
  .nav__logo--full,
  [data-theme="light"] .nav__logo--full,
  [data-theme="dark"] .nav__logo--full { display: none; }
  .nav__logo--mark { display: block; }
  .spec {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 16px;
    row-gap: 10px;
    padding: clamp(20px, 6vw, 28px) clamp(4px, 1vw, 12px);
  }
  .spec__index { grid-column: 1; grid-row: 1; font-size: 17px; }
  .spec__label { font-size: 17px; }
  .spec__desc { font-size: 17.5px; line-height: 1.5; }
  .spec__unit { font-size: 17px; }
  .spec__value { grid-column: 2; grid-row: 1; justify-self: end; font-size: clamp(44px, 14vw, 72px); }
  .spec__main { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
  .disc__title { font-size: clamp(30px, 9vw, 52px); }
  .manifesto { font-size: clamp(26px, 7.4vw, 40px); }
  .stamp-wrap { order: 1; align-self: flex-end; width: 132px; margin-top: 26px; }
  .form { padding: 20px; }
  .hero__marquee { margin-left: -20px; margin-right: -20px; }

  /* Reserve space at the bottom so the WhatsApp CTA never covers the footer */
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .split-line > span { transform: translateY(0); }
  .reveal-up { opacity: 1; transform: none; }
  .reveal-words .word > span { transform: translateY(0); }
  .manifesto .word { opacity: 1 !important; }
  .process__line-fill { transform: scaleY(1) !important; }
}

/* ---------- Páginas legales ---------- */
.legal-page {
  padding-top: clamp(140px, 20vh, 220px);
  min-height: 70vh;
}
.legal-page__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.legal-page__updated {
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 clamp(36px, 5vw, 64px);
}
.legal-page__body { max-width: 70ch; }
.legal-page__body h2 {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  margin: 36px 0 10px;
}
.legal-page__body p,
.legal-page__body li {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.65;
}
.legal-page__body p { margin: 0 0 14px; }
.legal-page__body ul {
  padding-left: 20px;
  margin: 10px 0 14px;
  display: grid;
  gap: 6px;
}
.legal-page__body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page__body a:hover { color: var(--fg-mute); }
@media (max-width: 960px) {
  .nav__actions .legal-back { display: inline-flex; }
}

/* =====================================================================
   BLOG / CMS / FOOTER (añadido — solo clases nuevas, no toca lo anterior)
   ===================================================================== */

/* (Footer rediseñado: ver bloque .footer / .footer__cta / .footer__wordmark arriba) */

/* ---------- Toggle de soluciones (Servicios) ---------- */
.sol-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.sol-toggle__btn {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.sol-toggle__btn:hover { border-color: var(--fg); }
.sol-toggle__btn.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.disc-index--hidden { display: none; }

/* ---------- FAQs ---------- */
.faq {
  display: grid;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 20px);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-mute);
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 4px 26px;
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 70ch;
  margin: 0;
}

/* ---------- Testimoniales (home: pie con botón) ---------- */
.notes__foot { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Testimoniales (página): 3 tarjetas por línea ---------- */
.tmn-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}
.tmn {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  padding: clamp(18px, 1.8vw, 26px);
  transition: transform .5s var(--ease-out), border-color var(--t-fast);
}
.tmn:hover { transform: translateY(-4px); border-color: var(--line-strong); }
/* La tarjeta hereda grid-column de .work__item; aquí ocupa toda la fila */
.tmn .tmn__card { grid-column: 1 / -1; }
.tmn__quote {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.tmn__quote strong { font-weight: 600; color: var(--fg); }
.tmn__author {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0;
}
/* La tarjeta reusa .work__item/.work__visual; aquí es un botón que abre el lightbox */
.tmn__card {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  display: block;
}
.tmn__card:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.tmn__card .work__visual { aspect-ratio: 16 / 10; border-radius: 10px; }
/* Nombre de la placa más compacto dentro de tarjetas pequeñas */
.tmn__card .work__plate-name { font-size: clamp(20px, 1.7vw, 28px); }
.tmn__card .work__plate { gap: 10px; padding: 16px; }
/* Hover sobre TODA la tarjeta revela la vista previa */
@media (hover: hover) and (pointer: fine) {
  .tmn:hover .work__plate {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }
  .tmn:hover .work__open {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- Lightbox: vista completa del sitio ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.lightbox__name {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lightbox__actions { display: flex; align-items: center; gap: 10px; }
.lightbox__visit {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--fg);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lightbox__visit:hover { background: var(--fg); color: var(--bg); }
.lightbox__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lightbox__close:hover { background: var(--fg); color: var(--bg); }
.lightbox__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
body.lightbox-open { overflow: hidden; }

/* ---------- Nav interno (blog/admin): menú visible también en móvil ---------- */
.nav__menu--inner { gap: clamp(16px, 2vw, 32px); }
.nav__menu--inner a { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Blog: listado editorial ---------- */
/* Blog: rejilla de tarjetas con portada */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3.5vw, 56px); }
.blog-empty { color: var(--fg-mute); padding: 40px 0; grid-column: 1 / -1; }
.blog-grid-card { display: flex; flex-direction: column; gap: 16px; color: var(--fg); min-width: 0; }
.blog-grid-card__thumb { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.blog-grid-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med) var(--ease-out); }
.blog-grid-card:hover .blog-grid-card__thumb img { transform: scale(1.05); }
.blog-grid-card__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.blog-grid-card__date { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.blog-grid-card__title { font-family: var(--ff-display); font-size: clamp(28px, 3vw, 44px); line-height: 1; text-transform: uppercase; }
.blog-grid-card__excerpt { font-size: 15px; color: var(--fg-soft); line-height: 1.55; }
.blog-grid-card__more { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute); transition: color var(--t-fast); }
.blog-grid-card:hover .blog-grid-card__more { color: var(--fg); }

/* Primera entrada destacada (todo el ancho) */
.blog-grid-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: center; }
.blog-grid-card--featured .blog-grid-card__thumb { aspect-ratio: 16 / 11; }
.blog-grid-card--featured .blog-grid-card__title { font-size: clamp(34px, 4.4vw, 68px); }
.blog-grid-card--featured .blog-grid-card__excerpt { font-size: 16px; max-width: 46ch; }

/* ---------- Blog: entrada individual + aside ---------- */
/* Entrada: artículo centrado respecto a la portada */
.post {
  max-width: 880px;
  margin-inline: auto;
  padding-top: clamp(120px, 16vh, 190px);
  text-align: center;
}
.post .section__head { text-align: left; margin-bottom: clamp(26px, 4vw, 44px); }
.post__title {
  font-family: var(--ff-display); font-size: clamp(40px, 6.6vw, 92px);
  font-weight: 400; line-height: 0.98; text-transform: uppercase;
  margin: 0 auto 18px; max-width: 17ch;
}
.post__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 clamp(30px, 4vw, 48px);
}
.post__cover {
  margin: 0 0 clamp(34px, 5vw, 60px); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 1200 / 630; background: var(--bg-soft);
}
.post__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Prosa del cuerpo */
.post__body { max-width: 76ch; margin-inline: auto; text-align: left; }
.post__body > * + * { margin-top: 1.1em; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 {
  font-family: var(--ff-sans); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18; margin-top: 1.8em; margin-bottom: 0.4em;
}
.post__body h3 {
  font-family: var(--ff-sans); font-weight: 600; font-size: clamp(18px, 1.7vw, 22px);
  margin-top: 1.5em; margin-bottom: 0.3em;
}
.post__body p, .post__body li {
  font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--fg-soft);
}
.post__body strong { color: var(--fg); font-weight: 600; }
.post__body em { font-style: italic; }
.post__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.post__body a:hover { color: var(--fg-mute); }
.post__body ul, .post__body ol { padding-left: 0; margin: 0; display: grid; gap: 10px; }
.post__body ol { padding-left: 1.3em; }
.post__body ul { list-style: none; }
.post__body ul li { position: relative; padding-left: 1.4em; }
.post__body ul li::before { content: "→"; position: absolute; left: 0; color: var(--fg-mute); }
.post__body blockquote {
  margin: 1.4em 0; padding: 2px 0 2px 24px; border-left: 2px solid var(--fg);
  font-family: var(--ff-sans); font-style: italic; color: var(--fg);
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35;
}
.post__body img { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin: 0.4em 0; display: block; }
.post__body code { font-family: var(--ff-mono); font-size: 0.88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.post__body pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.post__body pre code { background: none; padding: 0; }
.post__back { max-width: 76ch; margin: clamp(44px, 5vw, 68px) auto 0; text-align: left; font-family: var(--ff-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.post__back a { color: var(--fg-mute); }
.post__back a:hover { color: var(--fg); }

/* Banda "Seguir leyendo" debajo del artículo */
.post-more { border-top: 1px solid var(--line); }
.post-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.post-more__card { display: flex; flex-direction: column; gap: 12px; color: var(--fg); min-width: 0; }
.post-more__thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.post-more__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med) var(--ease-out); }
.post-more__card:hover .post-more__thumb img { transform: scale(1.04); }
.post-more__date { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.post-more__title { font-family: var(--ff-display); font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; line-height: 1.04; }
.post-more--empty { color: var(--fg-mute); }

/* ---------- Home: sección "Desde el blog" ---------- */
.blog-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); }
.blog-home__card { display: flex; flex-direction: column; gap: 12px; color: var(--fg); min-width: 0; }
.blog-home__thumb { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.blog-home__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med) var(--ease-out); }
.blog-home__card:hover .blog-home__thumb img { transform: scale(1.04); }
.blog-home__date { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.blog-home__title { font-family: var(--ff-display); font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; line-height: 1.02; }
.blog-home__excerpt { font-size: 14px; color: var(--fg-soft); line-height: 1.55; }
.blog-home__more { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); margin-top: auto; }
.blog-home__foot { margin-top: clamp(28px, 4vw, 48px); }
.blog-home__empty { color: var(--fg-mute); }

/* ---------- Admin: login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 100px var(--gutter) 60px; }
.login__card { width: 100%; max-width: 440px; border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 44px); background: var(--bg-card); box-shadow: var(--shadow); }
.login__title { font-family: var(--ff-display); font-size: clamp(40px, 7vw, 72px); text-transform: uppercase; line-height: 0.95; margin: 10px 0 22px; }
.login__form { display: grid; gap: 16px; }
.login__form label { display: grid; gap: 6px; font-size: 13px; color: var(--fg-soft); }
.login__form .btn { justify-content: center; margin-top: 4px; }
.login__err, .login__ok {
  font-size: 13px; padding: 10px 14px; border-radius: 8px; margin: 0 0 16px;
  background: color-mix(in srgb, var(--fg) 6%, transparent); border-left: 2px solid var(--fg); color: var(--fg);
}
.login__hint { margin-top: 16px; font-size: 13px; color: var(--fg-mute); }
.login__hint code { font-family: var(--ff-mono); }

/* Inputs compartidos del panel */
.login__form input,
.editor__form input[type="text"],
.editor__form textarea,
.editor__status select {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
}
.login__form input:focus,
.editor__form input[type="text"]:focus,
.editor__form textarea:focus,
.editor__status select:focus { outline: none; border-color: var(--fg); }
.editor__form textarea { resize: vertical; }
.editor__form #body_md { font-family: var(--ff-mono); font-size: 14px; line-height: 1.65; min-height: 360px; }

/* ---------- Admin: tabla de entradas ---------- */
.admin-table { display: grid; border-top: 1px solid var(--line); }
.admin-row {
  display: grid; grid-template-columns: 1fr auto 130px 230px; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.admin-row--head { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.admin-row__title a { font-weight: 500; }
.admin-row__title a:hover { color: var(--fg-mute); }
.admin-row__date { font-family: var(--ff-mono); font-size: 12px; color: var(--fg-mute); }
.admin-row__actions { display: flex; gap: 14px; align-items: center; }
.admin-row__actions a:hover { color: var(--fg-mute); }
.admin-row__actions form { display: inline; margin: 0; }
.admin-del { font: inherit; font-size: 14px; color: var(--fg-mute); background: none; border: 0; cursor: pointer; padding: 0; }
.admin-del:hover { color: var(--fg); }
.badge { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--line-strong); }
.badge--published { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.badge--draft { color: var(--fg-mute); }

/* ---------- Admin: editor ---------- */
.editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.editor__form { display: grid; gap: 18px; min-width: 0; }
.editor__field { display: grid; gap: 8px; }
.editor__toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.editor__toolbar button { font-family: var(--ff-mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--fg); background: var(--bg); }
.editor__toolbar button:hover { border-color: var(--fg); }
.editor__help { font-size: 12px; color: var(--fg-mute); margin: 0; }
.editor__help code { font-family: var(--ff-mono); }
.editor__cover { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.editor__cover-preview { width: 160px; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px dashed var(--line-strong); overflow: hidden; display: grid; place-items: center; background: var(--bg-soft); }
.editor__cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.editor__cover-actions { display: grid; gap: 8px; }
.editor__actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.editor__status { display: grid; gap: 8px; }
.editor__previewcol { position: sticky; top: 100px; display: grid; gap: 10px; }
.editor__preview { border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.5vw, 32px); max-height: 78vh; overflow-y: auto; background: var(--bg); }
.editor__preview:empty::before { content: "La vista previa aparecerá aquí…"; color: var(--fg-mute); font-size: 14px; }

/* ---------- Responsive blog/admin/footer ---------- */
@media (max-width: 960px) {
  .nav--inner .nav__menu--inner { display: flex; }
  .post-more__grid { grid-template-columns: 1fr 1fr; }
  .tmn-list { grid-template-columns: 1fr; max-width: 560px; }
  .blog-grid-card--featured { grid-template-columns: 1fr; gap: 18px; }
  .blog-grid-card--featured .blog-grid-card__title { font-size: clamp(30px, 6vw, 50px); }
  .editor__grid { grid-template-columns: 1fr; }
  .editor__previewcol { position: static; }
  .blog-home { grid-template-columns: 1fr 1fr; }
  .admin-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .admin-row__date { display: none; }
  .admin-row--head { display: none; }
  .admin-row__actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav--inner .nav__actions .btn--nav { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-more__grid { grid-template-columns: 1fr; }
  .blog-home { grid-template-columns: 1fr; }
}
