/* =============================================================
   Tu Sitio Web — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0f0f0f;
  --bg-2: #181818;
  --bg-3: #202020;
  --line: rgba(249, 249, 249, 0.12);
  --line-strong: rgba(249, 249, 249, 0.24);
  --text: #f9f9f9;
  --muted: rgba(249, 249, 249, 0.62);
  --g1: #fffd7b;
  --g2: #ffad88;
  --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 100%);
  --ink: #202020;

  --sans: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --side-space: 0px;
  --maxw: 1360px;
  --radius: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
::selection { background: var(--g1); color: var(--ink); }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--grad); color: var(--ink);
  border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =============================================================
   4. Tipografía
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--grad); }
.eyebrow-dark { color: rgba(32, 32, 32, .7); }
.eyebrow-dark .eyebrow-line { background: var(--ink); }

.section-title {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  font-weight: 700;
  max-width: 16ch;
}
.section-head { margin-bottom: clamp(2.8rem, 6vw, 5rem); }

/* =============================================================
   5. Componentes
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-grad { background: var(--grad); color: var(--ink); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255, 253, 123, .45); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--g1); color: var(--g1); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; align-content: center; gap: 2.4rem;
  padding: var(--gutter);
  background: var(--bg);
  /* Red de seguridad CSS: se oculta sola al llegar a 4.5s aunque el JS no corra */
  animation: splash-out .7s var(--ease-soft) 3.8s forwards;
}
.splash.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s var(--ease-soft), visibility 0s linear .7s;
}
/* Splash bilingüe: sin JS se ve el español */
.splash-text[lang="en"] { display: none; }
html[data-lang="en"] .splash-text[lang="es"] { display: none; }
html[data-lang="en"] .splash-text[lang="en"] { display: flex; }
.splash-text {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .28em;
  font-size: clamp(2rem, 7vw, 5.6rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  text-align: center;
}
.sw { display: inline-flex; white-space: nowrap; }
.sl {
  display: inline-block;
  background: var(--grad);
  background-size: 1200% 100%;
  background-position: calc(var(--i) * var(--step, 4.5%)) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
  transform: translateY(.55em) rotate(6deg);
  filter: blur(6px);
  animation: letter-in .8s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--i) * .045s);
}
.splash-bar {
  width: min(220px, 50vw); height: 2px; border-radius: 2px;
  background: var(--line); overflow: hidden;
}
.splash-bar span {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left; transform: scaleX(0);
  animation: bar-fill 2.2s var(--ease-soft) .2s forwards;
}

