/* ═══════════════════════════════════════════════════════════
   LYM Studio — sistema visual compartido
   Tokens, nav, cursor, transiciones, footer, formularios,
   opiniones y estados iniciales de animación.
   Los estilos propios de cada página viven en su <style>.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --surface: #141313;
  --surface-dim: #141313;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-bright: #3a3939;
  --on-surface: #e5e2e1;
  --on-surface-variant: #c4c7c8;
  --outline: #8e9192;
  --outline-variant: #444748;
  --primary: #ffffff;
  --on-primary: #2f3131;
  --secondary: #c7c6c6;
  --background: #141313;

  /* Papel: el blanco del logo, para las secciones claras */
  --paper: #f3f3f3;
  --ink: #141313;
  --ink-variant: #5f6263;
  --ink-line: rgba(20, 19, 19, 0.14);

  --pad: clamp(20px, 3.4vw, 48px);
  --nav-h: 65px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html:not(.lenis) { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--background);
  color: var(--on-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: var(--ink); }
:focus-visible { outline: 1px solid var(--primary); outline-offset: 3px; }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10002;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--primary); color: var(--ink); padding: 10px 16px; border-radius: 2px;
  text-decoration: none; transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ── TIPOGRAFÍA BASE ── */
.label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--outline);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-surface); text-decoration: none; position: relative; padding-bottom: 6px;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0.28); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 12px; height: 12px; transition: transform 0.5s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* Texto que rueda al hacer hover */
.roll { display: block; overflow: hidden; }
.roll > span {
  display: block; position: relative;
  transition: transform 0.6s var(--ease-out);
}
.roll > span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* Barra de sección: "(01) Servicios ——— Ver todos" */
.section-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--outline-variant);
}
.section-bar .label { color: var(--outline); }

/* ── CURSOR ── */
.cursor, .cursor-ring { display: none; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button,
html.has-cursor [role="button"], html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }

html.has-cursor .cursor, html.has-cursor .cursor-ring {
  display: flex; position: fixed; top: 0; left: 0; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cursor {
  width: 8px; height: 8px; background: var(--primary);
  z-index: 10001; mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.3s, height 0.3s;
}
.cursor-ring {
  width: 32px; height: 32px; z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  mix-blend-mode: difference;
  align-items: center; justify-content: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out),
              background-color 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; opacity: 0; transform: scale(0.6);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: rgba(255, 255, 255, 0.7); }
