/* =============================================================
   0. Tipografías, servidas desde este mismo dominio
   Inter y Fraunces, bajo licencia SIL Open Font 1.1.
   Versiones variables: un archivo cubre todo el rango de grosores.
   ============================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0b0c;
  --bg-soft:   #101113;
  --bg-3:      #16181b;
  --ink:       #ece9e3;
  --mute:      #9b9891;
  --ink-soft:  #d2cfc8;
  --line:      rgba(236,233,227,0.09);
  --line-2:    rgba(236,233,227,0.18);
  --divider:   linear-gradient(to right, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);

  --accent:      #b3925f;
  --accent-2:    #d9c7a7;
  --accent-3:    #6f7a86;
  --accent-ink:  #0a0b0c;
  --accent-soft: rgba(179,146,95,0.13);

  --secondary: #07080a;
  --dark-line: rgba(236,233,227,0.11);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 64px;
  --nav-top: 12px;
  --nav-space: calc(var(--nav-h) + var(--nav-top));
  --container: 1180px;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.34), 0 1px 1px rgba(0,0,0,0.2);
  --shadow-md: 0 14px 34px rgba(0,0,0,0.4), 0 3px 10px rgba(0,0,0,0.26);
  --shadow-lg: 0 34px 70px rgba(0,0,0,0.52), 0 8px 22px rgba(0,0,0,0.3);
  --shadow-glow: 0 22px 54px -22px rgba(0,0,0,0.78), 0 0 0 1px var(--line-2);
  --shadow-ring: 0 0 0 1px var(--line-2);
}

/* Animated mesh gradient axes (progressive enhancement) */

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.12; letter-spacing: -0.014em;
  font-family: var(--sans); font-weight: 600;
}
h1 em, h2 em, h3 em, .em-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--accent-2);
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 1px;
  z-index: 200; pointer-events: none;
  background: rgba(236,233,227,0.05);
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .1s linear;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset .2s var(--ease-out);
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--secondary); color: var(--accent);
  z-index: 9999; border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.kicker::before,
.kicker::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  flex-shrink: 0;
}
.kicker::after { background: linear-gradient(90deg, var(--accent), transparent); }
.kicker::before { margin-right: 0.22em; }
.contact .kicker { font-size: 0.78rem; }

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-reveal-scale] {
  opacity: 0; transform: scale(0.97) translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal-scale].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-scale] {
    transform: none;
    transition: opacity .45s var(--ease-out);
  }
  [data-reveal].is-revealed, [data-reveal-scale].is-revealed { transform: none; }
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  transition: opacity .6s var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn-sm { padding: .62rem 1.25rem; font-size: 0.86rem; }
.btn.btn-back {
  width: 44px; height: 44px; padding: 0;
  font-size: 1.2rem; line-height: 1;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--ink);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
  transform: translateY(-2px);
  background: #fffdf8;
  box-shadow: var(--shadow-md);
}
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(236,233,227,0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
}
.btn-ghost:active { transform: translateY(0); }
.btn-text {
  padding: .95rem .2rem;
  color: var(--ink);
  position: relative;
}
.btn-text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .6rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-text:hover::after { transform: scaleX(1); transform-origin: left; }
}

