/* ==========================================================================
   Estudio LB-IA — styles.css
   Paleta tomada del logotipo: azul tinta → salvia → naranja sobre crema.
   ========================================================================== */

/* ---------- 0. Fuentes (alojadas en la propia web: sin llamadas a Google) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #FBF6EC;
  --cream-2: #F3EADA;
  --paper: #FFFDF8;
  --ink: #0F2B40;
  --ink-2: #1F3A52;
  --ink-deep: #0A1E2E;
  --muted: #5A6A77;
  --orange: #E8963F;
  --amber: #C9853F;
  --sage: #7F998C;
  --slate: #4B6277;
  --line: rgba(15, 43, 64, .12);
  --brand-grad: linear-gradient(115deg, #1F3A52 0%, #5E8079 42%, #D9A560 72%, #E8963F 100%);
  --warm-grad: linear-gradient(120deg, #E8963F, #C9853F 55%, #9AA27F);

  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --shadow: 0 1px 2px rgba(15,43,64,.04), 0 12px 32px -12px rgba(15,43,64,.18);
  --shadow-lg: 0 2px 4px rgba(15,43,64,.05), 0 30px 60px -20px rgba(15,43,64,.28);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 3. Utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow--light { color: #CFE0DA; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 56ch; }
.arrow { display: inline-block; transition: transform .4s var(--ease-out); }

.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-display); letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background .3s;
  will-change: transform; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--brand { --bg: var(--ink); background: linear-gradient(115deg, var(--ink-2), #3F6570 45%, var(--orange)); background-size: 200% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(232,150,63,.55); }
.btn--brand:hover { background-position: 100% 0; }
.btn--brand { transition: transform .5s var(--ease-out), box-shadow .4s, background-position .8s var(--ease-out); }
.btn--ink:hover { box-shadow: 0 10px 28px -10px rgba(15,43,64,.6); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 12px/1 var(--f-body); padding: 7px 11px; border-radius: 999px; background: rgba(15,43,64,.06); color: var(--ink-2); }

/* Reveal on scroll (solo con JS: sin JS el contenido se ve siempre) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(15,43,64,.35);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(232,150,63,.12); border-color: rgba(232,150,63,.6); }
.cursor.is-dark .cursor__ring { border-color: rgba(255,255,255,.45); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 16px 0;
  transition: padding .4s var(--ease-out), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  padding: 10px 0; background: rgba(251,246,236,.94); box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgba(251,246,236,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
}
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--warm-grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav__inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 36px; height: auto; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__text { font: 800 20px/1 var(--f-display); letter-spacing: .02em; color: var(--ink); display: flex; flex-direction: column; }
.brand__text small { font-size: 9.5px; font-weight: 700; letter-spacing: .42em; margin-bottom: 4px; color: var(--ink-2); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; padding: 10px 14px; font: 500 14.5px/1 var(--f-display); color: var(--ink-2); border-radius: 999px; transition: color .3s, background .3s; }
.nav__links a:hover { background: rgba(15,43,64,.06); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.nav__cta-mobile { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 80% 20%, #FFF8EA, transparent 60%), var(--cream);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__orbs { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.hero .orb--a { width: 520px; height: 520px; background: #F2B872; left: 58%; top: 8%; transform: translate3d(calc(var(--mx, 0) * 40px), calc(var(--my, 0) * 40px), 0); }
.hero .orb--b { width: 440px; height: 440px; background: #A9C1B5; left: 38%; top: 50%; transform: translate3d(calc(var(--mx, 0) * -60px), calc(var(--my, 0) * -50px), 0); }
.hero .orb--c { width: 360px; height: 360px; background: #9FB3C7; left: -6%; top: -10%; opacity: .35; transform: translate3d(calc(var(--mx, 0) * 30px), calc(var(--my, 0) * -30px), 0); }

.hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(30px, 4vw, 64px); }
.hero__eyebrow { letter-spacing: .22em; margin-bottom: 28px; }
.hero__eyebrow::before { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232,150,63,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(232,150,63,0); } 100% { box-shadow: 0 0 0 0 rgba(232,150,63,0); } }

.hero__title { font-size: clamp(40px, 5.8vw, 84px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.rotator { position: relative; }
.rotator em { display: inline-block; transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), filter .5s; }
.rotator.is-out em { transform: translateY(-40%); opacity: 0; filter: blur(6px); }
.rotator.is-in em { animation: wordIn .7s var(--ease-out) both; }
@keyframes wordIn { from { transform: translateY(45%); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }

.hero__lead { margin: 30px 0 40px; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 52ch; animation: fadeUp 1s .45s var(--ease-out) both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp 1s .6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; aspect-ratio: 1; perspective: 1000px; animation: fadeIn 1.4s .2s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hero__mark {
  position: absolute; inset: 12%; display: grid; place-items: center; transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -14deg)) rotateY(calc(var(--mx, 0) * 16deg));
  transition: transform .9s var(--ease-out);
}
.hero__mark img { width: 62%; filter: drop-shadow(0 30px 40px rgba(15,43,64,.22)); transform: translateZ(60px); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(15,43,64,.10); transform: translateZ(0); }
.hero__ring--1 { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.2) 60%, transparent 70%); box-shadow: inset 0 0 60px rgba(232,150,63,.12); }
.hero__ring--2 { inset: -9%; border-style: dashed; border-color: rgba(15,43,64,.14); animation: spin 60s linear infinite; }
.hero__ring--2::before { content: ""; position: absolute; top: 12%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(232,150,63,.18); }
@keyframes spin { to { rotate: 360deg; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; background: rgba(255,253,248,.92); box-shadow: var(--shadow);
  font: 600 13.5px/1 var(--f-display); color: var(--ink); white-space: nowrap;
  transform: translate3d(calc(var(--mx, 0) * var(--k, 20px)), calc(var(--my, 0) * var(--k, 20px)), 0);
  transition: transform .8s var(--ease-out);
}
.chip__ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--warm-grad); color: #fff; font-size: 12px; }
.chip--1 { top: 10%; left: -4%; --k: -34px; }
.chip--2 { bottom: 16%; left: -10%; --k: 26px; }
.chip--3 { top: 46%; right: -8%; --k: -22px; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 20px; border: 1.5px solid rgba(15,43,64,.3); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: scrollHint 2s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 7. Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--cream); padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 600 clamp(20px, 2.4vw, 30px)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(251,246,236,.65); }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Secciones ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section__head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 780px; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.section__title { margin-top: 18px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.03em; }

/* Spotlight que sigue al ratón */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(232,150,63,.16), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

