/* ==========================================================
   LMG WEB IA · Manual de marca
   Violeta #8B3DF8 · Blanco · Negro · Gris claro #C9C4D6 · Violeta profundo #2A1B5E
   Montserrat (títulos) · Inter (textos)
   ========================================================== */
/* Tipografías alojadas en la web (Montserrat e Inter, subconjunto latino de Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/montserrat-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --violet: #8B3DF8;
  --violet-deep: #2A1B5E;
  --white: #FFFFFF;
  --black: #000000;
  --gray: #C9C4D6;
  --line: rgba(201, 196, 214, .14);
  --surface: #0B0716;
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 72px);
  --f-title: "Montserrat", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: var(--white); }
section { position: relative; }

.violet { color: var(--violet); }
.muted { color: var(--gray); }
.eyebrow {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.title {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--violet);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px var(--violet); }
.btn span { transition: transform .3s; }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 22px 40px; font-size: 18px; }

/* ---------- Progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; }
.progress span { display: block; height: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: flex; align-items: center; gap: 12px; min-height: 44px; transition: opacity .4s, transform .4s; }
.nav.is-scrolled .nav__brand { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.menu-open .nav .nav__brand { opacity: 1; transform: none; pointer-events: auto; }
.nav__iso { width: 58px; height: 58px; border-radius: 50%; }
.nav__logo { height: 34px; width: auto; }

/* ---------- Botón hamburguesa ---------- */
.burger {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(11, 7, 22, .7); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; display: grid; place-content: center; gap: 5px;
  transition: background .3s, border-color .3s;
}
.burger:hover { border-color: var(--violet); }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .4s cubic-bezier(.7,0,.3,1), opacity .3s; }
.menu-open .burger { background: var(--violet); border-color: var(--violet); }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menú desplegable ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 110px var(--gutter) 48px;
  clip-path: circle(0 at calc(100% - var(--gutter) - 26px) 44px);
  transition: clip-path .8s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.menu::before { content: ""; position: absolute; right: -20vw; bottom: -30vh; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(139,61,248,.22), transparent 60%); pointer-events: none; }
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 26px) 44px); visibility: visible; }
.menu__links { position: relative; display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(36px, 7vw, 84px); line-height: 1.15; letter-spacing: -.03em;
  opacity: 0; transform: translateY(40px);
  transition: color .3s, opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.menu__links a small { font-size: 14px; letter-spacing: .2em; color: var(--violet); font-weight: 700; }
.menu__links a:hover { color: var(--violet); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .5s; }
.menu__cta { position: relative; align-self: flex-start; }

/* ---------- 1 · Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
#webgl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* viñeta para legibilidad */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 25% 50%, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 60%), linear-gradient(to bottom, rgba(0,0,0,0) 70%, #000 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 980px; }
.hero__title {
  font-family: var(--f-title);
  font-weight: 900;
  font-size: clamp(36px, 6.6vw, 96px);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px; margin-bottom: 36px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; color: var(--gray);
}
.hero__cta .btn--ghost { border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__cta .btn--ghost:hover { border-color: var(--violet); }
.badge strong { color: var(--white); }
.badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.badge__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--violet); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero__sub { color: var(--gray); font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray);
}
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--violet), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }


/* ---------- 4 · Proceso (pinned) ---------- */
.process { height: 100vh; overflow: hidden; }
.process__inner {
  height: 100%;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: 90px var(--gutter) 40px;
}
.process__list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.process__list li { display: flex; flex-direction: column; padding-left: 20px; border-left: 2px solid var(--line); opacity: .3; transition: opacity .4s, border-color .4s; }
.process__list li.is-on { opacity: 1; border-color: var(--violet); }
.process__list b { font-family: var(--f-title); font-weight: 700; font-size: 18px; }
.process__list span { color: var(--gray); font-size: 15px; }
.process__bar { margin-top: 32px; height: 2px; background: var(--line); }
.process__bar span { display: block; height: 100%; background: var(--violet); transform-origin: 0; transform: scaleX(0); }
.hours { font-variant-numeric: tabular-nums; }