.cursor-ring.is-label {
  width: 96px; height: 96px; background: var(--primary); border-color: var(--primary);
  mix-blend-mode: normal;
}
.cursor-ring.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-hidden, .cursor-ring.is-out, .cursor.is-out { opacity: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 40px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(20, 19, 19, 0);
  background: rgba(255, 255, 255, 0);
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(20, 19, 19, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo { display: block; text-decoration: none; position: relative; z-index: 2; }
.nav-logo-img { height: 22px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter 0.4s ease; }
nav.scrolled .nav-logo-img { filter: brightness(0); }

.nav-links { display: flex; gap: 40px; list-style: none; margin-left: auto; }
.nav-links a {
  display: block; position: relative; padding: 6px 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-surface); text-decoration: none; transition: color 0.4s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { transform: scaleX(1); }
nav.scrolled .nav-links a { color: #6b6b6b; }
nav.scrolled .nav-links a.active, nav.scrolled .nav-links a:hover { color: #141313; }
.nav-num, .nav-mobile-only { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 9999px;
  padding: 9px 16px 9px 18px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.nav-cta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.5s var(--ease-out); }
.nav-cta:hover { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.nav-cta:hover .nav-cta-dot { transform: scale(1.6); }
nav.scrolled .nav-cta { color: #141313; border-color: rgba(20, 19, 19, 0.4); }
nav.scrolled .nav-cta:hover { background: #141313; color: #ffffff; border-color: #141313; }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  background: none; border: none; padding: 0;
  width: 26px; height: 18px; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px; background: #ffffff;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease, background 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
nav.scrolled .nav-toggle span { background: #141313; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── PRELOADER + CORTINA ── */
.preloader { display: none; }
.is-preloading .preloader {
  display: flex; position: fixed; inset: 0; z-index: 9500;
  background: var(--surface); color: var(--on-surface);
  flex-direction: column; align-items: center; justify-content: center;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader-iso { height: 104px; width: auto; filter: brightness(0) invert(1); }
.preloader-bottom {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.preloader-count {
  font-size: clamp(48px, 8vw, 120px); font-weight: 800; letter-spacing: -0.05em;
  line-height: 0.8; color: var(--primary); font-variant-numeric: tabular-nums;
}
.preloader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--outline-variant); }
.preloader-bar span { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }

.curtain {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--surface-container-low);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.curtain img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.is-entering .curtain { visibility: visible; }

/* ── ESTADOS INICIALES DE ANIMACIÓN (solo con JS) ── */
html.js [data-reveal],
html.js [data-intro]:not([data-intro="split"]):not([data-intro="img"]):not([data-intro="mask"]) { opacity: 0; }
html.js [data-split], html.js [data-intro="split"] { visibility: hidden; }
html.js [data-intro="mask"], html.js [data-reveal-img] { clip-path: inset(100% 0 0 0); }
html.js [data-line] { transform: scaleX(0); transform-origin: left; }
.split-line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ── BOTONES ── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; border-radius: 9999px; cursor: pointer;
  color: var(--ink); background: var(--primary); border: 1px solid var(--primary);
  transition: color 0.5s var(--ease-out), border-color 0.5s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--surface); transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover { color: var(--primary); }
.btn:hover::before { transform: none; }
.btn svg { width: 12px; height: 12px; }

.btn-ghost { color: var(--primary); background: transparent; border-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px); }
.btn-ghost::before { background: var(--primary); }
.btn-ghost:hover { color: var(--ink); border-color: var(--primary); }

.btn-ink { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.btn-ink::before { background: var(--paper); }
.btn-ink:hover { color: var(--ink); }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer;
  transition: background 0.35s, color 0.35s, opacity 0.35s;
}
.icon-btn svg { width: 16px; height: 16px; }

/* ── FORMULARIOS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.modal-field-full { grid-column: 1 / -1; }
.modal-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--outline); }
.modal-input, .modal-textarea, .modal-select {
  background: transparent; border: none; border-bottom: 1px solid var(--outline-variant);
  border-radius: 0; padding: 10px 0 12px;
  color: var(--primary); font-family: 'Sora', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.modal-input::placeholder, .modal-textarea::placeholder { color: var(--outline-variant); }
.modal-field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out); pointer-events: none;
}
.modal-field:focus-within::after { transform: scaleX(1); }
.modal-field.check-field::after { display: none; }
.modal-textarea { resize: vertical; min-height: 72px; }
.modal-submit { grid-column: 1 / -1; width: 100%; padding: 18px; border-radius: 2px; margin-top: 4px; }
.modal-submit .btn-sending { display: none; }
.is-sending .modal-submit { pointer-events: none; opacity: 0.7; }
.is-sending .modal-submit .btn-idle { display: none; }
.is-sending .modal-submit .btn-sending { display: inline; }
.form-error { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: #ffb4ab; }
.form-error a { color: inherit; }
.form-success { padding: 8px 0; }
.form-success-title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--primary); }
.form-success-text { font-size: 14px; line-height: 1.7; color: var(--on-surface-variant); margin-top: 8px; }

.check-field { flex-direction: row; align-items: flex-start; gap: 12px; }
.check-field input { margin-top: 3px; accent-color: var(--ink); width: 14px; height: 14px; flex: none; }
.check-field span { font-size: 12px; line-height: 1.6; }

/* ── FOOTER ── */
footer {
  position: relative; overflow: hidden;
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  padding: clamp(64px, 9vw, 120px) var(--pad) clamp(20px, 2.4vw, 32px);
}
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px; margin-bottom: clamp(56px, 6vw, 88px);
}
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.footer-title {
  font-size: clamp(34px, 4.8vw, 72px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; color: var(--primary);
  margin-top: 20px; max-width: 11ch;
}
.footer-mail {
  display: inline-block; margin-top: 28px;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.01em;
  color: var(--on-surface); text-decoration: none; position: relative; padding-bottom: 4px;
}
.footer-mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.footer-mail:hover::after { transform: scaleX(0); transform-origin: right; }
.footer-info { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; justify-content: start; }
.footer-info-group { display: flex; flex-direction: column; gap: 8px; }
.footer-info-group .label { margin-bottom: 4px; }
.footer-info-value { font-size: 13px; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.footer-social-link {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-surface-variant); text-decoration: none; transition: color 0.2s;
}
.footer-social-link:hover { color: var(--primary); }

.footer-connect { width: 100%; }
.footer-connect-label { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 28px; }
#contact-form { scroll-margin-top: 120px; }
#opiniones { scroll-margin-top: 90px; }

.footer-wordmark { width: 100%; overflow: hidden; margin-top: clamp(32px, 4vw, 56px); }
.footer-wordmark img { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: 0.94; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
}
.footer-copy { font-size: 11px; letter-spacing: 0.06em; color: var(--outline); text-transform: uppercase; }
.footer-top-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; font-family: inherit;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--outline); cursor: pointer; transition: color 0.2s;
}
.footer-top-btn svg { width: 12px; height: 12px; transition: transform 0.5s var(--ease-out); }
.footer-top-btn:hover { color: var(--primary); }
.footer-top-btn:hover svg { transform: translateY(-3px); }

/* ── OPINIONES (sección clara) ── */
.reviews { background: var(--paper); color: var(--ink); position: relative; }
.reviews ::selection { background: var(--ink); color: var(--paper); }
.reviews :focus-visible { outline-color: var(--ink); }
.reviews .section-bar { border-color: var(--ink-line); }
.reviews .label { color: var(--ink-variant); }
.reviews .link-arrow { color: var(--ink); }

.reviews-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: end; gap: 40px;
  padding: clamp(64px, 8vw, 112px) var(--pad) clamp(40px, 5vw, 64px);
}
.reviews-title {
  font-size: clamp(48px, 8.4vw, 136px); font-weight: 800;
  letter-spacing: -0.055em; line-height: 0.92; color: var(--ink);
}
.reviews-intro { font-size: 14px; line-height: 1.75; color: var(--ink-variant); }
.reviews-aside { display: grid; gap: 28px; }
.reviews-stat { display: flex; align-items: flex-end; gap: 16px; color: var(--ink); }
.reviews-stat-num {
  font-size: clamp(64px, 7.4vw, 120px); font-weight: 800; letter-spacing: -0.055em;
  line-height: 0.8; font-variant-numeric: tabular-nums;
}
.reviews-stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.5;
  text-transform: uppercase; color: var(--ink-variant); padding-bottom: 2px;
}

.reviews-stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
}
.reviews-media {
  position: relative; display: block; overflow: hidden;
  min-height: min(76vh, 720px); background: #d9d8d6;
  border-right: 1px solid var(--ink-line); text-decoration: none;
}
.reviews-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  clip-path: inset(0 0 0 100%); transform: scale(1.12);
  transition: clip-path 1.1s var(--ease-inout), transform 1.6s var(--ease-out);
}
.reviews-img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.reviews-img.is-leaving { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 0; }
.reviews-media-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: rgba(243, 243, 243, 0.92);
  padding: 10px 14px; border-radius: 9999px; backdrop-filter: blur(6px);
}
.reviews-media-tag svg { width: 11px; height: 11px; }