/* Tilt 3D */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out); }
.js .reveal[data-tilt] { transform: perspective(900px) translateY(34px); }
.js .reveal.is-in[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- 9. Servicios ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  padding: 34px 28px 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; min-height: 380px;
}
.service:hover { box-shadow: var(--shadow-lg); }
.service__num { position: absolute; top: 26px; right: 26px; font: 600 13px/1 var(--f-display); color: rgba(15,43,64,.3); }
.service__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--paper); background: var(--brand-grad); margin-bottom: 18px; transition: transform .6s var(--ease-out); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 23px; font-weight: 700; }
.service p { color: var(--muted); font-size: 15.5px; flex: 1; }
/* El pack ocupa dos columnas: cuadra la última fila (4 col: 2 + pack) y marca
   jerarquía sin necesidad de una etiqueta de oferta. En 1 columna vuelve a auto. */
.service--pack { grid-column: span 2; background: var(--cream-2); border-color: rgba(232,150,63,.38); }
.service--pack .service__price { font-size: 17px; }

.service:nth-child(2) .service__icon { background: linear-gradient(135deg, #3F6570, var(--orange)); }
.service:nth-child(3) .service__icon { background: linear-gradient(135deg, var(--ink-2), var(--sage)); }
.service:nth-child(4) .service__icon { background: linear-gradient(135deg, var(--amber), #9AA27F); }

/* ---------- 10. Portfolio ---------- */
.portfolio { background: var(--cream-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,253,248,.7); border: 1px solid var(--line); }
.filter { padding: 11px 18px; border-radius: 999px; font: 500 14px/1 var(--f-display); color: var(--ink-2); transition: background .35s var(--ease-out), color .35s; }
.filter:hover { background: rgba(15,43,64,.06); }
.filter.is-active { background: var(--ink); color: var(--paper); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.case:hover { box-shadow: var(--shadow-lg); }
.case--wide { grid-column: span 2; flex-direction: row; }
.case--wide .case__media { flex: 1.25; aspect-ratio: auto; min-height: 360px; }
.case--wide .case__body { flex: 1; justify-content: center; padding: 40px; }
.case--wide h3 { font-size: clamp(24px, 2.4vw, 32px); }
.case--self .case__media img { object-position: 0% 50%; }
.case__demo {
  position: absolute; z-index: 2; right: 14px; top: 14px; padding: 7px 11px; border-radius: 999px;
  background: rgba(10,30,46,.84); color: var(--cream); box-shadow: var(--shadow);
  font: 700 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
}
.case__open { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.case__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--cream-2); }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,30,46,.25)); opacity: 0; transition: opacity .5s; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.case:hover .case__media img { transform: scale(1.07); }
.case:hover .case__media::after { opacity: 1; }
.case__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__cat { font: 600 11.5px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.case h3 { font-size: 22px; font-weight: 700; }
.case p { color: var(--muted); font-size: 15.5px; }
.case__more { font: 600 14px/1 var(--f-display); color: var(--ink); display: inline-flex; gap: 8px; }
.case__actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case__link {
  position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; background: rgba(232,150,63,.13); color: #9A5B1C;
  font: 600 13px/1 var(--f-display); transition: background .3s, color .3s, transform .4s var(--ease-out);
}
.case__link:hover { background: var(--orange); color: var(--paper); transform: translateY(-2px); }
.case__soon { font: 500 12px/1 var(--f-display); color: var(--muted); padding: 9px 12px; border-radius: 999px; border: 1px dashed var(--line); }
.case:hover .case__more .arrow { transform: translateX(5px); }
.case.is-hidden { display: none; }
.case.is-filtering { animation: caseIn .7s var(--ease-out) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.case--cta { background: var(--ink); color: var(--cream); justify-content: flex-end; min-height: 320px; overflow: hidden; }
.case--cta .case__body { justify-content: flex-end; }
.case--cta .case__body > div { display: grid; gap: 10px; }
.case__badge {
  position: absolute; z-index: 2; left: 14px; top: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,253,248,.94); color: var(--ink); box-shadow: var(--shadow);
  font: 600 12px/1 var(--f-display); letter-spacing: .01em;
}
.cases.is-filtered .case--wide, .cases.is-filtered .case--cta { grid-column: auto; }
.cases.is-filtered .case--wide { flex-direction: column; }
.cases.is-filtered .case--wide .case__media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
.cases.is-filtered .case--wide .case__body { padding: 26px 26px 28px; }
.case--cta::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; border-radius: 50%; background: var(--warm-grad); filter: blur(30px); opacity: .55; transition: transform 1s var(--ease-out); }
.case--cta:hover::before { transform: scale(1.25) translate(-20px, 20px); }
.case--cta .case__body { position: relative; justify-content: flex-end; }
.case--cta h3 { font-size: 30px; }
.case--cta p { color: rgba(251,246,236,.72); }
.case--cta .case__cat { color: var(--orange); }
.case--cta .case__more { color: var(--cream); }

/* ---------- 11. Chatbots ---------- */
.chatbots { background: var(--ink-deep); color: var(--cream); overflow: hidden; isolation: isolate; }
.chatbots__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--gx, 70%) var(--gy, 40%), rgba(232,150,63,.22), transparent 60%),
    radial-gradient(700px circle at 10% 90%, rgba(127,153,140,.18), transparent 60%);
}
.chatbots::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(251,246,236,.18) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.chatbots__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.chatbots .section__title { color: var(--cream); }
.chatbots em { background: var(--warm-grad); -webkit-background-clip: text; background-clip: text; }
.chatbots .lead { color: rgba(251,246,236,.72); margin: 24px 0 30px; }
.checks { display: grid; gap: 14px; margin-bottom: 26px; }