/* Ilustraciones de los pasos: se cruzan con un fundido según el paso activo */
.steps-art { position: relative; width: min(100%, 620px); aspect-ratio: 1; justify-self: center; }
.steps-art__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.9) translateY(24px); filter: blur(6px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .7s ease;
}
.steps-art__img.is-on { opacity: 1; transform: none; filter: none; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.steps-art__live {
  position: absolute; top: 12%; right: 10%; padding: 8px 16px; border-radius: 999px;
  background: var(--white); color: var(--black); font-family: var(--f-title); font-weight: 700; font-size: 14px;
  opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s cubic-bezier(.3,1.6,.5,1);
}
.steps-art__live.is-on { opacity: 1; transform: none; }
/* Estado "wireframe" inicial: se arma con el scroll desde JS */

/* ---------- 5 · Servicios (horizontal) ---------- */
.services { overflow: hidden; }
.services__track {
  display: flex; align-items: center; gap: 28px;
  height: 100vh;
  padding: 0 var(--gutter);
  width: max-content;
}
.services__intro { width: calc(100vw - 2 * var(--gutter)); flex: none; text-align: center; display: flex; flex-direction: column; align-items: center; }
.services__intro .title { max-width: 900px; }
.card {
  flex: none; height: min(580px, 74vh, 120vw); aspect-ratio: 3 / 4;
  padding: 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .4s;
}
.card:hover { border-color: var(--violet); transform: translateY(-6px); }
.card__num { font-family: var(--f-title); font-weight: 900; font-size: 84px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--violet); margin-bottom: auto; }
.card h3 { font-family: var(--f-title); font-weight: 800; font-size: 28px; margin-bottom: 12px; }
.card p { color: var(--gray); }
/* Tarjeta de servicio: etiqueta + ilustración + título + frase, alineados igual en todas */
.card--svc { container-type: inline-size; align-items: center; text-align: center; padding: 34px 22px 38px; background: var(--black); }
.card__label { font-family: var(--f-title); font-weight: 700; font-size: 3.4cqi; letter-spacing: .35em; text-transform: uppercase; color: var(--violet); }
.card__ilus { flex: 1; min-height: 0; width: 100%; object-fit: contain; margin: 7cqi 0; }
.card--svc h3 { font-family: var(--f-title); font-weight: 900; font-size: 7.5cqi; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; margin-bottom: 2.5cqi; }
.card--svc p { font-size: 4.2cqi; color: var(--gray); }