.link-more {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.link-more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-more:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* =============================================================
   6. Navigation
   ============================================================= */
/* Barra flotante: separada de los bordes, alineada con el contenido de la
   página y con fondo propio desde el principio. Al bajar se encoge, sube un
   poco y se vuelve más opaca. El filete va por dentro para no mover el
   contenido. Se usan translate y scale por separado para que la entrada y el
   encogimiento no se pisen. */
.nav {
  position: fixed; top: var(--nav-top); z-index: 100;
  left: max(var(--nav-top), calc((100% - var(--container)) / 2));
  right: max(var(--nav-top), calc((100% - var(--container)) / 2));
  height: var(--nav-h);
  border-radius: var(--radius-lg);
  background: rgba(12,13,15,0.52);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -20px rgba(0,0,0,0.7);
  transition: background-color 300ms ease, box-shadow 300ms ease,
              translate 400ms var(--ease-out), scale 400ms var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(16,17,19,0.86);
  translate: 0 -4px;
  scale: 0.94;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 48px -20px rgba(0,0,0,0.85);
}
/* Donde el navegador lo permite, el encogimiento sigue al scroll: se hace a
   lo largo de los primeros 240 px, sin código que escuche el scroll. */
@keyframes navEncoge { from { scale: 1; } to { scale: 0.94; } }
@supports (animation-timeline: scroll()) {
  .nav {
    animation: navEncoge linear both;
    animation-timeline: scroll(root);
    animation-range: 0 240px;
  }
}
/* En la portada, la barra llega desde arriba al cargar, antes que el titular. */
@keyframes navLlega { from { opacity: 0; translate: 0 -16px; } }
body:has([data-hero]) .nav { animation: navLlega 700ms var(--ease-out) backwards; }
@supports (animation-timeline: scroll()) {
  body:has([data-hero]) .nav {
    animation: navLlega 700ms var(--ease-out) backwards, navEncoge linear both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav, body:has([data-hero]) .nav { animation: none; }
  .nav.is-scrolled { scale: none; }
}
/* Páginas legales y de error: la misma barra, pero en su sitio, sin fijarse. */
.nav--static,
.nav--static.is-scrolled {
  position: relative; inset: auto;
  margin: var(--nav-top) max(var(--nav-top), calc((100% - var(--container)) / 2)) 0;
  background: rgba(16,17,19,0.86);
  translate: none; scale: none;
  animation: none;
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-scrolled { background: rgba(16,17,19,0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav-inner {
  padding-inline: 0.75rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
/* Con la barra ya separada de los bordes, el contenido se alinea con el de
   la página. */
@media (min-width: 1204px) {
  .nav-inner { padding-inline: 1.5rem; }
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.17em;
}
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.nav-links {
  display: none;
  gap: 2.2rem;
  margin-inline: auto;
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: .3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.nav-cta { display: none; }

.nav-burger {
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%) translateY(-6px);
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
}
.nav-burger span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(6px); }

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 420ms var(--ease-out);
}
.nav-mobile.is-open { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.nav-mobile a { font-size: 1.9rem; font-weight: 500; }

/* =============================================================
   7. Hero
   ============================================================= */
/* La fotografía, en blanco y negro, ocupa todo el fondo; el texto va
   centrado sobre la zona central, que se oscurece para que se lea bien. */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-space) + 2rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
  animation: heroAsiento 1.6s var(--ease-out) both;
}
/* Fondo fijo: la foto y el vídeo no se mueven con el ratón. */
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
/* El vídeo va encima de la foto, con el mismo encuadre y el mismo blanco y
   negro, y aparece en fundido cuando empieza a reproducirse. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 54%,
      rgba(10,11,12,0.74) 0%,
      rgba(10,11,12,0.52) 55%,
      rgba(10,11,12,0.3) 100%),
    linear-gradient(180deg,
      rgba(10,11,12,0.55) 0%,
      rgba(10,11,12,0.08) 24%,
      rgba(10,11,12,0.08) 70%,
      var(--bg) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
  color: #fff;
}
.hero-inner .btn-text { color: #fff; }

/* El filete de bronce de los titulares de la web, centrado sobre el título. */
.hero-title {
  position: relative;
  padding-top: 1.9rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.hero-title::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  width: 40px; height: 1px;
  margin-inline: auto;
  background: var(--accent);
}
.hero-title em { display: inline-block; }
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 46ch;
  text-wrap: balance;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(236,233,227,0.82);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
}

/* Entrada: la foto se asienta, el titular baja a su sitio y el resto sube
   hacia él, uno detrás de otro. */
@keyframes heroAsiento { from { transform: scale(1.06); } to { transform: none; } }
@keyframes heroBaja    { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes heroSube    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroFilete  { from { transform: scaleX(0); } to { transform: none; } }
.hero-title          { animation: heroBaja 900ms var(--ease-out) 100ms both; }
.hero-title::before  { animation: heroFilete 700ms var(--ease-out) 500ms both; }
.hero-sub            { animation: heroSube 900ms var(--ease-out) 280ms both; }
.hero-actions        { animation: heroSube 900ms var(--ease-out) 400ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-title, .hero-title::before, .hero-sub, .hero-actions { animation: none; }
}

/* =============================================================
   8. Manifesto / differentiator
   ============================================================= */
.manifesto {
  padding-block: 6rem;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
  border-top: 1px solid transparent;
  border-image: var(--divider) 1;
}
.manifesto-statement {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
}
.manifesto-body {
  margin-top: 1.4rem;
  color: var(--mute);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-inline: auto;
}
.benefits-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  text-align: left;
}
.benefit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.9rem 1.7rem;
  background: linear-gradient(165deg, var(--bg-3) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: opacity 600ms var(--ease-out), transform 400ms var(--ease-out), border-color 200ms ease;
}
.benefit::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .benefit:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
  }
  .benefit:hover::before { transform: scaleX(1); }
}
.benefit-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.9rem;
}
.benefit-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--accent);
}
.benefit-num {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mute);
}
.benefit h3 { font-size: 1.2rem; }
.benefit p { margin-top: 0.5rem; color: var(--mute); font-size: 0.95rem; }
@media (min-width: 720px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid .benefit:nth-child(1) { transition-delay: 0s; }
  .benefits-grid .benefit:nth-child(2) { transition-delay: .08s; }
  .benefits-grid .benefit:nth-child(3) { transition-delay: .16s; }
}

