/* =========================================================
   Valtor AJ
   Monocromo de marca. Esquinas rectas y cortes en diagonal
   tomados de la "V/A" del isotipo.
   ========================================================= */
:root {
  --paper: #e7e7e4;
  --paper-2: #d6d6d2;
  --ink: #111111;
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --fg: #f2f2ef;
  --muted: #9d9d99;
  --line: rgba(242, 242, 239, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --sec: 96px;
  --nav: 64px;
  --slant: 9%;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; --sec: 150px; --nav: 76px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  overflow-x: clip;
}
/* grano de película, fijo y sin eventos */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.h2 { font-size: clamp(2.3rem, 7vw, 5.4rem); font-weight: 800; font-stretch: 118%; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 44ch; }

/* corte en diagonal (motivo del isotipo) */
.slant { clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); overflow: hidden; }
.slant img { width: 100%; height: 100%; object-fit: cover; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  font: 700 .98rem/1 "Archivo", sans-serif; font-stretch: 108%; white-space: nowrap;
  border: 0; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover i { transform: translate(3px, -3px) rotate(45deg); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: #3a3a38; }
.btn--light { background: var(--fg); color: var(--ink); }
.btn--light::before { background: #c9c9c5; }
.link-line { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link-line:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ink); transition: background-color .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav[data-theme="dark"] { color: var(--fg); background: rgba(13, 13, 13, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav__in { height: var(--nav); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.nav__logo { position: relative; z-index: 2; display: block; }
.nav__logo img { height: 19px; width: auto; transition: opacity .3s; }
.nav__logo--light { position: absolute; inset: 0; opacity: 0; }
.nav[data-theme="dark"] .nav__logo--dark, .nav.is-open .nav__logo--dark { opacity: 0; }
.nav[data-theme="dark"] .nav__logo--light, .nav.is-open .nav__logo--light { opacity: 1; }
.nav__toggle { position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open { color: var(--fg); backdrop-filter: none; -webkit-backdrop-filter: none; }  /* el blur crea un contenedor y recortaría el menú fijo */
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__links {
  position: fixed; inset: 0; z-index: 1; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--nav) var(--gutter) 40px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .7s var(--ease);
}
.nav.is-open .nav__links { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.nav__links a { font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 800; font-stretch: 120%; letter-spacing: -.03em; line-height: 1.15; }
.nav__cta { display: inline-flex; align-items: center; gap: 14px; }
.nav__links .nav__lang { font-size: 1rem; font-weight: 500; font-stretch: 100%; letter-spacing: .08em; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; margin: 18px 0 6px; color: var(--muted); }
.nav__lang-short { display: none; }
@media (min-width: 900px) {
  .nav__logo img { height: 22px; }
  .nav__toggle { display: none; }
  .nav__links { position: static; flex-direction: row; align-items: center; gap: 36px; padding: 0; background: none; color: inherit; clip-path: none; transition: none; }
  .nav__links a { font-size: .95rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding: 6px 0; transition: background-size .35s var(--ease); }
  .nav__links a:hover { background-size: 100% 1px; }
  .nav__links .nav__cta { gap: 8px; font-weight: 700; padding: 12px 18px; border: 1px solid currentColor; background: none; transition: background-color .3s, color .3s; }
  .nav__links .nav__cta:hover { background: var(--ink); color: var(--paper); }
  .nav[data-theme="dark"] .nav__cta:hover { background: var(--fg); color: var(--ink); }
  .nav__links .nav__lang { margin: 0; font-size: .82rem; color: inherit; }
  .nav__lang-long { display: none; }
  .nav__lang-short { display: inline; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; color: var(--ink); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #f1f1ee 0%, var(--paper) 45%, var(--paper-2) 100%);
}
.hero__word {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start;
  padding-top: calc(var(--nav) + 9vh);
  font-size: 17.6vw; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.055em;
  color: var(--ink); user-select: none; pointer-events: none;
}
.hero__word span { display: inline-block; }
/* micrófono colgado del techo, centrado: el brazo sale por arriba y el cuerpo cruza el wordmark */
.hero__stage { position: relative; --mw: 86vw; height: max(calc(var(--nav) + 9vh + 15vw + 24px), calc(var(--mw) * .93 + 16px)); }
.hero__object {
  position: absolute; left: 50%; top: 0; width: var(--mw); transform: translateX(-50%);
  filter: drop-shadow(0 30px 34px rgba(17, 17, 17, .3));
}
/* el brazo aparece desde detrás de la barra, sin tapar el menú (máscara en la imagen para no recortar la sombra) */
.hero__object img {
  width: 100%; height: auto;
  -webkit-mask: linear-gradient(transparent calc(var(--nav) * .55), #000 calc(var(--nav) + 28px));
  mask: linear-gradient(transparent calc(var(--nav) * .55), #000 calc(var(--nav) + 28px));
}
/* contorno de las letras solo encima del micrófono */
.hero__word--line {
  color: transparent; -webkit-text-stroke: 1.2px rgba(242, 242, 239, .6);
  -webkit-mask: url("../img/microfono.webp") 50% 0 / var(--mw) auto no-repeat;
  mask: url("../img/microfono.webp") 50% 0 / var(--mw) auto no-repeat;
}
.hero__copy { position: relative; z-index: 3; padding: 28px var(--gutter) 64px; }
.hero__kicker { font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #55554f; }
.hero__title { font-size: clamp(2.1rem, 8.6vw, 3.1rem); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -.035em; margin-top: 14px; max-width: 13ch; }
.hl { display: inline-block; background: var(--ink); color: var(--paper); padding: 0 .14em .06em; margin-top: .08em; clip-path: polygon(.18em 0, 100% 0, calc(100% - .18em) 100%, 0 100%); padding-inline: .3em; }
.hero__sub { margin-top: 18px; color: #45453f; max-width: 34ch; font-size: 1.05rem; }
.hero__ctas { display: flex; align-items: center; gap: 28px; margin-top: 28px; }

@media (min-width: 900px) {
  .hero__word { align-items: flex-start; padding-top: calc(var(--nav) + 5vh); font-size: 17.6vw; }
  .hero__stage { position: absolute; inset: 0; height: auto; --mw: clamp(30vw, (100svh - var(--nav)) * .72, 40vw); }
  /* el texto va en flujo debajo del wordmark: nunca se cruza, y el hero crece si la pantalla es baja */
  .hero__copy { width: calc(min(30vw, 400px) + var(--gutter)); padding: calc(var(--nav) + 5vh + 14.6vw + 4vh) 0 calc(3vw + 56px) var(--gutter); }
  .hero__title { font-size: clamp(2rem, 2.9vw, 2.9rem); }
}

/* ---------- ZONA OSCURA (entra en diagonal) ---------- */
.dark {
  position: relative; z-index: 5; background: var(--bg);
  margin-top: -12vw; padding-top: 12vw;
  clip-path: polygon(0 12vw, 100% 0, 100% 100%, 0 100%);
}
@media (min-width: 900px) { .dark { margin-top: -9vw; padding-top: 9vw; clip-path: polygon(0 9vw, 100% 0, 100% 100%, 0 100%); } }

/* ---------- BENTO: todo el negocio en una grilla ---------- */
.bento { padding: calc(var(--sec) * .45) 0 calc(var(--sec) * .7); }
.bento__grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.cell {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + 16px);
}
.cell__kicker { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cell__title { font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.cell__title--lg { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.cell__p { color: var(--muted); font-size: .98rem; max-width: 48ch; }
.cell__head { display: grid; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* intro con palabra que rota */
.cell--intro { justify-content: space-between; gap: 28px; min-height: 300px; }
.intro__title { font-size: clamp(1.9rem, 3.8vw, 3.6rem); font-weight: 800; font-stretch: 115%; line-height: 1.06; letter-spacing: -.035em; max-width: 19ch; }
.roll { display: block; margin-top: .1em; height: 1.12em; overflow: hidden; transition: width .7s var(--ease); clip-path: polygon(.18em 0, 100% 0, calc(100% - .18em) 100%, 0 100%); background: var(--fg); color: var(--ink); }
.roll__track { display: flex; flex-direction: column; align-items: flex-start; transition: transform .7s var(--ease); }
.roll__track span { display: block; height: 1.12em; line-height: 1.12em; padding: 0 .3em; white-space: nowrap; }

/* estudio: REC, timecode y onda */
.cell--rec { background: var(--fg); color: var(--ink); justify-content: space-between; }
.cell--rec .cell__p { color: #55554f; }
.rec__top { display: flex; align-items: center; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; font-weight: 500; letter-spacing: .08em; }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: blink 1.1s steps(2, jump-none) infinite; }
.rec__tc { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .15; } }
.wave { display: flex; align-items: center; gap: 3px; height: 110px; margin: 10px 0 4px; }
.wave i { flex: 1; height: var(--h); background: currentColor; animation: wave var(--d) ease-in-out var(--dl) infinite alternate; animation-play-state: paused; transform: scaleY(.35); }
.is-live .wave i { animation-play-state: running; }
@keyframes wave { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

/* medios propios: foto a sangre */
.cell--media { padding: 0; min-height: 480px; justify-content: flex-end; }
.media__img { position: absolute; inset: 0; }
.media__img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; animation-play-state: paused; }
.is-live .media__img img { animation-play-state: running; }
.media__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 13, 0) 30%, rgba(13, 13, 13, .92) 85%); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }
.media__body { position: relative; z-index: 1; padding: 24px; display: grid; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags li { font-size: .8rem; font-weight: 600; padding: 6px 10px; border: 1px solid rgba(242, 242, 239, .28); background: rgba(13, 13, 13, .4); }

/* cómo ganamos: barra que recorre las filas */
.rev { border-top: 1px solid var(--line); }
.rev__row { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); transition: color .5s var(--ease); }
.rev__row::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.rev__row.is-active { color: var(--ink); }
.rev__row.is-active::before { transform: scaleX(1); transform-origin: left; }
.rev__row > * { position: relative; }
.rev__n { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted); padding-top: .2em; grid-row: span 2; }
.rev__name { font-weight: 700; font-stretch: 110%; font-size: 1.05rem; }
.rev__desc { color: var(--muted); font-size: .92rem; transition: color .5s; }
.rev__row.is-active .rev__n, .rev__row.is-active .rev__desc { color: #45453f; }

/* servicios: lista que avanza sola + imagen con barrido */
.serv { display: grid; gap: 18px; }
.serv__list { display: grid; }
.serv__item { position: relative; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); cursor: default; }
.serv__item::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--fg); transform: scale(0); transition: transform .5s var(--ease); }
.serv__name { display: block; font-weight: 600; font-size: 1.05rem; color: var(--muted); transition: color .4s; }
.serv__desc { display: block; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: .9rem; transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.serv__item.is-active::before { transform: scale(1) rotate(45deg); }
.serv__item.is-active .serv__name { color: var(--fg); }
.serv__item.is-active .serv__desc { max-height: 5em; opacity: 1; margin-top: 4px; }
.serv__img { --slant: 8%; position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.serv__img img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
.serv__img img.was-active { clip-path: inset(0); z-index: 1; transition: none; }
.serv__img img.is-active { clip-path: inset(0); z-index: 2; }

/* método: ciclo con punto que orbita */
.cell--proc { align-items: center; text-align: center; }
.loop { position: relative; width: 220px; height: 220px; margin: 18px auto 6px; flex: none; }
.loop__svg { position: absolute; inset: 0; overflow: visible; }
.loop__base, .loop__prog { fill: none; }
.loop__base { stroke: var(--line); stroke-width: 1; }
.loop__prog { stroke: var(--fg); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 110px 110px; animation: draw 8s linear infinite; }
.loop__dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; background: var(--fg); offset-path: path("M110,20 A90,90 0 1,1 109.99,20"); offset-anchor: 50% 50%; offset-rotate: 0deg; animation: orbit 8s linear infinite; box-shadow: 0 0 0 6px rgba(242, 242, 239, .12); }
.loop__mark { position: absolute; left: 50%; top: 50%; width: 54px; transform: translate(-50%, -50%); opacity: .9; }
.loop__step { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; background: var(--surface); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; animation: lit 8s linear infinite both; }
.loop__step--0 { left: 110px; top: 20px; }
.loop__step--1 { left: 200px; top: 110px; animation-delay: 2s; }
.loop__step--2 { left: 110px; top: 200px; animation-delay: 4s; }
.loop__step--3 { left: 20px; top: 110px; animation-delay: 6s; }
.loop__prog, .loop__dot, .loop__step { animation-play-state: paused; }
.is-live .loop__prog, .is-live .loop__dot, .is-live .loop__step { animation-play-state: running; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes lit { 0%, 24%, 100% { color: var(--muted); background: var(--surface); } 2%, 21% { color: var(--ink); background: var(--fg); } }

/* cinta de fuentes de ingreso */
.cell--tape { flex-direction: row; gap: 0; padding: 16px 0; background: var(--fg); color: var(--ink); }
.cell--tape ul { display: flex; flex: none; animation: tape 32s linear infinite; animation-play-state: paused; }
.cell--tape.is-live ul { animation-play-state: running; }
.cell--tape li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; }
.cell--tape li::after { content: ""; width: .5em; height: .5em; margin: 0 .6em; background: var(--ink); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.cell--tape li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
@keyframes tape { to { transform: translateX(-100%); } }

/* lo que no hacemos */
.cell--no { background: var(--paper); color: var(--ink); }
.cell--no ul { display: grid; gap: 12px; margin-top: 6px; }
.cell--no li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 500; line-height: 1.45; }
.cell--no i { font-size: 1.1rem; padding-top: .15em; }

/* llamado a la acción */
.cell--cta { justify-content: space-between; min-height: 200px; isolation: isolate; transition: color .45s var(--ease); }
.cell--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.cell--cta:hover { color: var(--ink); }
.cell--cta:hover::before { transform: scaleY(1); }
.cell--cta:hover .cell__kicker { color: #55554f; }
.cta__big { font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.05em; line-height: .9; }
.cta__arrow { position: absolute; top: 20px; right: 20px; font-size: 2.2rem; transition: transform .5s var(--ease); }
.cell--cta:hover .cta__arrow { transform: rotate(45deg); }

@media (min-width: 640px) {
  .bento__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "intro intro" "rec media" "rev rev" "serv serv" "proc cta" "tape tape" "no no"; }
  .cell--intro { grid-area: intro; } .cell--rec { grid-area: rec; } .cell--media { grid-area: media; } .cell--rev { grid-area: rev; }
  .cell--serv { grid-area: serv; } .cell--proc { grid-area: proc; } .cell--tape { grid-area: tape; } .cell--no { grid-area: no; } .cell--cta { grid-area: cta; }
  .serv { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .serv__img { aspect-ratio: 4 / 5; }
  .cell--no ul { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 1000px) {
  .cell { padding: 28px; }
  .bento__grid { grid-template-columns: repeat(4, 1fr); grid-template-areas: "intro intro intro rec" "media rev rev rev" "media serv serv proc" "tape tape tape tape" "no no no cta"; }
  .cell--media { min-height: 0; }
  .rev__row { grid-template-columns: 44px minmax(180px, .8fr) 1.3fr; align-items: baseline; gap: 18px; padding: 15px 16px; }
  .rev__n { grid-row: auto; }
  .cell--rev { display: grid; grid-template-columns: .8fr 2fr; gap: 28px; align-items: start; }
  .cell--no { display: grid; grid-template-columns: .55fr 1.45fr; gap: 28px; align-items: start; }
  .cell--no ul { margin-top: 0; }
}

/* ---------- CONTACTO ---------- */
.contacto { padding: var(--sec) 0 calc(var(--sec) * .8); border-top: 1px solid var(--line); }
.contacto__big { display: flex; align-items: center; gap: .18em; font-size: clamp(3rem, 12.4vw, 15rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.055em; line-height: .9; margin-left: -.04em; }
.contacto__mark { width: .62em; height: auto; flex: none; }
.contacto__grid { display: grid; gap: 48px; margin-top: 56px; }
.canales { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.canal { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; width: fit-content; }
.canal i { font-size: 1.5rem; }
.canal:hover { text-decoration: underline; text-underline-offset: 5px; }
.reply { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 14px; border: 1px solid var(--line); font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.reply__pulse { position: relative; width: 8px; height: 8px; background: var(--fg); }
.reply__pulse::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--fg); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }

/* tarjeta del formulario */
.form-card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 22px 18px 26px; }
.form-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-card__pct { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-card__pct b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.form-card__bar { height: 2px; margin: 14px 0 26px; background: var(--line); overflow: hidden; }
.form-card__bar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width .7s var(--ease); }

.form { display: grid; gap: 30px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.group__title { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 14px; font-weight: 700; font-stretch: 110%; font-size: 1.1rem; }
.group__title span { font-family: "IBM Plex Mono", monospace; font-size: .74rem; font-weight: 500; color: var(--muted); }
.group__grid { display: grid; gap: 12px; }

/* campos con etiqueta flotante */
.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.field input, .field textarea {
  width: 100%; padding: 26px 44px 10px 16px; font: 400 1.05rem/1.4 "Archivo", sans-serif; color: var(--fg);
  background: rgba(242, 242, 239, .03); border: 1px solid rgba(242, 242, 239, .2); border-radius: 0;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: rgba(242, 242, 239, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); background: rgba(242, 242, 239, .06); box-shadow: inset 0 -2px 0 var(--fg); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field label span { font-size: .85em; opacity: .75; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.74); color: var(--fg); }
.field__ok { position: absolute; right: 16px; top: 20px; font-size: 1.1rem; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field__count { align-self: flex-end; margin-top: 6px; font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--muted); }
.field__count b { font-weight: 500; color: var(--fg); }
.field__err { display: none; margin-top: 6px; color: #ff9a8f; font-size: .86rem; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff9a8f; box-shadow: inset 0 -2px 0 #ff9a8f; }

/* chips con ícono */
.chips-block__label { font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.chips-block__label span { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid rgba(242, 242, 239, .22); font-weight: 500; font-size: .94rem; transition: background-color .25s, color .25s, border-color .25s, transform .2s; }
.chip span i { font-size: 1.1rem; }
.chips--sm .chip span { padding: 9px 13px; font-size: .88rem; font-family: "IBM Plex Mono", monospace; letter-spacing: .02em; }
.chip:hover span { border-color: var(--fg); }
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }

.form__msg { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid; font-weight: 500; }
.form__msg[hidden] { display: none; }
.form__msg--ok { border-color: var(--fg); }
.form__msg--error { border-color: #ff9a8f; color: #ff9a8f; }
.form__foot { display: grid; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 22px; }
.form__consent { color: var(--muted); font-size: .86rem; }
.form__consent a, .legal a, .datos a { text-decoration: underline; text-underline-offset: 3px; }
.form__btn { width: 100%; justify-content: center; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.form.is-sending .form__btn { pointer-events: none; }
.form.is-sending .form__btn i { display: none; }
.form.is-sending .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* estado enviado */
.form-done { display: grid; justify-items: start; gap: 14px; padding: 30px 0 10px; }
.form-done[hidden] { display: none; }
.form-done__check { width: 64px; height: 64px; fill: none; stroke: var(--fg); stroke-width: 2.5; }
.form-done__check rect, .form-done__check path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.form-done.is-in .form-done__check rect { animation: dash .9s var(--ease) forwards; }
.form-done.is-in .form-done__check path { animation: dash .6s var(--ease) .55s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form-done__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; font-stretch: 122%; letter-spacing: -.04em; line-height: 1; }
.form-done__again { margin-top: 8px; background-color: transparent; border: 0; color: inherit; font: 600 1rem "Archivo", sans-serif; cursor: pointer; }
.datos { display: grid; gap: 18px; margin: 36px 0 0; }
.datos div { display: grid; gap: 2px; }
.datos dt { font-family: "IBM Plex Mono", monospace; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.datos dd { margin: 0; font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere; }
/* dato legal sin completar en config.php: visible a propósito para no publicar así */
.pending { display: inline; background: #ffd84d; color: #111; padding: 0 .3em; font-family: "IBM Plex Mono", monospace; font-size: .86em; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 640px) {
  .form-card { padding: 30px 32px 34px; }
  .group__grid { grid-template-columns: 1fr 1fr; }
  .form__foot { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .form__btn { width: auto; }
}
@media (min-width: 1000px) {
  .contacto__grid { grid-template-columns: .75fr 1.25fr; gap: 6vw; margin-top: 80px; align-items: start; }
  .contacto__info { position: sticky; top: calc(var(--nav) + 32px); }
  .form-card { padding: 36px 40px 40px; }
}

/* ---------- FOOTER ---------- */
.foot { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 48px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.foot__nav a:hover, .foot__up:hover { color: var(--fg); }
.foot__social { display: flex; gap: 8px; }
.foot__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.25rem; transition: background-color .25s, color .25s; }
.foot__social a:hover { background: var(--fg); color: var(--ink); }
.foot__up { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.foot__logo { width: 100%; height: auto; }
.foot__company { display: grid; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot__company address { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.foot__company a:hover, .foot__legal a:hover { color: var(--fg); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .foot__company { grid-template-columns: 1fr 1fr 1.3fr; gap: 32px; align-items: start; } .foot__company address { gap: 2px; } .foot__legal { justify-content: flex-end; } }
.foot__bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; color: var(--muted); font-size: .88rem; }
.foot__credit { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot__credit:hover { text-decoration-thickness: 2px; }
@media (min-width: 768px) { .foot__bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- PÁGINAS LEGALES ---------- */
.legal { padding: calc(var(--nav) + 56px) 0 var(--sec); }
.legal__head { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal__back:hover { color: var(--fg); }
.legal__title { font-size: clamp(2.3rem, 7vw, 5rem); font-weight: 800; font-stretch: 118%; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.legal__meta { margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__note { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); font-size: .92rem; max-width: 70ch; }
.legal__body { max-width: 72ch; margin-top: 40px; color: #cfcfcb; font-size: 1.02rem; }
.legal__body h2 { color: var(--fg); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.2; margin: 44px 0 12px; }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 14px; }
.legal__body ul { list-style: none; display: grid; gap: 8px; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: currentColor; }
.legal__body strong { color: var(--fg); }
@media (min-width: 900px) { .legal__wrap { display: grid; grid-template-columns: 1fr 2.2fr; gap: 6vw; } .legal__head { border: 0; position: sticky; top: calc(var(--nav) + 40px); align-self: start; } .legal__body { margin-top: 0; } .legal__body > h2:first-child { margin-top: 0; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i, .media__img img, .cell--tape ul, .rec__dot, .loop__prog, .loop__dot, .loop__step { animation: none !important; }
  .loop__prog { stroke-dashoffset: 0; }
  .loop__dot { display: none; }
  .loop__step { color: var(--fg); }
  .reply__pulse::after, .spinner { animation: none; }
  .form-done__check rect, .form-done__check path { stroke-dashoffset: 0; animation: none !important; }
}
