/* Boceto multi-bloque — sistema común (colores, tipografía, nav, bloques fijos) */
:root {
  --negro: #0b0b0c;
  --negro-2: #121214;
  --negro-3: #1a1a1d;
  --linea: rgba(255, 255, 255, .10);
  --texto: #f2efe8;
  --suave: #a9a59b;
  --oro: #c9a84c;
  --oro-claro: #e2c876;
  --oro-brillo: rgba(201, 168, 76, .35);
  --wa: #25d366;
  --radio: 18px;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --cuerpo: 'Outfit', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  /* escala tipográfica: los titulares grandes van con tracking negativo leve */
  --t-gigante: clamp(64px, 13vw, 200px);
  --t-titulo: clamp(48px, 8vw, 120px);
  --t-sub: clamp(17px, 1.6vw, 21px);
  --t-etiqueta: 13px;
  --nav-alto: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--negro); color: var(--texto);
  font-family: var(--cuerpo); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* utilidades que pueden usar todos los bloques */
.etiqueta { font-size: var(--t-etiqueta); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.display { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: -.005em; }
.oro { color: var(--oro); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- navegación translúcida (material) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-alto);
  display: flex; align-items: center; gap: 24px; padding: 0 max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(to bottom, rgba(11, 11, 12, .92), rgba(11, 11, 12, .80));
}
.nav__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.nav__marca img { width: 40px; height: auto; }
.nav__marca b { color: var(--oro); font-weight: 600; }
.nav__menu { display: flex; gap: 26px; margin-left: auto; }
.nav__menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--suave); transition: color .2s ease; }
.nav__menu a:hover, .nav__menu a[aria-current="true"] { color: var(--texto); }
.nav__menu a[aria-current="true"] { color: var(--oro-claro); }
.nav__cta {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px;
  background: var(--wa); color: #06210f; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .1s ease-out;
}
/* borde inferior que aparece solo cuando hay contenido debajo (no una línea fija) */
.nav__barra { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.nav__barra span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--oro), var(--oro-claro)); }

/* respuesta al toque: inmediata, en el pointer-down */
.nav__cta:active, .boton:active, [data-pulsable]:active { transform: scale(.97); transition: transform .1s ease-out; }

/* ---------- bloques fijos ---------- */
.bloque { position: relative; height: 400vh; }
.bloque__fijo {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  contain: layout paint;
}
.bloque + .bloque { border-top: 1px solid rgba(255, 255, 255, .04); }