/* =============================================================
   9. Services — full-bleed stacked tiles
   ============================================================= */
.service-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 6.5rem;
  padding-inline: 1.5rem;
  text-align: center;
  color: #fff;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
}
.service-tile::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 100% 70% at 50% 50%, rgba(11,12,15,0.42) 0%, rgba(11,12,15,0.78) 75%, rgba(11,12,15,0.9) 100%),
    linear-gradient(180deg, rgba(11,12,15,0.7) 0%, rgba(11,12,15,0.62) 50%, rgba(11,12,15,0.88) 100%);
}

/* Centered composition on desktop */
@media (min-width: 960px) {
  .service-tile { padding-block: 8.5rem; }
  .service-tile > *:not(.tile-photo) {
    max-width: 720px;
    margin-inline: auto;
  }
  .service-tile::before {
    background:
      radial-gradient(ellipse 58% 78% at 50% 50%, rgba(11,12,15,0.8) 0%, rgba(11,12,15,0.62) 55%, rgba(11,12,15,0.42) 100%),
      linear-gradient(180deg, rgba(11,12,15,0.5) 0%, rgba(11,12,15,0.3) 50%, rgba(11,12,15,0.62) 100%);
  }
}

.service-num {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
}
.service-num::before,
.service-num::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.service-num::after { background: linear-gradient(90deg, var(--accent), transparent); }
.service-num::before { margin-right: 0.22em; }
.service-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  letter-spacing: -0.038em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.service-teaser {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  margin-inline: auto;
}
.service-body {
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  margin-inline: auto;
}
.service-actions {
  margin-top: 2.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
}
.service-tile .link-more { color: #fff; }

/* =============================================================
   10. About + stats
   ============================================================= */
.about {
  padding-block: 6rem;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}
.about-statement { font-size: clamp(1.8rem, 4.2vw, 3rem); }
.about-body {
  margin-top: 1.4rem;
  color: var(--mute);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-inline: auto;
}
.stats-kicker { display: block; margin-top: 3.5rem; }
.stats-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.stat {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  padding: 2rem 1.2rem;
  background: linear-gradient(165deg, var(--bg-3) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: opacity 600ms var(--ease-out), transform 400ms var(--ease-out), border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
  }
}
.stat-icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.2rem; }
.stat-value {
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--mute); font-size: 0.9rem; max-width: 22ch; }

