/* ==========================================================================
   Amigos Imaginarios — hoja de estilos principal
   Escrita a mano. Sin frameworks, sin resets de terceros.
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0b0d;
  --ink-2: #17171b;
  --ink-3: #2a2a31;
  --paper: #ffffff;
  --bone: #f3f1ec;
  --bone-2: #e8e5dd;
  --cyan: #06b5ea;
  --cyan-2: #33c6f0;
  --cyan-dk: #0489b3;
  --red: #ee2b35;
  --red-dk: #cf1929;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument", Georgia, "Times New Roman", serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1320px;
  --sec: clamp(4.5rem, 10vw, 9rem);

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- Grano ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.bg-ink   { background: var(--ink);  color: #fff; }
.bg-cyan  { background: var(--cyan); color: var(--ink); }
.bg-bone  { background: var(--bone); color: var(--ink); }
.bg-red   { background: var(--red);  color: #fff; }

/* ---------- Tipografía utilitaria ---------- */
.display {
  font-size: clamp(2.75rem, 8.4vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-stretch: 115%;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.35rem, 6.2vw, 5rem); line-height: 0.94; text-transform: uppercase; }
.h2 { font-size: clamp(1.95rem, 4.6vw, 3.6rem); line-height: 0.98; text-transform: uppercase; }
.h3 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.08; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.5;
  font-weight: 400;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-stretch: 100%;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--dot::before {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
}

.mark {
  background: var(--red);
  color: #fff;
  padding: 0 0.16em 0.06em;
  display: inline-block;
  transform: rotate(-1.2deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mark--cyan { background: var(--cyan); color: var(--ink); transform: rotate(1deg); }

.num-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }

.btn--red { --btn-bg: var(--red); --btn-fg: #fff; border-color: var(--ink); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { box-shadow: 5px 5px 0 currentColor; }
.bg-ink .btn:hover, .bg-red .btn:hover { box-shadow: 5px 5px 0 #fff; }
.bg-ink .btn--white, .bg-red .btn--white { border-color: #fff; }

.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }

.link-u {
  position: relative;
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 11, 13, 0.1);
}
.site-header.is-stuck .brand .ai-logo-b { fill: var(--ink); }
.site-header.is-stuck .nav a { color: var(--ink); }
.site-header.is-hidden { transform: translateY(-105%); }

/* Con la barra de administración de WordPress, el header fijo tiene que
   bajar o queda tapado (solo lo ven los usuarios logueados). */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
body.admin-bar { --admin-bar: 32px; }
html { scroll-padding-top: 120px; }

.brand { display: inline-flex; align-items: center; }
.brand svg { width: clamp(132px, 15vw, 178px); height: auto; }
.brand .ai-logo-b { fill: var(--ink); transition: fill 0.3s; }
.is-hero-dark .brand .ai-logo-b { fill: #fff; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-weight: 600;
  font-size: 0.97rem;
  position: relative;
  padding-block: 0.35rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: 0.3s var(--ease);
}
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 27px; }
.is-menu-open .nav-toggle::before { top: 21px; transform: translateX(-50%) rotate(45deg); }
.is-menu-open .nav-toggle span { opacity: 0; }
.is-menu-open .nav-toggle::after { top: 21px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header.is-stuck { backdrop-filter: none; background: #fff; }
  .site-header.is-hidden { transform: none; }
  .nav-toggle { display: block; color: var(--ink); }
  .is-hero-dark .nav-toggle { color: #fff; }
  .is-stuck .nav-toggle { color: var(--ink); }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: -1;
  }
  .is-menu-open .nav { transform: translateY(0); }
  .nav ul { flex-direction: column; text-align: center; gap: 1.2rem; }
  .nav ul a { color: #fff !important; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 800; text-transform: uppercase; }
  .nav .btn { color: #fff; font-size: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--cyan);
  color: var(--ink);
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 62%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.5rem);
}
.hero h1 { max-width: 15ch; }
@media (max-width: 620px) { .hero h1 br { display: none; } }
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-top: 0.5rem;
  border-top: 2px solid rgba(11, 11, 13, 0.18);
  margin-top: 0.6rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}

.balloon {
  position: absolute;
  width: clamp(70px, 9vw, 130px);
  right: clamp(1rem, 7vw, 8rem);
  top: clamp(7rem, 15vw, 11rem);
  z-index: -1;
  opacity: 0.95;
  animation: float 7s ease-in-out infinite;
}
.balloon--2 {
  right: clamp(9rem, 22vw, 24rem);
  left: auto;
  top: auto;
  bottom: 8%;
  width: clamp(40px, 4.5vw, 68px);
  opacity: 0.75;
  animation-duration: 9s;
  animation-delay: -3s;
}
@media (max-width: 900px) { .balloon--2 { display: none; } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-26px) rotate(3deg); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  --speed: 38s;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
  padding-block: 0.9rem;
  border-block: 2px solid currentColor;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: none;
  min-width: 100%;
  animation: scroll var(--speed) linear infinite;
  align-items: center;
}
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}
.marquee__track > span::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
@keyframes scroll { to { transform: translateX(-100%); } }