/* ---------- 6 · Portafolio (parallax) ---------- */
.portfolio { padding: 160px var(--gutter) 140px; overflow: hidden; }
.portfolio__big {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-title); font-weight: 900;
  font-size: clamp(80px, 17vw, 280px); line-height: .85; letter-spacing: -.05em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(139,61,248,.45);
  white-space: nowrap; pointer-events: none; z-index: 0;
}
.portfolio__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 6vw, 120px); max-width: 1200px; margin: 0 auto; }
.portfolio__grid .work:nth-child(even) { margin-top: 160px; }
.work { display: block; }
.work__shot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); transition: border-color .4s; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.work__go {
  position: absolute; inset: auto 16px 16px auto;
  padding: 10px 18px; border-radius: 999px; background: var(--violet);
  font-family: var(--f-title); font-weight: 700; font-size: 13px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s;
}
a.work:hover .work__shot { border-color: var(--violet); }
a.work:hover .work__shot img { transform: scale(1.05); }
a.work:hover .work__go, a.work:focus-visible .work__go { opacity: 1; transform: none; }
.work__tag { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.work h3 { font-family: var(--f-title); font-weight: 800; font-size: 26px; margin: 4px 0 6px; }
.work p:last-child { color: var(--gray); }
.portfolio__cta { position: relative; z-index: 1; display: flex; width: max-content; margin: 100px auto 0; }

/* ---------- 7 · Resultados ---------- */
.proof { padding: 40px var(--gutter) 80px; }
.stats {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1150px; margin: 0 auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 56px 24px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--f-title); font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stats li:nth-child(2) strong { color: var(--violet); }
/* Destello: un brillo recorre cada número y el halo violeta late, desfasado entre los tres */
.stats strong {
  background: linear-gradient(110deg, var(--white) 42%, #D9C4FF 50%, var(--white) 58%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4.5s ease-in-out infinite, glow 4.5s ease-in-out infinite;
  animation-play-state: paused;
}
.stats li:nth-child(2) strong { background-image: linear-gradient(110deg, var(--violet) 42%, #E6D9FF 50%, var(--violet) 58%); }
.stats li:nth-child(2) strong { animation-delay: .6s; }
.stats li:nth-child(3) strong { animation-delay: 1.2s; }
/* entre 100% y 0% el degradé (300% de ancho) siempre cubre todo el número */
.proof.is-live .stats strong { animation-play-state: running; }
@keyframes shine { 0%, 45% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }
@keyframes glow { 0%, 40%, 100% { filter: drop-shadow(0 0 0 rgba(139,61,248,0)); } 60% { filter: drop-shadow(0 0 22px rgba(139,61,248,.75)); } }
.stats span { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--gray); }

/* ---------- 8 · Precios ---------- */
.pricing { padding: 120px var(--gutter); text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1150px; margin: 56px auto 0; text-align: left; }
.plan { position: relative; padding: 40px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--violet); background: linear-gradient(180deg, var(--violet-deep) 0%, var(--surface) 70%); transform: translateY(-14px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 999px; background: var(--violet); font-size: 12px; font-weight: 700; }
.plan__tag { font-family: var(--f-title); font-weight: 700; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.plan h3 { font-family: var(--f-title); font-weight: 800; font-size: 26px; }
.plan__desc { color: var(--gray); margin-top: 4px; }
.plan__price { font-family: var(--f-title); font-weight: 800; font-size: 22px; margin: 20px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pricing__note {
  color: var(--gray); max-width: 620px; margin: 24px auto 0;
  padding: 18px 28px;
  background: var(--black); border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
}

/* Servicios complementarios */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1150px; margin: 64px auto 0; text-align: left; }
/* subgrid: etiqueta, título y texto de las 3 tarjetas comparten filas → quedan alineados */
.extra { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.extra h3 { font-family: var(--f-title); font-weight: 800; font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.extra p:last-child { color: var(--gray); font-size: 15px; }

/* Sistemas a medida */
.systems {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch;
  max-width: 1150px; margin: 24px auto 0; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius); text-align: left;
  background: var(--violet-deep); border: 1px solid rgba(139,61,248,.5);
}
.systems h3 { font-family: var(--f-title); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.systems__copy > p:not(.plan__tag) { color: var(--gray); margin-bottom: 28px; }
/* chips en grilla de 2 columnas: arrancan a la altura del título y terminan a la del botón */
.chips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; align-self: stretch; padding-top: 28px; }
.chips li { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-size: 14px; }

/* Condiciones */
.terms {
  max-width: 1150px; margin: 24px auto 0; text-align: left;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--black); border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
}
.terms h3 { font-family: var(--f-title); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.terms ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; color: var(--gray); font-size: 15px; }
.terms b { color: var(--white); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; color: var(--gray); }
.plan li::before { content: "✓"; color: var(--violet); font-weight: 700; margin-right: 10px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- 8 · CTA final ---------- */
.final { padding: 160px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(139,61,248,.28), transparent 60%); pointer-events: none; }
.final__iso { position: relative; width: 160px; height: 160px; border-radius: 50%; margin-bottom: 40px; }
.final__title { position: relative; font-family: var(--f-title); font-weight: 900; font-size: clamp(44px, 8vw, 120px); line-height: 1; letter-spacing: -.04em; margin-bottom: 20px; }
.final__sub { position: relative; color: var(--gray); font-size: 19px; margin-bottom: 40px; }
.final .btn { position: relative; }

.footer { padding: 72px var(--gutter) 32px; border-top: 1px solid var(--line); color: var(--gray); font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer__brand img { width: min(320px, 80%); height: auto; margin-bottom: 28px; }
.footer__quote { margin-top: 6px; padding-left: 18px; border-left: 2px solid var(--violet); max-width: 440px; }
.footer__quote p { text-wrap: pretty; }
.footer__quote p { font-family: var(--f-title); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--white); }
.footer__quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; letter-spacing: .08em; color: var(--violet); font-weight: 700; }
.footer__social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color .3s, transform .3s, background .3s;
}
.social:hover { border-color: var(--violet); transform: translateY(-3px); background: rgba(42,27,94,.45); }
.social__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--black); }
.social__icon img { width: 100%; height: 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .4s; }
.social:hover .social__icon img { transform: scale(1.12); filter: brightness(1.25) drop-shadow(0 0 10px rgba(139,61,248,.8)); }
.social__text { display: flex; flex-direction: column; min-width: 0; }
.social__text b { font-family: var(--f-title); font-weight: 700; color: var(--white); font-size: 15px; }
.social__text small { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  max-width: 1200px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px;
}
.footer__links { display: flex; gap: 10px; }
.footer__links a { transition: color .3s; padding: 12px 0; margin: -12px 0; }  /* área táctil de 44 px sin cambiar el aspecto */
.footer__links a:hover { color: var(--white); }
.footer__bottom b { color: var(--white); }