/* =============================================================
   10.6 CTA band
   ============================================================= */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 7rem;
  padding-inline: 1.5rem;
  text-align: center;
  background: var(--secondary);
  color: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Dos brillos que se cruzan despacio. Antes se movían cambiando variables
   dentro de un degradado difuminado, lo que obligaba a repintarlo en cada
   fotograma; ahora el degradado se pinta una vez y solo se desplaza la capa. */
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute; inset: -35%; z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
  filter: blur(110px);
}
.cta-band::before {
  background: radial-gradient(48% 48% at 50% 50%, rgba(179,146,95,0.4), transparent 64%);
  animation: brilloIda 22s ease-in-out infinite alternate;
}
.cta-band::after {
  background: radial-gradient(40% 40% at 50% 50%, rgba(217,199,167,0.16), transparent 62%);
  animation: brilloVuelta 22s ease-in-out infinite alternate;
}
@keyframes brilloIda {
  from { transform: translate(-18%, -8%); }
  to   { transform: translate(18%, 8%); }
}
@keyframes brilloVuelta {
  from { transform: translate(18%, 8%); }
  to   { transform: translate(-18%, -8%); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before, .cta-band::after { animation: none; }
}
.cta-band-heading { font-size: clamp(2.2rem, 5.4vw, 3.6rem); color: #fff; }
.cta-band-sub { margin-top: 1rem; color: rgba(255,255,255,0.7); max-width: 46ch; margin-inline: auto; }
.cta-band .btn-primary { margin-top: 2.2rem; }

/* =============================================================
   11. Contact
   ============================================================= */
.contact {
  padding-block: 7rem 6rem;
  padding-inline: 1.5rem;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  border-top: 1px solid transparent;
  border-image: var(--divider) 1;
}
.contact-heading { font-size: clamp(2.4rem, 6vw, 4rem); }
.contact-sub { margin-top: 1.2rem; color: var(--mute); }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  position: relative;
  padding-bottom: 0.3rem;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
}

.contact-links {
  margin-top: 1rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; flex-wrap: wrap;
}
.contact-links a {
  color: var(--mute);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover { color: var(--accent); }
}
.contact-links .btn.contact-btn { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .contact-links .btn.contact-btn:hover { color: var(--ink); border-color: var(--ink); }
}
.contact-icon { width: 16px; height: 16px; flex-shrink: 0; }
.contact-email-icon { width: 0.75em; height: 0.75em; flex-shrink: 0; }

.cta-form {
  margin-top: 3.2rem;
  display: grid;
  gap: 1.2rem;
  text-align: left;
  position: relative;
  padding: 2.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(244,242,239,0.045), rgba(244,242,239,0.012));
  box-shadow: 0 34px 80px -46px rgba(0,0,0,0.9);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.cta-form::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(620px 260px at 50% -8%, var(--accent-soft), transparent 68%);
}
.cta-form > * { position: relative; }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.3rem 1rem 0.55rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' stroke='%23b3bec7' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.field label {
  position: absolute; left: 1rem; top: 1.1rem;
  pointer-events: none;
  color: var(--mute); font-size: 0.95rem;
  transform-origin: left top;
  transition: transform 200ms var(--ease-out), color 200ms ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  /* De 1,1rem a 0,5rem y de 0,95rem a 0,72rem, con transform en vez de
     mover la maquetación: 0,72 / 0,95 = 0,758. */
  transform: translateY(-0.6rem) scale(0.758);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.field-textarea label { top: 1.1rem; }
.label-select {
  top: 0.5rem !important; font-size: 0.72rem !important; letter-spacing: 0.08em; text-transform: uppercase;
}
.field select:invalid { color: var(--mute); }

.field-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.field-consent input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.field-consent label {
  position: static; font-size: 0.85rem; color: var(--mute); line-height: 1.5; cursor: pointer;
}
.field-consent label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cta-submit { position: relative; justify-self: start; margin-top: 0.4rem; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 16px; height: 16px;
  border: 1.5px solid rgba(20,23,26,0.25); border-top-color: var(--accent-ink);
  border-radius: 50%;
}
/* Solo gira mientras se envía; oculto, no consume nada. */
.cta-form.is-sending .cta-form-spinner::after { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path {
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .55s var(--ease-out);
}

.cta-success {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -40%);
  opacity: 0; pointer-events: none;
  transition: opacity 600ms var(--ease-out) 150ms, transform 700ms var(--ease-out) 150ms;
  width: 100%;
}
.cta-success.is-visible {
  opacity: 1; transform: translate(-50%, -50%); pointer-events: auto;
}
.cta-success p { color: var(--mute); margin-top: 0.6rem; }

/* =============================================================
   11.5 Credits page
   ============================================================= */
.credits-page { padding-block: 5rem 6rem; }
.credits-inner { max-width: 720px; margin-inline: auto; padding-inline: 1.5rem; }
.credits-title { font-size: clamp(2rem, 5vw, 3rem); }
.credits-sub { margin-top: 1rem; color: var(--mute); }
.credits-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-page h2 {
  margin-top: 2.5rem;
  font-size: 1.15rem;
}
.legal-page p {
  margin-top: 0.8rem;
  color: var(--mute);
  line-height: 1.7;
}
.legal-page p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { margin-top: 3rem !important; font-size: 0.85rem; }
.credits-list {
  margin-top: 2.5rem;
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.credits-list li {
  padding: 1.2rem 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--mute);
}
.credits-list li strong { color: var(--ink); }
.credits-list li a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   12. Footer
   ============================================================= */
.footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.62rem; font-weight: 500; letter-spacing: 0.17em; font-size: 0.95rem; }
.footer-location { color: var(--mute); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--mute); font-size: 0.88rem; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--accent); }
}
.footer-copy { color: var(--mute); font-size: 0.8rem; width: 100%; }
.footer-credits-link { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .footer-credits-link:hover { color: var(--accent); }
}