.marquee--big { border: 0; padding-block: 0; }
.marquee--big .marquee__track > span {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-stretch: 116%;
  letter-spacing: -0.03em;
}
.marquee--big .marquee__track > span::after { width: 14px; height: 14px; }
.marquee--outline .marquee__track > span {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}
.marquee--outline .marquee__track > span::after { background: currentColor; }

/* ==========================================================================
   Manifiesto
   ========================================================================== */
.manifiesto { display: grid; gap: clamp(1.8rem, 4vw, 4rem); }
.manifiesto__body p {
  font-size: clamp(1.35rem, 2.9vw, 2.35rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.manifiesto__body p + p { margin-top: 0.9em; }
.manifiesto__foot {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.sticker {
  display: inline-grid;
  place-items: center;
  text-align: center;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: rotate(-9deg);
  flex: none;
  padding: 0.6rem;
}

.manifiesto__img { margin: 0; }
.manifiesto__img img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: 14px 14px 0 var(--red);
}
.manifiesto__img figcaption {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0.6;
  max-width: 30ch;
}

@media (min-width: 900px) {
  .manifiesto { grid-template-columns: 190px minmax(0, 1fr) minmax(0, 0.8fr); align-items: start; }
  .manifiesto__label { position: sticky; top: 120px; }
  .manifiesto__img { padding-top: 0.6rem; }
}
@media (max-width: 899px) {
  .manifiesto__img img { box-shadow: 10px 10px 0 var(--red); }
}

/* ==========================================================================
   Servicios (lista)
   ========================================================================== */
.svc-list { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 3rem; }
.svc {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  isolation: isolate; /* para que el ::before de fondo no quede detrás de la sección */
  transition: color 0.35s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gut) * -0.5);
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: -1;
  border-radius: 4px;
}
.svc:hover::before, .svc:focus-within::before { transform: scaleY(1); transform-origin: top; }
.svc__n {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 0.55rem;
  color: var(--cyan);
  transition: color 0.35s;
  font-variant-numeric: tabular-nums;
}
.svc:hover .svc__n { color: #fff; }
.svc__t {
  font-size: clamp(1.55rem, 3.4vw, 2.9rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.svc__d {
  margin-top: 0.7rem;
  max-width: 58ch;
  opacity: 0.72;
  font-size: 1rem;
  line-height: 1.55;
}
.svc:hover .svc__d { opacity: 1; }
.svc__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.9rem;
  list-style: none; padding: 0;
}
.svc__tags li {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.7;
}
.svc__arrow {
  align-self: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  flex: none;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.svc__arrow svg { width: 17px; height: 17px; }
.svc:hover .svc__arrow { transform: rotate(45deg); background: #fff; color: var(--red); }

@media (max-width: 720px) {
  .svc { grid-template-columns: 3rem 1fr; }
  .svc__arrow { display: none; }
}

/* ==========================================================================
   Trabajos
   ========================================================================== */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.sec-head__t { max-width: 18ch; }
.sec-head p { max-width: 42ch; opacity: 0.75; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0; list-style: none;
}
.filters button {
  background: transparent;
  border: 1.5px solid rgba(11, 11, 13, 0.22);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.work:hover img { transform: scale(1.05); }
.work__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.1rem 1rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 11, 13, 0.85));
  transform: translateY(24%);
  opacity: 0;
  transition: 0.45s var(--ease);
}
.work:hover .work__cap, .work:focus-visible .work__cap { transform: translateY(0); opacity: 1; }
.work__cap { display: block; }
.work__client { display: block; font-weight: 800; font-size: 1.02rem; line-height: 1.15; letter-spacing: -0.02em; text-transform: uppercase; }
.work__cat { display: block; font-size: 0.8rem; opacity: 0.85; margin-top: 0.15rem; }
.work.is-out { display: none; }

@media (hover: none) {
  .work__cap { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Proceso
   ========================================================================== */
.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  background: var(--ink);
  color: var(--cyan);
  border-radius: 4px;
}
.step h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); text-transform: uppercase; margin-bottom: 0.55rem; }
.step p { font-size: 0.97rem; opacity: 0.82; }

/* ==========================================================================
   Números
   ========================================================================== */
.stats { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 3px solid var(--red); padding-top: 1rem; }
.stat__n {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.stat__l { font-size: 0.93rem; opacity: 0.78; margin-top: 0.5rem; max-width: 22ch; }

/* ==========================================================================
   Testimonios
   ========================================================================== */
.quotes { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
@media (min-width: 850px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--paper);
  border: 1.5px solid rgba(11, 11, 13, 0.14);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__mark { font-family: var(--serif); font-size: 3rem; line-height: 0.5; color: var(--red); }
.quote p { font-size: 1.05rem; line-height: 1.5; }
.quote footer { margin-top: auto; font-size: 0.9rem; }
.quote footer strong { display: block; font-weight: 700; }
.quote footer span { opacity: 0.65; }

/* ==========================================================================
   Contacto / formulario
   ========================================================================== */
.contact { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 950px) { .contact { grid-template-columns: 1fr 1.1fr; } }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid currentColor;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: 0.2s;
}
.bg-bone .field input, .bg-bone .field select, .bg-bone .field textarea { background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: 0.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.bg-bone .field input:focus, .bg-bone .field textarea:focus, .bg-bone .field select:focus { box-shadow: 0 0 0 3px rgba(238, 43, 53, 0.3); }
.field select { appearance: none; background-image: none; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form__note { font-size: 0.82rem; opacity: 0.75; }
.form__msg {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid currentColor;
}
.form__msg--ok { background: rgba(255, 255, 255, 0.16); }
.form__msg--err { background: rgba(0, 0, 0, 0.16); }

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list a { font-weight: 600; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-big { text-align: center; }
.cta-big .display { margin-bottom: 1.5rem; }
.cta-big p { max-width: 48ch; margin-inline: auto; }
.cta-big .hero__cta { justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .brand svg { width: 190px; }
.site-footer .brand .ai-logo-b { fill: #fff; }
.footer-tag { margin-top: 1.1rem; max-width: 30ch; opacity: 0.7; font-size: 0.97rem; }
.footer-col h4 {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 1rem; font-weight: 700; font-stretch: 100%;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--cyan); }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.84rem;
  opacity: 0.6;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 600;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   Blog
   ========================================================================== */
.page-hero { padding-top: clamp(8rem, 15vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .h1 { max-width: 18ch; }
.page-hero p { max-width: 52ch; margin-top: 1.2rem; opacity: 0.8; }

.posts { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column;
  border: 1.5px solid rgba(11, 11, 13, 0.14);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.post-card__img { aspect-ratio: 16 / 10; background: var(--bone-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card h3 { font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.02em; }
.post-card__meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; font-weight: 700; }
.post-card p { font-size: 0.95rem; opacity: 0.78; }
.post-card__more { margin-top: auto; font-weight: 700; color: var(--red); font-size: 0.92rem; }

.entry { max-width: 720px; margin-inline: auto; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; opacity: 0.6; margin-bottom: 1.2rem; }
.entry__content { font-size: 1.08rem; line-height: 1.72; }
.entry__content > * + * { margin-top: 1.3em; }
.entry__content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2em; text-transform: none; }
.entry__content h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: 1.8em; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li + li { margin-top: 0.5em; }
.entry__content blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}
.entry__content img { border-radius: var(--r-md); }
.entry__content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry__content figure { margin: 0; }

.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 3rem; justify-content: center; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding-inline: 0.7rem;
  border: 1.5px solid rgba(11, 11, 13, 0.2);
  border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Utilidades / animación
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

.rule { height: 2px; background: currentColor; opacity: 0.15; border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* WP core */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: none; }
.wp-caption-text, .entry__content figcaption { font-size: 0.85rem; opacity: 0.65; margin-top: 0.6rem; }
