/* Tema de la página scroll-world de VOXTIP. Las reglas sin capa ganan a las del motor (@layer sw). */
:root, .sw-root {
  color-scheme: light;
  --sw-bg: #d9b4a5;              /* mismo fondo que las escenas y los clips */
  --sw-ink: #152d49;
  --sw-ink-soft: #3b4a5c;
  --sw-accent: #183f8c;
  --sw-font-display: "Manrope", sans-serif;
  --sw-font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

body { font-family: var(--sw-font-body); color: var(--sw-ink); background: var(--sw-bg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--sw-ink); color: #fff;
  font: 600 14px/20px var(--sw-font-body); text-decoration: none;
  transform: translateY(-64px); transition: transform 700ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sw-ink); outline-offset: 4px; border-radius: 8px;
}

/* ---- Motor: tipografía en la escala, marca e interacción ---- */
.sw-brand__mark {
  width: 48px; height: 27px; border-radius: 0; box-shadow: none;
  background: url("assets/img/voxtip-isotipo-160w.webp") center / 150% auto no-repeat;
}
.sw-brand__name { font-size: 20px; line-height: 28px; font-weight: 700; }
.sw-nav__item { font-size: 14px; line-height: 20px; transition: color 700ms var(--ease), background 700ms var(--ease); }
.sw-topcta {
  font-size: 14px; line-height: 20px; font-weight: 600; padding: 8px 12px;
  transition: transform 700ms var(--ease), background 700ms var(--ease);
}
.sw-topcta:hover { background: #254467; transform: translateY(-2px); }
.sw-topcta:active { transform: scale(0.98); }

.sw-copy__num { font-family: var(--sw-font-body); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.sw-copy__eyebrow { font-size: 12px; line-height: 16px; }
.sw-copy__title { font-size: 48px; line-height: 1; font-weight: 700; text-wrap: balance; }
.sw-copy__body { font-size: 18px; line-height: 28px; text-wrap: pretty; }
.sw-copy__tags li { font-size: 12px; line-height: 16px; padding: 8px 12px; }

.sw-btn {
  font-size: 16px; line-height: 24px; font-weight: 600; padding: 8px 12px;
  transition: transform 700ms var(--ease), background 700ms var(--ease);
}
.sw-btn--primary:hover { background: #254467; }
.sw-btn:active { transform: scale(0.98); }
.sw-hint { font-size: 12px; line-height: 16px; }

@media (max-width: 860px) {
  .sw-copy__title { font-size: 36px; line-height: 40px; }
  .sw-copy__body { font-size: 16px; line-height: 24px; }
  /* en móvil las etiquetas chocan con el aviso de scroll; los botones ya llevan los datos */
  .sw-copy__tags { display: none; }
}

/* ---- Cierre: eslogan y pie, por encima del escenario fijo del motor ---- */
/* z-index 55: cubre también la barra superior fija del motor (50) para que el texto no se cruce con ella */
.solutions, .tagline, .footer { position: relative; z-index: 55; background: var(--sw-bg); }

.tagline {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 32px;
  padding: 96px max(24px, calc((100% - 1080px) / 2));
}
.eyebrow {
  margin: 0; color: var(--sw-accent);
  font: 700 12px/16px var(--sw-font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.tagline-sub { margin: 0; font: 600 24px/32px var(--sw-font-display); text-wrap: balance; }

/* ---- Soluciones: contenido indexable, con prioridad en telefonía IP ---- */
.solutions {
  display: flex; flex-direction: column; gap: 32px;
  padding: 96px max(24px, calc((100% - 1080px) / 2)) 64px;
}
.solutions-title {
  max-width: 680px; margin: 0;
  font: 700 48px/1 var(--sw-font-display); letter-spacing: -0.02em; text-wrap: balance;
}
.solution { display: flex; flex-direction: column; gap: 12px; }
.solution img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.solution h3 { margin: 0; font: 700 20px/28px var(--sw-font-display); text-wrap: balance; }
.solution p { margin: 0; color: var(--sw-ink-soft); font: 400 16px/24px var(--sw-font-body); text-wrap: pretty; }
.solution .solution-lead { color: var(--sw-accent); font-weight: 600; }
.solution-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 16px; color: var(--sw-ink-soft); font: 400 16px/24px var(--sw-font-body); }
.solution-list strong { color: var(--sw-ink); font-weight: 600; }
.solution-featured { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.solution-featured .solution-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.solution-featured h3 { font-size: 36px; line-height: 40px; }
.solution-featured p { font-size: 18px; line-height: 28px; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tagline-text {
  max-width: 680px; margin: 0;
  font: 700 60px/1 var(--sw-font-display); letter-spacing: -0.02em;
  text-wrap: balance;
}
.tagline-text .word { color: rgb(21 45 73 / 30%); transition: color 700ms var(--ease); }
.tagline-text .word.is-on { color: var(--sw-ink); }

.tagline-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 9999px;
  font: 600 16px/24px var(--sw-font-body); text-decoration: none;
  transition: transform 700ms var(--ease), background 700ms var(--ease), border-color 700ms var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(0.98); }
.button-primary { color: #fff; background: var(--sw-ink); }
.button-primary:hover { background: #254467; }
.button-ghost { color: var(--sw-ink); border: 2px solid rgb(21 45 73 / 30%); }
.button-ghost:hover { border-color: var(--sw-ink); }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px max(24px, calc((100% - 1080px) / 2));
  border-top: 1px solid rgb(21 45 73 / 15%);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sw-ink); text-decoration: none; font: 700 18px/28px var(--sw-font-body);
}
.footer-brand img { width: 48px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a, .footer-copy {
  margin: 0; color: var(--sw-ink-soft); font: 500 14px/20px var(--sw-font-body); text-decoration: none;
  transition: color 700ms var(--ease);
}
.footer-links a:hover { color: var(--sw-ink); }

@media (max-width: 860px) {
  .tagline-text { font-size: 36px; line-height: 40px; }
  .solutions-title { font-size: 36px; line-height: 40px; }
  .solution-featured, .solution-grid { grid-template-columns: 1fr; gap: 32px; }
  .solution-featured h3 { font-size: 30px; line-height: 36px; }
  .footer { flex-direction: column; align-items: flex-start; }
  /* área táctil mínima de 44px */
  .button { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tagline-text .word { color: var(--sw-ink); transition: none; }
}