.lang-switch {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--mute); flex-shrink: 0;
}
.lang-switch a { color: var(--mute); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch a:hover { color: var(--accent); }
}
.lang-switch .lang-current { color: var(--ink); }
.lang-switch-sep { color: var(--line-2); }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid .stat:nth-child(1) { transition-delay: 0s; }
  .stats-grid .stat:nth-child(2) { transition-delay: .06s; }
  .stats-grid .stat:nth-child(3) { transition-delay: .12s; }
  .stats-grid .stat:nth-child(4) { transition-delay: .18s; }
  .cta-form { grid-template-columns: 1fr 1fr; }
  .field-textarea, .field-consent, .cta-submit { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .nav-mobile { display: grid; }
}
@media (min-width: 960px) {
  .nav-mobile { display: none; }
}


@media (max-width: 639px) {
  .cta-form { padding: 1.4rem; }
}

@media (max-width: 480px) {
  .kicker { letter-spacing: 0.14em; gap: 0.5rem; }
  .kicker::before, .kicker::after { width: 16px; }
}

/* =============================================================
   14. Páginas de servicio
   ============================================================= */
.page-hero { padding-block: 8rem; }

.service-section {
  padding-block: 5rem;
  padding-inline: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.service-section > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  position: relative;
  padding-top: 1.7rem;
}
.service-section > h2::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 1px;
  background: var(--accent);
}

/* Cómo trabajamos: línea de tiempo */
.process {
  margin: 2.4rem 0 0; padding: 0; list-style: none;
  counter-reset: paso; text-align: left;
}
.process li {
  counter-increment: paso;
  position: relative;
  padding: 0 0 2.2rem 3rem;
}
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--accent); font-size: 0.72rem; font-weight: 600;
}
.process li::after {
  content: "";
  position: absolute; left: 0.85rem; top: 2rem; bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.05rem; }
.process p { margin-top: 0.4rem; color: var(--mute); font-size: 0.95rem; max-width: 58ch; }

/* Para quién es */
.audience { margin: 2.6rem 0 0; padding: 0; display: grid; text-align: left; }
.audience-item {
  display: grid; gap: 0.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.audience-item:first-child { border-top: 0; padding-top: 0.6rem; }
.audience dt {
  position: relative; padding-left: 1.5rem;
  color: var(--ink); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.008em;
}
.audience dt::before {
  content: "";
  position: absolute; left: 0; top: 0.64em;
  width: 10px; height: 1px;
  background: var(--accent);
}
.audience dd {
  margin: 0; color: var(--mute);
  font-size: 0.95rem; line-height: 1.65; max-width: 58ch;
}
@media (min-width: 720px) {
  .audience-item { grid-template-columns: 1fr 1.65fr; gap: 2.2rem; align-items: start; }
  .audience dd { padding-top: 0.12rem; }
}

/* Banda fotográfica de descanso */
.service-band {
  position: relative;
  isolation: isolate;
  padding-block: 7rem;
  padding-inline: 1.5rem;
  text-align: center;
  color: #fff;
  background-image: url("assets/img/hero-agency.jpg");
  background-size: cover;
  background-position: center;
}
.service-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 75% at 50% 50%, rgba(10,11,12,0.7) 0%, rgba(10,11,12,0.58) 55%, rgba(10,11,12,0.44) 100%),
    linear-gradient(180deg, rgba(10,11,12,0.55) 0%, rgba(10,11,12,0.34) 50%, rgba(10,11,12,0.6) 100%);
}
.service-band-line {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin-inline: auto;
  text-shadow: 0 2px 22px rgba(0,0,0,0.5);
}