/* ---------- Marca lateral fija ---------- */
.side-mark {
  position: fixed; right: 0; top: 50%; z-index: 50;
  display: none; align-items: center; gap: .9rem;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  padding: 1rem .8rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.side-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g1);
}
.side-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--g1);
  animation: pulse 2s var(--ease-soft) infinite;
}
.side-text { white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  padding-right: calc(var(--gutter) + var(--side-space));
  transition: background-color .4s, border-color .4s, padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 15, 15, .94);
  border-bottom-color: var(--line);
  padding-top: .7rem; padding-bottom: .7rem;
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(15, 15, 15, .72); backdrop-filter: blur(14px) saturate(140%); }
}
.nav-logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em;
}
.nav-logo { white-space: nowrap; font-family: var(--sans); font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.logo-icon { width: auto; height: 1.35em; flex: none; }
.nav-links { display: none; gap: 2.2rem; font-size: .95rem; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Selector de idioma (solo con JS, porque cambia el idioma por script) */
.nav-right { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: none; align-items: center; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.js .lang-switch { display: inline-flex; }
.lang-switch button {
  min-width: 34px; height: 30px; padding: 0 .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  transition: background-color .3s, color .3s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7.5rem var(--gutter) 3rem;
  padding-right: calc(var(--gutter) + var(--side-space));
  background: var(--bg);
}
.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero-title {
  font-size: clamp(3rem, 11.2vw, 11.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.045em;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.hero-title > .grad-text,
.hero-title .line-mask { display: block; }
.hero-title .line-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.hero-title .line-mask > .grad-text { padding-bottom: .1em; margin-bottom: -.1em; }
.hero-bottom {
  display: grid; gap: 1.8rem;
  align-items: end;
}
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-seal {
  position: absolute;
  right: calc(var(--gutter) + var(--side-space));
  top: 7rem;
  width: clamp(96px, 11vw, 150px); aspect-ratio: 1;
  display: none; place-items: center;
}
.hero-seal svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 22s linear infinite;
}
.hero-seal text {
  fill: url(#sealGrad);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.seal-core {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 1.2rem; color: var(--g1);
}

/* ---------- Trabajos ---------- */
.works,
.service,
.faq {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  padding-right: calc(var(--gutter) + var(--side-space));
}
.works { border-top: 1px solid var(--line); }
.work {
  display: grid; gap: 2rem;
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work-copy { display: flex; flex-direction: column; align-items: flex-start; }
.work-num {
  font-size: .82rem; font-weight: 700; letter-spacing: .2em;
  color: var(--g2); margin-bottom: 1.2rem;
}
.work-title {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.work-desc {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}
.work-media {
  position: relative; display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #161616;
  border: 1px solid var(--line);
  isolation: isolate;
}
.work-media img {
  width: 100%;
  aspect-ratio: 1530 / 1028;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.work-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 253, 123, .0) 40%, rgba(255, 253, 123, .1) 50%, rgba(255, 173, 136, 0) 60%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position 1.2s var(--ease-out);
}
.work-media:hover img { transform: scale(1.0); }
.work-media:hover::after { background-position: -20% 0; }

/* ---------- Ventajas (recuadro destacado) ---------- */
.perks {
  padding: 0 var(--gutter);
  padding-right: calc(var(--gutter) + var(--side-space));
}
.perks-box {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--grad);
  color: var(--ink);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.4rem, 6vw, 5.5rem);
  display: grid; gap: 2.6rem;
}
.perks-box::before {
  content: ""; position: absolute; right: -12%; top: -40%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
.perks-head { position: relative; }
.perks-title {
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  font-weight: 800;
  max-width: 14ch;
  color: var(--ink);
}
.perks-list { position: relative; display: grid; }
.perks-list li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(32, 32, 32, .18);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 500;
  line-height: 1.4;
}
.perks-list li:last-child { border-bottom: 1px solid rgba(32, 32, 32, .18); }
.perk-n { font-size: .8rem; font-weight: 800; letter-spacing: .14em; opacity: .55; }

/* ---------- Servicio ---------- */
.service-grid { display: grid; gap: 1rem; }
.feature {
  position: relative;
  padding: 2rem 1.8rem 2.2rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), border-color .4s, background-color .4s;
}
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); background: var(--bg-3); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--grad); color: var(--ink);
  margin-bottom: 2.4rem;
  transition: transform .6s var(--ease-out);
}
.feature-icon svg { width: 34px; height: 34px; }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.06); }
.feature h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: 1rem; }

/* ---------- Cinta sin fin ---------- */
.ribbon-wrap {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  overflow: hidden;
}
.ribbon {
  display: block;
  width: 110vw; margin-left: -5vw;
  transform: rotate(-3deg);
  background: var(--grad);
  color: var(--ink);
  padding: 1.2rem 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.ribbon-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 30s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-item {
  flex: none;
  padding: 0 1.6rem;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase;
  white-space: nowrap;
}
.ribbon-star { flex: none; font-size: clamp(1.2rem, 2.4vw, 2rem); }

/* ---------- Contacto ---------- */
.contact {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  padding-right: calc(var(--gutter) + var(--side-space));
  display: grid; gap: 3rem;
}
.contact-lead { color: var(--muted); font-size: 1.12rem; max-width: 26rem; margin: 1.4rem 0 2.4rem; }
.contact-list { display: grid; gap: 0; }
.contact-list li {
  display: grid; gap: .3rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-value {
  font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color .3s;
}
.contact-value:hover { color: var(--g1); }

.contact-form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  align-self: start;
}
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.1rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(249, 249, 249, .32); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--g1);
  box-shadow: 0 0 0 4px rgba(255, 253, 123, .12);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff9b85; }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; }