/* ---------- Testimonios ---------- */
.testi { --vid-h: min(560px, 62vh); --vid-w: calc(var(--vid-h) * 9 / 16); padding: 120px 0; text-align: center; overflow: hidden; }
.testi .title { padding: 0 var(--gutter); }
.testi__slider { position: relative; margin-top: 56px; }
.testi__track { display: grid; justify-items: center; touch-action: pan-y; }
/* --o = distancia al activo (-1, 0, 1…), --a = su valor absoluto; los calcula main.js */
.testi__slide {
  grid-area: 1 / 1; width: var(--vid-w); display: flex; flex-direction: column; align-items: center;
  transform: translateX(calc(var(--o, 0) * 96%)) scale(calc(1 - var(--a, 0) * .2));
  transform-origin: 50% calc(var(--vid-h) / 2);
  filter: blur(calc(var(--a, 0) * 5px)) brightness(calc(1 - var(--a, 0) * .4));
  opacity: calc(1 - (var(--a, 0) - 1) * 1);
  z-index: calc(10 - var(--a, 0));
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s, opacity .6s;
  cursor: pointer;
}
.testi__slide.is-on { cursor: auto; }
/* estilo Reels: sin borde, esquinas redondeadas, sombra y nombre del cliente sobre el video */
.testi__video {
  position: relative; width: 100%; height: var(--vid-h);
  border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.9);
}
/* luz violeta detrás del video activo */
.testi__slide.is-on .testi__video { box-shadow: 0 0 0 1px rgba(139,61,248,.55), 0 30px 120px -20px rgba(139,61,248,.75), 0 0 60px -10px rgba(139,61,248,.5); }
.testi__slider::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--vid-h) / 2); translate: -50% -50%;
  width: calc(var(--vid-w) * 2.6); height: calc(var(--vid-h) * 1.3); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(139,61,248,.35), rgba(42,27,94,.18) 45%, transparent 70%);
}
.testi__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 45%); pointer-events: none; transition: opacity .4s; }
.testi__video video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
/* en pantalla completa se ve el video entero, sin recortes */
.testi__video video:fullscreen { object-fit: contain; background: #000; }
.testi__video video:-webkit-full-screen { object-fit: contain; background: #000; }
.testi__info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; text-align: left; transition: opacity .4s; }
.testi__info b { display: block; font-family: var(--f-title); font-weight: 800; font-size: 18px; }
.testi__info span { font-size: 13px; color: #ddd; }
.testi__slide.is-playing .testi__info, .testi__slide.is-playing .testi__video::after { opacity: 0; }
.testi__slide:not(.is-on) .testi__video { pointer-events: none; }
.testi__play {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--white);
  background: rgba(139,61,248,.9); box-shadow: 0 0 0 10px rgba(139,61,248,.25), 0 20px 50px -10px rgba(0,0,0,.6);
  transition: scale .3s, box-shadow .3s, opacity .3s;
}
.testi__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.testi__play:hover { scale: 1.08; box-shadow: 0 0 0 16px rgba(139,61,248,.2), 0 20px 50px -10px rgba(0,0,0,.6); }
.testi__slide:not(.is-on) .testi__play { opacity: 0; }
.testi__slide.is-playing .testi__play { opacity: 0; pointer-events: none; }
.testi__soon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray); font-size: 14px; pointer-events: none; }
/* tarjeta de reseña */
.testi__card {
  width: min(520px, calc(100vw - 2 * var(--gutter))); margin-top: 28px; padding: 24px 28px;
  border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s;
}
.testi__slide.is-on .testi__card { opacity: 1; transform: none; transition-delay: .25s; }
.testi__head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.testi__logo { height: 34px; width: auto; }
.testi__stars { display: flex; gap: 3px; }
.testi__card--pending .testi__stars { display: none; }  /* sin reseña real todavía: no mostrar puntaje */
.testi__stars svg { width: 20px; height: 20px; fill: #FBBC04; }
.testi__slide blockquote { font-family: var(--f-title); font-style: italic; font-weight: 500; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; text-wrap: pretty; }
.testi__arrow {
  position: absolute; z-index: 20; top: calc(var(--vid-h) / 2); translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--white);
  background: rgba(11,7,22,.8); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, scale .3s;
}
.testi__arrow[data-dir="-1"] { right: calc(50% + var(--vid-w) / 2 + 20px); }
.testi__arrow[data-dir="1"] { left: calc(50% + var(--vid-w) / 2 + 20px); }
.testi__arrow:hover { background: var(--violet); border-color: var(--violet); scale: 1.06; }
.testi__arrow svg { width: 22px; height: 22px; }
.testi.is-single .testi__arrow, .testi.is-single .testi__dots { display: none; }
.testi__dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testi__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--line); transition: width .3s, background .3s; }
.testi__dots button[aria-selected="true"] { width: 32px; background: var(--violet); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 150px var(--gutter) 100px; }
.legal__back { display: inline-block; margin-bottom: 32px; color: var(--violet); font-weight: 700; font-size: 14px; }
.legal h1 { font-family: var(--f-title); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.legal__date { color: var(--gray); font-size: 14px; margin: 12px 0 40px; }
.legal h2 { font-family: var(--f-title); font-weight: 800; font-size: 20px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--gray); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.notfound .btn { color: var(--white); text-decoration: none; }
.legal p a, .legal li a { color: var(--white); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }

/* ---------- Página de portafolio ---------- */
.pf-hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 80px; text-align: center; overflow: hidden; }
.pf-hero::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(139,61,248,.22), transparent 60%); pointer-events: none; }
.pf-hero__inner { position: relative; }
.pf-hero__title { font-family: var(--f-title); font-weight: 900; font-size: clamp(40px, 8vw, 120px); line-height: 1; letter-spacing: -.035em; }
.pf-hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.pf-hero__title .w { display: inline-block; }
.pf-list { padding: 40px var(--gutter) 60px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px clamp(24px, 4vw, 56px); max-width: 1200px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__iso { width: 46px; height: 46px; }
  .nav__logo { height: 26px; }
  .burger { width: 46px; height: 46px; }
  .process__inner { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 80px; }
  .process__list { margin-top: 20px; gap: 10px; }
  .process__list span { display: none; }
  .steps-art { width: min(100%, 300px); }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__grid .work:nth-child(even) { margin-top: 0; }
  .pf-grid { grid-template-columns: 1fr; gap: 48px; }
  .plans { grid-template-columns: 1fr; }
  .extras, .systems, .terms ul { grid-template-columns: 1fr; }
  .chips { padding-top: 0; gap: 10px; }
  .testi { --vid-h: min(440px, 56vh); }
  .testi__arrow { width: 42px; height: 42px; }
  .testi__arrow[data-dir="-1"] { right: auto; left: 10px; }
  .testi__arrow[data-dir="1"] { left: auto; right: 10px; }
  .chips li { font-size: 13px; padding: 10px 12px; border-radius: 16px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 36px 16px; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .plan--featured { transform: none; }
  .hero__title em { -webkit-text-stroke-width: 1.5px; }
}
@media (max-width: 480px) {
  .nav__iso { display: none; }
  .footer__social { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