/* Preguntas frecuentes */
.faq { margin-top: 2.6rem; text-align: left; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item > summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item summary h3 {
  margin: 0; font-size: 1.05rem; font-weight: 600;
  transition: color .3s var(--ease-out);
}
.faq-sign {
  position: relative; flex-shrink: 0;
  width: 12px; height: 12px; margin-top: 0.42rem;
}
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.faq-sign::before { left: 0; top: 5px; width: 12px; height: 1px; }
.faq-sign::after  { left: 5px; top: 0; width: 1px; height: 12px; }
.faq-item[open] .faq-sign::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: 1.5rem; }
.faq-answer p {
  margin: 0; color: var(--mute);
  font-size: 0.95rem; line-height: 1.65; max-width: 62ch;
}
.faq-item[open] .faq-answer { animation: faqAbrir 250ms var(--ease-out); }
@keyframes faqAbrir {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
.faq-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .faq-item > summary:hover h3 { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-answer { animation: none; }
}

/* Otros servicios */
.other-services { margin-top: 2.6rem; display: grid; gap: 1.3rem; }
.other-service { display: grid; gap: 0.8rem; color: var(--ink); }
.other-service-photo {
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  filter: grayscale(0.45) brightness(0.72);
  transition: transform 300ms var(--ease-out), filter 300ms ease, border-color 200ms ease;
}
.other-service-name { font-size: 0.95rem; transition: color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .other-service:hover .other-service-photo {
    transform: translateY(-4px);
    filter: grayscale(0) brightness(0.95);
    border-color: var(--line-2);
  }
  .other-service:hover .other-service-name { color: var(--accent); }
}

/* Apariciones escalonadas, solo donde los bloques van en fila */
@media (min-width: 720px) {
  .benefits-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .other-services { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid--4 .benefit:nth-child(1) { transition-delay: 0s; }
  .benefits-grid--4 .benefit:nth-child(2) { transition-delay: .07s; }
  .benefits-grid--4 .benefit:nth-child(3) { transition-delay: .14s; }
  .benefits-grid--4 .benefit:nth-child(4) { transition-delay: .21s; }
  .other-service:nth-child(1) { transition-delay: 0s; }
  .other-service:nth-child(2) { transition-delay: .08s; }
  .other-service:nth-child(3) { transition-delay: .16s; }
  .process li:nth-child(1), .faq-item:nth-child(1), .audience li:nth-child(1) { transition-delay: 0s; }
  .process li:nth-child(2), .faq-item:nth-child(2), .audience li:nth-child(2) { transition-delay: .06s; }
  .process li:nth-child(3), .faq-item:nth-child(3), .audience li:nth-child(3) { transition-delay: .12s; }
  .process li:nth-child(4), .faq-item:nth-child(4), .audience li:nth-child(4) { transition-delay: .18s; }
  .faq-item:nth-child(5) { transition-delay: .24s; }
  .faq-item:nth-child(6) { transition-delay: .30s; }
}
@media (min-width: 960px) {
  .page-hero { padding-block: 10rem; }
  .service-section { padding-block: 6.5rem; }
  .service-band { padding-block: 9rem; }
}

/* Proceso con fotografía al lado */
.service-process { padding-block: 5rem; padding-inline: 1.5rem; }
.service-process-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}
.service-photo {
  display: block; width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  filter: brightness(0.85);
}
.service-process-text > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  position: relative;
  padding-top: 1.7rem;
  text-align: center;
}
.service-process-text > h2::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 1px;
  background: var(--accent);
}
@media (min-width: 960px) {
  .service-process { padding-block: 6.5rem; }
  .service-process-inner { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .service-process-photo { position: sticky; top: 96px; }
  .service-photo { aspect-ratio: 4 / 5; }
  .service-process-text > h2 { text-align: left; }
  .service-process-text > h2::before { left: 0; transform: none; }
}

/* =============================================================
   16. Superficies del propio navegador
   ============================================================= */
html { scrollbar-width: thin; scrollbar-color: var(--line-2) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
input, textarea, select { caret-color: var(--accent); }
a { text-underline-offset: 3px; }

/* Al tocar en el movil no debe aparecer el recuadro gris del sistema. */
a, button, [role="button"], input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

/* =============================================================
   17. Anclaje de seccion y migas de pan
   ============================================================= */
.section-rule { position: relative; padding-top: 1.75rem; }
.section-rule::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 1px;
  background: var(--accent);
}
/* En las páginas legales el titular va a la izquierda; el filete lo acompaña. */
.credits-title.section-rule::before { left: 0; transform: none; }

.breadcrumb {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.breadcrumb ol {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.breadcrumb a { color: var(--mute); transition: color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--accent); }
}
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* =============================================================
   18. Entradilla y bajadas de sección
   ============================================================= */
.service-lead {
  max-width: 60ch;
  margin: 0 auto 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
  line-height: 1.58;
  letter-spacing: -0.006em;
}

.section-deck {
  max-width: 52ch;
  margin: 0.9rem auto 0;
  color: var(--mute);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Los títulos de sección ganan cuerpo y comparten el mismo filete. */
.service-section > h2,
.service-process-text > h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  letter-spacing: -0.018em;
}
.manifesto-statement {
  position: relative;
  padding-top: 1.75rem;
}
.manifesto-statement::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 1px;
  background: var(--accent);
}
@media (min-width: 960px) {
  .service-process-text .section-deck { margin-inline: 0; }
}