/* Aclara el precio y, sobre todo, que el bot de WhatsApp es otro producto. */
.chatbots__nota {
  font: 400 14px/1.6 var(--f-body); color: rgba(251,246,236,.68);
  border-left: 2px solid rgba(232,150,63,.5); padding-left: 16px;
  max-width: 52ch; margin-bottom: 36px;
}
.chatbots__nota b { color: var(--cream); font-weight: 600; }
.checks li { position: relative; padding-left: 36px; color: rgba(251,246,236,.9); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-deep); background: var(--warm-grad); }

.phone {
  position: relative; width: min(360px, 100%); margin-inline: auto; aspect-ratio: 9 / 18; border-radius: 46px;
  background: #F4EFE6; border: 10px solid #152A3B; box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
}
.phone__notch { position: absolute; top: 8px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #152A3B; z-index: 2; }
.phone__head { display: flex; align-items: center; gap: 10px; padding: 44px 18px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.phone__head img { width: 32px; height: auto; background: var(--cream); border-radius: 50%; padding: 4px; }
.phone__head strong { display: block; font: 600 14px/1.2 var(--f-display); }
.phone__head small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #3DBE7A; }
.phone__chat { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 14px; line-height: 1.45;
  background: radial-gradient(rgba(15,43,64,.05) 1px, transparent 1px) 0 0 / 16px 16px, #F4EFE6; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.msg--in { align-self: flex-end; background: #DDEBDD; border-bottom-right-radius: 5px; }
.msg--out { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 5px; }
.js .phone__chat[data-chat-ready] .msg { opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .phone__chat[data-chat-ready] .msg.is-shown { opacity: 1; transform: none; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; border-radius: 18px; border-bottom-left-radius: 5px; background: var(--paper); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.phone__input { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 12px 12px 12px 16px; border-radius: 999px; background: var(--paper); font-size: 13px; color: var(--muted); }
.phone__input span { flex: 1; }
.phone__input i { width: 30px; height: 30px; border-radius: 50%; background: var(--warm-grad); }

/* ---------- 12. Proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--warm-grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; padding-right: 10px; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream); border: 2px solid var(--line); font: 700 16px/1 var(--f-display); color: var(--ink); margin-bottom: 26px; transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease-out); }
.step.is-lit .step__n { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: scale(1.06); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- 13. Estudio ---------- */
.about { background: var(--paper); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.about__media > img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, -6%)); will-change: transform; }
.about__badge { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,253,248,.94); font: 600 13.5px/1 var(--f-display); box-shadow: var(--shadow); }
.about__badge img { width: 28px; height: auto; }
.about .lead { margin: 24px 0 36px; }
.values { display: grid; gap: 4px; }
.value { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.value strong { font: 600 17px/1.3 var(--f-display); }
.value span { color: var(--muted); font-size: 15.5px; }

/* ---------- 14. Contacto ---------- */
.contact { background: var(--cream); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact .orb--a { width: 540px; height: 540px; background: #F2B872; right: -140px; top: -120px; opacity: .45; }
.contact .orb--b { width: 460px; height: 460px; background: #A9C1B5; left: -160px; bottom: -160px; opacity: .45; }
.contact__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__title { margin: 18px 0 24px; font-size: clamp(44px, 6vw, 84px); font-weight: 700; letter-spacing: -.035em; }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; font: 600 clamp(20px, 2.4vw, 30px)/1.2 var(--f-display); padding-bottom: 6px; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat; transition: background-size .5s var(--ease-out); }
.contact__mail:hover { background-size: 0 2px; background-position: 100% 100%; }

.form { display: grid; gap: 18px; padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: rgba(255,253,248,.88); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 8px; }
.field label { font: 600 13px/1 var(--f-display); letter-spacing: .04em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 15.5px; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%230F2B40' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,150,63,.15); }
.field.is-error input, .field.is-error textarea { border-color: #C8553D; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 15. Footer ---------- */
.footer { background: var(--ink-deep); color: rgba(251,246,236,.75); padding: 56px 0; }
.footer__inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand--footer { margin-right: 0; }
.brand--footer .brand__text, .brand--footer .brand__text small { color: var(--cream); }
.footer__links { display: flex; gap: 22px; margin-left: auto; font: 500 14px/1 var(--f-display); }
.footer__links a:hover { color: var(--orange); }
.footer__legal { width: 100%; font-size: 13px; line-height: 1.7; padding-top: 26px; border-top: 1px solid rgba(251,246,236,.12); }
.footer__credits a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 16. Modal ---------- */
.modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 28px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(10,30,46,.6); overflow: auto;
}
.modal[open] { display: grid; grid-template-columns: 1fr 1fr; animation: modalIn .6s var(--ease-out); }
.modal::backdrop { background: rgba(10,30,46,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__media { margin: 0; min-height: 320px; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.modal__body h3 { font-size: clamp(26px, 3vw, 36px); }
.modal__content { display: grid; gap: 16px; color: var(--muted); }
.modal__content ul:not(.tags) { display: grid; gap: 8px; }
.modal__content ul:not(.tags) li { position: relative; padding-left: 22px; color: var(--ink-2); }
.modal__content ul:not(.tags) li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form__note.is-ok { color: #2E7D5B; font-weight: 500; }
.form__note.is-error { color: #B04A33; }
/* Galería de capturas dentro del modal */
.modal--gallery[open] { grid-template-columns: 1fr; width: min(1120px, calc(100% - 32px)); }
.modal--gallery .modal__media { min-height: 0; aspect-ratio: auto; background: var(--ink-deep); }
.gal { display: grid; }
.gal__stage { position: relative; aspect-ratio: 16 / 10; background: var(--ink-deep); overflow: hidden; }
.gal__img { width: 100%; height: 100%; object-fit: contain; }
.gal__img.is-in { animation: galIn .5s var(--ease-out); }
@keyframes galIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.gal__nav {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,253,248,.92); color: var(--ink);
  font-size: 26px; line-height: 1; box-shadow: var(--shadow); transition: transform .3s var(--ease-out), background .3s, color .3s;
}
.gal__nav:hover { background: var(--orange); color: var(--paper); transform: scale(1.08); }
.gal__nav--prev { left: 16px; }
.gal__nav--next { right: 16px; }
.gal__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; color: rgba(251,246,236,.88); font: 500 13.5px/1.3 var(--f-display); }
.gal__count { color: rgba(251,246,236,.55); white-space: nowrap; }
.gal__thumbs { display: flex; gap: 8px; padding: 2px 18px 16px; overflow-x: auto; scrollbar-width: thin; }
.gal__thumb { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: .85; }
.gal__thumb.is-active { opacity: 1; outline-color: var(--orange); }

.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,253,248,.92); box-shadow: var(--shadow); font-size: 16px; transition: transform .4s var(--ease-out); }
.modal__close:hover { transform: rotate(90deg); }

/* ---------- 16b. Contenido que llega del panel ---------- */
.service__price { font: 600 14px/1 var(--f-display); color: var(--amber); }

/* Banda de planes, bajo las tarjetas de servicios. */
.plans {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: 18px; justify-items: center; text-align: center;
  padding: clamp(26px, 4vw, 38px) var(--pad);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plans__lead { font: 600 clamp(19px, 2.2vw, 25px)/1.25 var(--f-display); color: var(--ink); max-width: 20ch; }
.plans__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plans__list li {
  font: 500 15px/1.3 var(--f-body); color: var(--ink-2);
  padding: 12px 18px; border-radius: 999px; background: var(--cream-2);
}
.plans__list b { font: 700 17px/1 var(--f-display); color: var(--ink); }
.plans__note { font: 400 14px/1.5 var(--f-body); color: var(--muted); max-width: 44ch; }
.contact__extra { margin-top: 24px; display: grid; gap: 8px; color: var(--muted); }
.contact__extra a { color: var(--ink); font-weight: 600; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,246,236,.08); color: var(--cream); transition: background .3s, transform .3s var(--ease-out); }
.footer__social a:hover { background: var(--orange); transform: translateY(-2px); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
/* La rejilla del portfolio se reajusta según cuántos proyectos haya */
.cases--self-narrow .case--self { grid-column: auto; flex-direction: column; }
.cases--self-narrow .case--self .case__media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
.cases--self-narrow .case--self .case__body { padding: 26px 26px 28px; }
.cases--cta-wide .case--cta { grid-column: span 2; }
.testimonials { background: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; padding: 30px 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote blockquote { margin: 0; font: 500 18px/1.5 var(--f-display); color: var(--ink); }
.quote figcaption { font: 600 12.5px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }

/* ---------- 16c. Consentimiento del formulario y enlaces legales ---------- */
.field--check .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.field--check .check input[type="checkbox"] { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--orange); box-shadow: none; }
.field--check.is-error .check { color: #B04A33; }
.check a, .form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.form__legal { font-size: 12px; line-height: 1.55; color: var(--muted); }
.form__legal strong { color: var(--ink-2); font-weight: 600; }
.footer__legal-nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.footer__legal-nav a { color: rgba(251,246,236,.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(251,246,236,.25); }
.footer__legal-nav a:hover { color: var(--orange); }

/* ---------- 16e. Aviso informativo de cookies ---------- */
.cookie-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(380px, calc(100% - 40px));
  display: grid; gap: 8px; padding: 20px 22px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.cookie-note.is-in { opacity: 1; transform: none; }
.cookie-note__title { font: 700 15px/1.3 var(--f-display); color: var(--ink); }
.cookie-note__text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-note__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--orange); }
.cookie-note__ok { justify-self: start; margin-top: 6px; }
@media (max-width: 640px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- 16d. Páginas legales ---------- */
.legal-top { position: sticky; top: 0; z-index: 50; background: rgba(251,246,236,.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .legal-top { background: rgba(251,246,236,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.legal-top .brand { margin-right: 0; }
.legal { padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.legal__inner { max-width: 820px; }
.legal h1 { margin: 16px 0 10px; font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; }
.legal__updated { color: var(--muted); font-size: 14px; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; }
.legal__tabs a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 13.5px/1 var(--f-display); color: var(--ink-2); transition: background .3s, color .3s; }
.legal__tabs a:hover { background: rgba(15,43,64,.06); }
.legal__tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.legal h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; }
.legal p, .legal li, .legal dd { color: #3A4A57; font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; list-style: disc; display: grid; gap: 6px; }
.legal ul + p { margin-top: 14px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.legal strong { color: var(--ink); }
.legal dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 16px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.legal dt { font: 600 14px/1.7 var(--f-display); color: var(--ink); }
.legal dd { margin: 0; }
mark.todo { background: #FCE3C3; color: #7A3E08; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 0; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .case--wide { grid-column: span 2; }
  .case--cta { grid-column: 1 / -1; min-height: 220px; }
  .case--self { grid-column: auto; flex-direction: column; }
  .case--self .case__media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .case--self .case__body { padding: 26px 26px 28px; }
  .cases--cta-wide .case--cta { grid-column: 1 / -1; }
  .cases--first-narrow-md .case--wide:not(.case--self) { grid-column: auto; flex-direction: column; }
  .cases--first-narrow-md .case--wide:not(.case--self) .case__media { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .cases--first-narrow-md .case--wide:not(.case--self) .case__body { padding: 26px 26px 28px; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 100px var(--pad) 40px; background: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
  }
  .nav__links a { font-size: clamp(30px, 8vw, 44px); font-weight: 700; padding: 10px 0; transform: translateY(20px); transition: transform .6s var(--ease-out), color .3s; }
  .nav__links a:hover { background: none; color: var(--orange); }
  .nav__links a.is-active::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .nav__links a { transform: none; }
  .nav__cta-mobile { display: block; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { background: var(--cream); }

  .hero { padding: 110px 0 80px; text-align: left; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(300px, 70vw); margin: 0 auto -10px; }
  .chip { font-size: 12px; padding: 9px 12px; }
  .chip--1 { left: -8%; }
  .chip--2 { left: -12%; }
  .chip--3 { right: -12%; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .hero__scroll { display: none; }

  .chatbots__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before, .steps::after { display: none; }

  .modal[open] { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .services__grid, .cases { grid-template-columns: 1fr; }
  .service--pack { grid-column: auto; }
  .case--wide { grid-column: auto; flex-direction: column; }
  .case--wide .case__media { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .case--wide .case__body { padding: 26px; }
  .case--cta, .cases--cta-wide .case--cta { grid-column: auto; }
  .quotes { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 12px; }
  .legal-top .btn { padding: 10px 14px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .gal__nav { width: 38px; height: 38px; margin-top: -19px; font-size: 22px; }
  .gal__nav--prev { left: 8px; }
  .gal__nav--next { right: 8px; }
  .gal__thumb { width: 84px; }
  .filters { border-radius: 20px; width: 100%; }
  .filter { flex: 1 1 auto; padding: 11px 12px; font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; gap: 6px; }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
  .phone { width: min(320px, 100%); }
}

/* Movimiento reducido: solo desactiva lo intrusivo (bucles grandes y parallax) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero__ring--2, .hero__mark img { animation-duration: 120s; }
  .hero__mark img { animation: none; }
}