.form-note.is-error { color: #ffb4a3; }
.form-note.is-ok { color: var(--g1); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: 2.6rem 1fr 28px; gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer; list-style: none;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--g1); }
.faq-n { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.faq-q { font-size: clamp(1.08rem, 1.9vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; transition: color .3s; }
.faq-icon {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background .4s, border-color .4s, transform .5s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--grad); border-color: transparent; color: var(--ink); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-n { color: var(--g2); }
.faq-a {
  padding: 0 0 1.8rem calc(2.6rem + 1rem);
  padding-right: calc(28px + 1rem);
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 62rem;
  overflow: hidden;
}
.faq-a p + p, .faq-a p + ol, .faq-a ol + p { margin-top: 1rem; }
.faq-steps { counter-reset: step; display: grid; gap: .6rem; }
.faq-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; }
.faq-steps li::before {
  content: counter(step) ".";
  font-weight: 700; color: var(--g1);
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
  padding-right: calc(var(--gutter) + var(--side-space));
  border-top: 1px solid var(--line);
  background: #0a0a0a;
}
.footer-top, .footer-grid, .footer-bottom { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: grid; gap: 2rem; align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-claim { font-size: clamp(2rem, 6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.footer-grid {
  display: grid; gap: 1.6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.footer-grid > div { display: grid; gap: .3rem; font-size: 1.05rem; font-weight: 500; }
.footer-grid a { transition: color .3s; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--g1); }
.footer-label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 1.6rem;
  font-size: .88rem; color: var(--muted);
}
.footer-bottom .nav-logo { color: var(--text); font-size: 14px; }

/* =============================================================
   7. Efectos
   ============================================================= */
@keyframes letter-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveals: el estado oculto solo existe si hay JS (clase .js en <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: los títulos con split-text NUNCA quedan invisibles por .reveal */
.reveal[data-split] { opacity: 1; transform: none; }
.js .reveal[data-split] { opacity: 1; transform: none; }

/* Split-text (se arma desde JS) */
.line-mask, .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .16em; margin-bottom: -.16em;
}
.line-mask > .grad-text, .wi { display: inline-block; will-change: transform; }
.line-mask > .grad-text { padding-bottom: .12em; margin-bottom: -.12em; }

/* Imagen con cortina */
.js .reveal-img {
  clip-path: inset(12% 6% 12% 6% round var(--radius));
  opacity: 0;
  transition: clip-path 1.3s var(--ease-out), opacity .9s var(--ease-out);
}
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero-bottom { grid-template-columns: 1.2fr 1fr; }
  .hero-ctas { justify-content: flex-end; }
  .footer-top { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  :root { --side-space: 44px; }
  .side-mark { display: flex; }
  .nav-links { display: flex; }
  .hero-seal { display: grid; }
  .work { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .perks-box { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .contact { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .feature { min-height: 330px; display: flex; flex-direction: column; }
  .feature-icon { margin-bottom: auto; }
  .feature h3 { margin-top: 3rem; }
}

@media (max-width: 539px) {
  .nav-logo { gap: .4rem; letter-spacing: .04em; }
  .nav .nav-cta { padding: .5rem .8rem; font-size: .78rem; min-height: 36px; }
  .nav { gap: .5rem; }
  .nav-right { gap: .45rem; }
  .lang-switch button { min-width: 28px; height: 28px; padding: 0 .4rem; font-size: .68rem; }
  .nav-cta { padding: .55rem .95rem; font-size: .82rem; min-height: 40px; }
  .nav-logo { font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .faq-item summary { grid-template-columns: 2rem 1fr 28px; gap: .7rem; }
  .faq-a { padding-left: 0; padding-right: 0; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos (bucles largos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-seal svg { animation-duration: 60s; }
}

/* Pantallas muy angostas: el CTA del hero ya está a la vista */
@media (max-width: 359px) {
  .nav .nav-cta { display: none; }
}