/* Enlaces dentro del texto corrido de las páginas de servicio. */
.about-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .about-body a:hover { color: var(--accent-2); }
}

/* La fotografía de cada tarjeta, detrás del velo que hace legible el texto. */
.tile-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .service-tile:hover .tile-photo { transform: scale(1.035); }
}

/* Aviso cuando el formulario no consigue enviarse. Mantiene a la vista
   las otras formas de contacto para que la solicitud no se pierda. */
.cta-error {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  text-align: left;
}
.cta-error[hidden] { display: none; }
.cta-error-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.cta-error-body {
  margin-top: 0.35rem;
  color: var(--mute);
  font-size: 0.93rem;
}
.cta-error-links {
  margin-top: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
}
.cta-error-links a {
  color: var(--accent);
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .cta-error-links a:hover { color: var(--accent-2); }
}

/* Al pulsar, el botón cede un poco: confirma que se ha tocado. */
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
/* =============================================================
   19. Artículos
   ============================================================= */
/* En la sección no hay foto de cabecera: la ruta de navegación deja sitio
   a la barra fija. */
.breadcrumb--top { padding-top: calc(var(--nav-space) + 1.1rem); }

/* Índice */
.posts-index { padding-top: 4rem; }
.posts-title { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.post-list {
  margin: 3rem 0 0; padding: 0;
  list-style: none;
  display: grid; gap: 1.4rem;
  text-align: left;
}
.post-card {
  display: grid; gap: 1.3rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: border-color 200ms ease;
}
.post-card-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: brightness(0.88);
  transition: filter 200ms ease;
}
.post-card-text { display: grid; gap: 0.7rem; align-content: center; }
.post-card-title {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  transition: color 200ms ease;
}
.post-card-excerpt { color: var(--mute); font-size: 0.95rem; line-height: 1.6; }
.post-card .link-more { justify-self: start; margin-top: 0.2rem; }
@media (min-width: 720px) {
  .post-card { grid-template-columns: 2fr 3fr; gap: 2rem; padding: 1.3rem; }
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { border-color: var(--line-2); }
  .post-card:hover .post-card-title { color: var(--accent); }
  .post-card:hover .post-card-photo { filter: brightness(1); }
}

/* Fecha y tiempo de lectura */
.post-meta { color: var(--mute); font-size: 0.85rem; }
.post-meta-sep { margin-inline: 0.55em; color: var(--line-2); }

/* Artículo */
.post-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.6rem;
  text-align: center;
}
.post-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  text-wrap: balance;
}
.post-lead {
  max-width: 60ch;
  margin: 1.3rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
}
.post-header .post-meta { margin-top: 1.4rem; }

.post-figure { max-width: 1040px; margin: 0 auto 3.6rem; padding-inline: 1.5rem; }
.post-figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  filter: brightness(0.9);
}

/* El cuerpo: columna centrada en pantalla, texto alineado a la izquierda
   y una medida cómoda para leer párrafos largos. */