.reviews-content {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: clamp(40px, 5vw, 72px) var(--pad) 36px clamp(28px, 5vw, 80px);
}
.reviews-mark {
  font-size: clamp(96px, 10vw, 150px); font-weight: 800; line-height: 0.62;
  height: 0.5em; color: var(--ink); letter-spacing: -0.05em;
}
.reviews-quotes { display: grid; margin-top: 28px; }
.reviews-quote {
  grid-area: 1 / 1; visibility: hidden;
  font-size: clamp(20px, 2.15vw, 32px); font-weight: 400;
  line-height: 1.36; letter-spacing: -0.02em; color: var(--ink);
}
.reviews-quote.is-active { visibility: visible; }
.reviews-quote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reviews-quote .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i) * 14ms); }
.reviews-quote.is-active .w > span { transform: none; }
.reviews-quote.is-leaving { visibility: visible; }
.reviews-quote.is-leaving .w > span { transform: translateY(-110%); transition-duration: 0.5s; transition-timing-function: var(--ease-inout); transition-delay: calc(var(--i) * 6ms); }

.reviews-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reviews-author { display: grid; }
.reviews-author-item { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.reviews-author-item.is-active { opacity: 1; transform: none; transition-delay: 0.25s; }
.reviews-author-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.reviews-author-role { font-size: 12px; color: var(--ink-variant); margin-top: 4px; }
.reviews-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.reviews-pill {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-variant); border: 1px solid var(--ink-line); padding: 5px 10px; border-radius: 9999px;
}

.reviews-controls { display: flex; align-items: center; gap: 18px; }
.reviews-controls .icon-btn { color: var(--ink); border-color: var(--ink-line); }
.reviews-controls .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.reviews-progress { width: 88px; height: 1px; background: var(--ink-line); position: relative; overflow: hidden; }
.reviews-progress span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

.reviews-clients { overflow: hidden; padding: 36px 0 40px; border-bottom: 1px solid var(--ink-line); }
.reviews-clients-label { padding: 0 var(--pad); margin-bottom: 22px; display: block; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  font-size: clamp(28px, 3.6vw, 54px); font-weight: 700; letter-spacing: -0.04em;
  color: var(--ink); white-space: nowrap; padding: 0 0.5em;
  display: inline-flex; align-items: center; gap: 1em;
}
.marquee-item::after { content: ''; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--ink); opacity: 0.35; }
@keyframes marquee { to { transform: translateX(-50%); } }