/* ---------- piezas comunes de todos los bloques (estilo «lanzamiento de producto»: vidrio, halos de puntos, cursor) ---------- */
/* Fondo: video del servicio YA desenfocado (medios/fondos/<id>.mp4) + velo oscuro. Lo crea ctx.fondo(raiz, id). */
.fondo { position: absolute; inset: 0; z-index: -1; background: var(--negro); }
.fondo__video, .fondo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateZ(0); }
.fondo__velo {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(11, 11, 12, .15), rgba(11, 11, 12, .70) 100%),
    linear-gradient(to bottom, rgba(11, 11, 12, .55), rgba(11, 11, 12, .35) 40%, rgba(11, 11, 12, .80));
}
/* Tarjeta de vidrio: el material translúcido para paneles, ventanas de chat, celulares… */
.vidrio {
  /* sin backdrop-filter: el fondo ya viene desenfocado y re-desenfocar video en cada cuadro trababa el scroll */
  background: linear-gradient(160deg, rgba(38, 38, 42, .86), rgba(18, 18, 20, .80)); border: 1px solid rgba(255, 255, 255, .13); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
}
/* Halo de puntos (matriz de puntos dorados que se desvanece en círculo) detrás de iconos o titulares */
.halo {
  position: absolute; pointer-events: none; border-radius: 50%; will-change: transform, opacity;
  background-image: radial-gradient(circle, rgba(226, 200, 118, .85) 1.3px, transparent 1.7px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 68%);
}
/* Firma del servicio: «V.» + Visual <b>Ads</b> */
.firma { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--texto); }
.firma img { width: 26px; height: auto; }
.firma b { color: var(--oro); font-weight: 600; }
.firma--chip { padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(11, 11, 12, .72); border: 1px solid rgba(201, 168, 76, .35); }
/* Cursor animado (puntero) para simular clics sobre las interfaces */
.cursor { position: absolute; z-index: 5; width: 28px; height: 28px; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.cursor svg { width: 100%; height: 100%; }
.cursor__clic { position: absolute; left: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--oro-claro); opacity: 0; }
/* Texto que se desvanece hacia los bordes (nube de texto con una palabra fuerte al centro) */
.nube-texto {
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  color: rgba(242, 239, 232, .55);
}
/* Lema y nombre de servicio, mismo tamaño en todos los bloques para que se sientan parejos */
.servicio__nombre { font-family: var(--display); font-weight: 400; font-size: var(--t-titulo); line-height: .9; letter-spacing: -.005em; }
.servicio__nombre em { font-style: normal; color: var(--oro); }
.servicio__lema { font-size: var(--t-sub); color: #d9d5cb; }

@media (prefers-reduced-transparency: reduce) {
  .vidrio, .firma--chip { background: rgba(22, 22, 25, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1 var(--cuerpo); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.boton svg { width: 22px; height: 22px; fill: currentColor; }
.boton--oro { background: var(--oro); color: #14110a; }
.boton--linea { border-color: rgba(201, 168, 76, .55); color: var(--texto); background: rgba(11, 11, 12, .35); }
.boton--wa { background: var(--wa); color: #06210f; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }

/* ---------- cierre ---------- */
.cierre {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-alto) + 56px) max(16px, calc((100vw - 1180px) / 2)) 72px;
  background: radial-gradient(60% 60% at 30% 100%, rgba(201, 168, 76, .16), transparent 70%), var(--negro);
  scroll-margin-top: 0;
}
.cierre__in { width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cierre__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cierre h2 { font-family: var(--display); font-weight: 400; font-size: var(--t-titulo); line-height: .92; }
.cierre h2 em { font-style: normal; color: var(--oro); }
.cierre__lema { font-size: var(--t-sub); color: #d9d5cb; max-width: 30em; }
.cierre__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.cierre__areas { display: flex; flex-wrap: wrap; gap: 8px; }
.cierre__areas span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); border: 1px solid rgba(201, 168, 76, .4); border-radius: 999px; padding: 6px 14px; }
.cierre__link { color: var(--suave); font-size: 15px; }

/* ---------- formulario de prospectos ---------- */
.formulario { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.formulario__tit { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--texto); }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulario__campo { display: flex; flex-direction: column; gap: 6px; }
.formulario label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #d9d5cb; }
.formulario input, .formulario select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; font: 400 16px/1.2 var(--cuerpo);
  color: var(--texto); background: rgba(11, 11, 12, .55); border: 1px solid rgba(255, 255, 255, .14);
}
.formulario select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--oro) 50%), linear-gradient(135deg, var(--oro) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.formulario select option { background: var(--negro-2); color: var(--texto); }
.formulario input::placeholder { color: rgba(242, 239, 232, .38); }
.formulario input:focus, .formulario select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(201, 168, 76, .25); }
.formulario .boton { width: 100%; margin-top: 4px; border: 0; }
.formulario .boton.enviando { opacity: .65; }
.formulario__nota { font-size: 13px; color: var(--suave); text-align: center; }
.formulario__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px max(16px, calc((100vw - 1180px) / 2)) 36px; border-top: 1px solid var(--linea); color: var(--suave); font-size: 13px; }

@media (max-width: 760px) {
  :root { --nav-alto: 56px; }
  .nav { gap: 12px; }
  .nav__menu { display: none; }
  .nav__marca span { font-size: 16px; }
  .nav__cta { margin-left: auto; }
  .cierre__in { grid-template-columns: 1fr; }
  .formulario__fila { grid-template-columns: 1fr; }
  .cierre__botones .boton { width: 100%; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: rgba(11, 11, 12, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__cta:active, .boton:active, [data-pulsable]:active { transform: none; }
}