.post-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
  line-height: 1.78;
  text-align: left;
}
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  margin-top: 2.4em;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.25;
}
.post-body h3 {
  margin-top: 1.9em;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
}
.post-body h2 + *, .post-body h3 + * { margin-top: 0.7em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.5em; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body blockquote {
  margin-inline: 0;
  padding-left: 1.2rem;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  font-size: 1.12rem;
}
@media (hover: hover) and (pointer: fine) {
  .post-body a:hover { color: var(--accent-2); }
}

.post-related {
  /* Mismo cuerpo de letra que el texto, para que el ancho en caracteres
     coincida y el bloque arranque en la misma lÃ­nea que los pÃ¡rrafos. */
  font-size: 1.075rem;
  width: min(calc(68ch - 3rem), calc(100% - 3rem));
  margin: 3.4rem auto 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.post-related-title {
  color: var(--mute);
  font-size: 0.85rem;
}
.post-related ul {
  margin: 0.6rem 0 0; padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
}
.post-related a { font-size: 1rem; color: var(--ink); font-weight: 500; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .post-related a:hover { color: var(--accent); }
}
.post + .cta-band { margin-top: 5rem; }

/* La ruta de navegación de los artículos cabe en una línea: el título
   largo, que ya se lee justo debajo en grande, se recorta si no cabe. */
.breadcrumb--top ol { flex-wrap: nowrap; }
.breadcrumb--top li { flex-shrink: 0; }
.breadcrumb--top li:last-child { flex-shrink: 1; min-width: 0; }
.breadcrumb--top [aria-current="page"] {
  display: block; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* La sección en la que se está, subrayada en el menú. */
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* =============================================================
   20. Movimiento de la sección de artículos
   Un solo momento al llegar: la cabecera entra escalonada y la foto
   se asienta. El texto que se lee no se mueve.
   ============================================================= */
@keyframes llegada {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes llegadaSuave {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Solo transformación: la foto se ve desde el primer instante, así que
   no retrasa la medida de carga de Google. */
@keyframes asiento {
  from { transform: scale(1.02); }
  to   { transform: none; }
}
@keyframes trazo {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}

.post-header > *,
.posts-index > .posts-title,
.posts-index > .section-deck {
  animation: llegada 600ms var(--ease-out) both;
}
.post-header > :nth-child(2),
.posts-index > .section-deck { animation-delay: 60ms; }
.post-header > :nth-child(3) { animation-delay: 120ms; }
.post-figure img { animation: asiento 900ms var(--ease-out) 120ms both; }
.posts-title.section-rule::before { animation: trazo 500ms var(--ease-out) 200ms both; }

/* Varias tarjetas en fila: aparecen escalonadas, no todas a la vez. */
@media (min-width: 720px) {
  .post-item:nth-child(2) { transition-delay: 60ms; }
  .post-item:nth-child(3) { transition-delay: 120ms; }
  .post-item:nth-child(4) { transition-delay: 180ms; }
}

/* Los títulos dentro del artículo llevan el mismo filete que el resto de
   la web: marca el ritmo del texto sin decorarlo. */
.post-body h2 { position: relative; padding-top: 1.1rem; }
.post-body h2::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 26px; height: 1px;
  background: var(--accent);
}

/* Movimiento reducido: se conserva el fundido, desaparece el desplazamiento. */
@media (prefers-reduced-motion: reduce) {
  .post-header > *,
  .posts-index > .posts-title,
  .posts-index > .section-deck { animation-name: llegadaSuave; }
  .post-figure img,
  .posts-title.section-rule::before { animation: none; }
}

/* =============================================================
   21. Tipografía y piezas de los artículos
   ============================================================= */
/* Texto que solo leen los lectores de pantalla. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* El primer párrafo hace de entrada: un punto más grande y más claro. */
.post-body > p:first-child {
  color: var(--ink);
  font-size: clamp(1.15rem, 2.1vw, 1.28rem);
  line-height: 1.65;
}

/* Jerarquía más marcada entre título de sección, subtítulo y texto. */
.post-body h2 {
  margin-top: 2.6em;
  font-size: clamp(1.45rem, 2.9vw, 1.95rem);
  letter-spacing: -0.016em;
}
.post-body h3 { font-size: 1.18rem; letter-spacing: -0.008em; }

/* La idea que resume el artículo, con la cursiva serif de la portada. */
.post-body blockquote {
  margin-block: 2em;
  padding: 0.15em 0 0.15em 1.4rem;
  border-left: 1px solid var(--accent);
  color: var(--accent-2);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.4;
}
.post-body blockquote p { margin: 0; }

/* Tabla comparativa */
.post-table { margin-top: 1.4em; overflow-x: auto; }
.post-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}
.post-table th,
.post-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.post-table thead th {
  border-bottom-color: var(--line-2);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}
.post-table tbody th { width: 24%; color: var(--ink); font-weight: 600; }
.post-table td { color: var(--ink-soft); }
.post-table tbody tr:last-child > * { border-bottom: 0; }
/* En el móvil, cada fila pasa a ser una ficha con sus dos respuestas. */
@media (max-width: 599px) {
  .post-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
  }
  .post-table table,
  .post-table tbody,
  .post-table tr,
  .post-table th,
  .post-table td { display: block; width: auto; }
  .post-table tr { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .post-table tbody tr:last-child { border-bottom: 0; }
  .post-table th,
  .post-table td { padding: 0; border: 0; }
  .post-table tbody th { margin-bottom: 0.45rem; font-size: 1rem; width: auto; }
  .post-table td + td { margin-top: 0.55rem; }
  .post-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
  }
}

/* Lista de comprobación, con una marca en lugar de viñeta. */
.post-body .post-checklist { padding-left: 0; list-style: none; }
.post-checklist li { position: relative; padding-left: 1.9rem; }
.post-checklist li::before {
  content: "";
  position: absolute; left: 0.2rem; top: 0.55em;
  width: 0.72rem; height: 0.38rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* La categoría, delante de la fecha. */
.post-category { color: var(--accent); font-weight: 500; }