.reviews-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px var(--pad) clamp(56px, 6vw, 80px);
}
.reviews-cta-text { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.reviews-cta-text span { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-variant); margin-top: 6px; }

/* Opinión individual (página de proyecto) */
.review-single {
  background: var(--paper); color: var(--ink);
  padding: clamp(72px, 10vw, 140px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px;
}
.review-single .label { color: var(--ink-variant); }
.review-single-quote {
  font-size: clamp(24px, 3.1vw, 46px); font-weight: 400; line-height: 1.24;
  letter-spacing: -0.03em; color: var(--ink); max-width: 24ch;
}
.review-single-mark { font-size: clamp(72px, 7vw, 112px); font-weight: 800; line-height: 0.62; height: 0.45em; color: var(--ink); margin-bottom: 20px; }
.review-single-author { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.review-single-author::before { content: ''; width: 32px; height: 1px; background: var(--ink); }
.review-single-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.review-single-role { font-size: 12px; color: var(--ink-variant); margin-top: 2px; }
.review-single-link { margin-top: 32px; }
.review-single .link-arrow { color: var(--ink); }

/* Diálogo "Dejanos tu opinión" */
.review-dialog {
  margin: auto; border: none; padding: 0;
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--surface-container-low); color: var(--on-surface);
  border-radius: 4px; overflow: auto;
}
.review-dialog::backdrop { background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(6px); }
.review-dialog[open] { animation: dialogIn 0.6s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px); } }
.review-dialog-inner { padding: clamp(28px, 4vw, 48px); }
.review-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.review-dialog-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--primary); margin-top: 12px; }
.review-dialog-close { width: 40px; height: 40px; flex: none; color: var(--on-surface); border-color: var(--outline-variant); }
.review-dialog-close:hover { background: var(--primary); color: var(--ink); }
.modal-select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.modal-select option { background: var(--surface-container-low); color: var(--on-surface); }
.review-dialog .check-field input { accent-color: var(--primary); }
.review-dialog .check-field span { color: var(--on-surface-variant); }

/* ══════════ MOBILE ══════════ */
@media (max-width: 860px) {
  :root { --nav-h: 58px; }

  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1;
    margin: 0; padding: calc(var(--nav-h) + 40px) 24px 32px;
    background: var(--surface);
    flex-direction: column; justify-content: flex-start; gap: 0;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.8s var(--ease-inout), visibility 0s linear 0.8s;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-inout); }
  .nav-links li { border-bottom: 1px solid var(--outline-variant); overflow: hidden; }
  .nav-links a, nav.scrolled .nav-links a {
    display: flex; align-items: baseline; gap: 16px; padding: 20px 0;
    font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -0.04em; text-transform: none;
    color: var(--on-surface) !important;
    transform: translateY(100%); transition: transform 0.8s var(--ease-out);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--primary) !important; }
  .nav-links.open a { transform: none; transition-delay: calc(0.25s + var(--i, 0) * 0.07s); }
  .nav-num { display: inline; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--outline); }
  .nav-links li.nav-mobile-only { display: flex; flex-direction: column; gap: 14px; border: none; margin-top: auto; padding-top: 32px; overflow: visible; }
  .nav-mobile-only a, nav.scrolled .nav-mobile-only a {
    transform: none; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--on-surface-variant) !important;
  }
  .nav-mobile-only .nav-mobile-mail { font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--primary) !important; }
  .nav-mobile-social { display: flex; gap: 20px; }

  body.menu-open nav { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .nav-logo-img { filter: brightness(0) invert(1); }
  body.menu-open .nav-toggle span { background: #ffffff; }

  .section-bar { padding: 14px 24px; }

  footer { padding: 64px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 56px; }
  .footer-info { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .reviews-head { grid-template-columns: 1fr; gap: 20px; }
  .reviews-stage { grid-template-columns: 1fr; }
  .reviews-media { min-height: 0; aspect-ratio: 4 / 3; border-right: none; border-bottom: 1px solid var(--ink-line); }
  .reviews-content { padding: 36px 24px 28px; gap: 36px; }
  .reviews-mark { font-size: 88px; }
  .reviews-meta { flex-direction: column; align-items: flex-start; }
  .reviews-controls { width: 100%; justify-content: space-between; }
  .reviews-progress { width: 56px; }
  .reviews-cta { padding: 28px 24px 48px; }

  .review-single { grid-template-columns: 1fr; padding: 64px 24px; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee { animation: none; }
}
