/* ==========================================================
   StarConexión · Tipografía, animaciones de entrada, efectos
   de scroll y submenú de Servicios. Se carga en todas las páginas.
   ========================================================== */

/* ---------- Tipografía tipo logo (Poppins) ---------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

html:root {
  --font-inter: "Poppins", "Inter", system-ui, sans-serif;
  --font-sans: "Poppins", "Inter", system-ui, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
}
html, body, button, input, select, textarea {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
}
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  line-height: 1;
}
/* Título principal de la portada: más pequeño y con líneas juntas */
#hero-title {
  font-size: clamp(34px, 4.4vw, 62px) !important;
  line-height: 0.95 !important;
  padding-top: 0.08em; /* margen para las tildes de la primera línea */
}

/* ---------- Aprovechar mejor el ancho de pantalla ---------- */
/* Los contenedores pasan de 1280px a 1440px de ancho máximo */
.max-w-7xl { max-width: 90rem !important; }
@media (min-width: 1280px) {
  section.lg\:px-10,
  header.lg\:px-10 { padding-left: 32px !important; padding-right: 32px !important; }
}

/* ---------- Barra de progreso de lectura ---------- */
#sfx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #cf0, #d9ff40);
  box-shadow: 0 0 12px rgba(204, 255, 0, .6);
  pointer-events: none;
}

/* ---------- Animaciones de entrada (scroll reveal) ---------- */
[data-sfx] {
  opacity: 0;
  transition:
    opacity .7s ease,
    transform .85s cubic-bezier(.2, .7, .2, 1),
    filter .85s ease;
  transition-delay: var(--sfx-delay, 0ms);
  will-change: opacity, transform;
}
[data-sfx="up"]    { transform: translateY(40px); }
[data-sfx="left"]  { transform: translateX(-48px); }
[data-sfx="right"] { transform: translateX(48px); }
[data-sfx="zoom"]  { transform: scale(.92); filter: blur(6px); }
[data-sfx="card"]  { transform: translateY(36px) scale(.96); }

[data-sfx][data-sfx-in] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Efecto de brillo neón al aparecer las tarjetas */
[data-sfx="card"][data-sfx-in] {
  animation: sfx-glow 1.4s ease var(--sfx-delay, 0ms) 1;
}
@keyframes sfx-glow {
  0%   { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
  40%  { box-shadow: 0 0 0 1px rgba(204, 255, 0, .45), 0 20px 50px -25px rgba(204, 255, 0, .45); }
  100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

/* ---------- Submenú de Servicios (escritorio) ---------- */
a[data-sfx-dd] {
  padding-right: 1.6rem !important;
}
a[data-sfx-dd]::before {
  content: "";
  position: absolute;
  right: .55rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease, margin-top .25s ease;
  opacity: .8;
}
a[data-sfx-dd][aria-expanded="true"]::before {
  transform: rotate(-135deg);
  margin-top: -1px;
}

#sfx-menu {
  position: fixed;
  z-index: 70;
  width: min(560px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(16, 16, 16, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(204, 255, 0, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  transform-origin: top center;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
#sfx-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
#sfx-menu::before { /* puente invisible para no perder el hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.sfx-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.sfx-menu__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  color: #f5f5f5;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  opacity: 0;
  transform: translateY(6px);
}
#sfx-menu.is-open .sfx-menu__item,
#sfx-sheet.is-open .sfx-menu__item {
  opacity: 1;
  transform: none;
  transition: background .2s ease, opacity .35s ease var(--d, 0ms), transform .35s ease var(--d, 0ms);
}
.sfx-menu__item:hover,
.sfx-menu__item:focus-visible {
  background: #1c1c1c;
  outline: none;
}
.sfx-menu__item:hover .sfx-menu__icon,
.sfx-menu__item:focus-visible .sfx-menu__icon {
  background: #cf0;
  color: #0a0a0a;
}
.sfx-menu__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(204, 255, 0, .1);
  color: #cf0;
  transition: background .2s ease, color .2s ease;
}
.sfx-menu__icon svg { width: 18px; height: 18px; }
.sfx-menu__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.sfx-menu__desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #a3a3a3;
}
.sfx-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(204, 255, 0, .08);
  color: #cf0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.sfx-menu__all:hover,
.sfx-menu__all:focus-visible {
  background: rgba(204, 255, 0, .16);
  outline: none;
}

/* ---------- Submenú de Servicios (móvil, hoja inferior) ---------- */
#sfx-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
#sfx-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s;
}
#sfx-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 39;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 14px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px 20px 0 0;
  background: #121212;
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
}
#sfx-sheet.is-open {
  transform: none;
  visibility: visible;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
#sfx-sheet .sfx-menu__grid { grid-template-columns: 1fr; }
.sfx-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  color: #f5f5f5;
  font-weight: 600;
}
.sfx-sheet__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #1c1c1c;
  color: #f5f5f5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Submenú desplegable en el menú hamburguesa (móvil) ---------- */
[role="dialog"][aria-label="Menú de navegación"] { overflow-y: auto; }
[role="dialog"][aria-label="Menú de navegación"] a[href="/servicios"]::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 12px;
  border-right: 2.5px solid #cf0;
  border-bottom: 2.5px solid #cf0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s ease;
}
[role="dialog"][aria-label="Menú de navegación"] a[href="/servicios"][aria-expanded="true"]::after {
  transform: translateY(3px) rotate(-135deg);
}
.sfx-acc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.sfx-acc > * { overflow: hidden; min-height: 0; }
.sfx-acc.is-open { grid-template-rows: 1fr; }
.sfx-acc .sfx-menu__grid { grid-template-columns: 1fr; }
.sfx-acc.is-open .sfx-menu__grid { padding-top: 8px; }
.sfx-acc.is-open .sfx-menu__all { margin-bottom: 8px; }
.sfx-acc .sfx-menu__all { display: none; }
.sfx-acc.is-open .sfx-menu__all { display: flex; }
.sfx-acc.is-open .sfx-menu__item {
  opacity: 1;
  transform: none;
  transition: background .2s ease, opacity .35s ease var(--d, 0ms), transform .35s ease var(--d, 0ms);
}

@media (min-width: 1024px) {
  #sfx-sheet, #sfx-sheet-backdrop { display: none; }
}
@media (max-width: 1023px) {
  #sfx-menu { display: none; }
}

/* ---------- Bloque Zona VIP (portada) ---------- */
.vip {
  position: relative;
  padding: 80px 16px;
  scroll-margin-top: 72px;
}
@media (min-width: 640px)  { .vip { padding: 112px 32px; } }
@media (min-width: 1024px) { .vip { padding: 112px 40px; scroll-margin-top: 88px; } }

.vip__wrap { max-width: 90rem; margin: 0 auto; }

.vip__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 40px;
  padding: 28px;
  border: 1px solid rgba(204, 255, 0, .22);
  border-radius: 32px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(204, 255, 0, .12), transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(204, 255, 0, .08), transparent 60%),
    linear-gradient(180deg, #141414, #0d0d0d);
  box-shadow: 0 40px 120px -50px rgba(204, 255, 0, .35);
}
.vip__card::before { /* brillo que recorre el borde */
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--vip-a, 0deg), transparent 0 70%, #cf0 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vip-spin 6s linear infinite;
  opacity: .7;
}
@property --vip-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes vip-spin { to { --vip-a: 360deg; } }

@media (min-width: 640px) { .vip__card { padding: 44px; } }
@media (min-width: 1024px) {
  .vip__card {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 56px;
  }
}

.vip__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border: 1px solid rgba(204, 255, 0, .35);
  border-radius: 999px;
  background: rgba(204, 255, 0, .08);
  color: #cf0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vip__star { font-size: 13px; animation: vip-twinkle 2.4s ease-in-out infinite; }
@keyframes vip-twinkle { 50% { opacity: .45; transform: scale(.85); } }

.vip__title {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
}
.vip__title span { color: #cf0; }

.vip__lead {
  margin: 18px 0 0;
  max-width: 34rem;
  color: rgba(245, 245, 245, .78);
  font-size: 16px;
  line-height: 1.65;
}
@media (min-width: 640px) { .vip__lead { font-size: 17px; } }

.vip__perks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
}
@media (min-width: 640px) { .vip__perks { grid-template-columns: 1fr 1fr; gap: 18px 22px; } }
.vip__perk { display: flex; gap: 12px; align-items: flex-start; }
.vip__perk strong { display: block; color: #f5f5f5; font-size: 15px; font-weight: 600; }
.vip__perk span > span { display: block; margin-top: 2px; color: #a3a3a3; font-size: 13.5px; line-height: 1.45; }
.vip__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  background: #cf0;
  color: #0a0a0a;
}
.vip__check svg { width: 14px; height: 14px; }

.vip__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.vip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.vip__btn--main {
  padding: 6px 6px 6px 24px;
  background: #cf0;
  color: #0a0a0a;
  box-shadow: 0 10px 40px -10px rgba(204, 255, 0, .6);
}
.vip__btn--main:hover { background: #d9ff40; box-shadow: 0 14px 50px -8px rgba(204, 255, 0, .75); }
.vip__btn-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #cf0;
  transition: transform .3s ease;
}
.vip__btn-ico svg { width: 18px; height: 18px; }
.vip__btn--main:hover .vip__btn-ico { transform: rotate(45deg); }
.vip__btn--ghost {
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #f5f5f5;
}
.vip__btn--ghost:hover { border-color: #cf0; color: #cf0; }
.vip__btn:focus-visible { outline: 2px solid #cf0; outline-offset: 3px; }
@media (max-width: 419px) { .vip__btn { width: 100%; } }

/* Imagen con tarjetas flotantes */
.vip__media { position: relative; padding: 18px 0 26px; }
.vip__frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.vip__media:hover .vip__frame { transform: none; }
.vip__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.vip__media:hover .vip__frame img { transform: scale(1.04); }
.vip__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, .65)),
    linear-gradient(135deg, rgba(204, 255, 0, .12), transparent 45%);
}

.vip__float {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(18, 18, 18, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  color: #f5f5f5;
  animation: vip-float 5s ease-in-out infinite;
}
.vip__float small { display: block; color: #a3a3a3; font-size: 12px; }
.vip__float--top {
  top: 0;
  left: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
}
.vip__float--top strong { display: block; font-size: 14px; }
.vip__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #cf0;
  color: #0a0a0a;
  font-size: 18px;
}
.vip__float--bottom {
  right: -6px;
  bottom: 0;
  width: min(250px, 70%);
  padding: 14px 16px;
  animation-delay: -2.5s;
}
.vip__bar {
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.vip__bar span {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9fcc00, #cf0);
  box-shadow: 0 0 12px rgba(204, 255, 0, .6);
}
.vip__bar-meta { display: flex; justify-content: space-between; font-size: 12px; color: #a3a3a3; }
.vip__bar-meta strong { color: #cf0; font-size: 13px; }
@keyframes vip-float { 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .vip__float--top { left: -28px; }
  .vip__float--bottom { right: -20px; }
}

/* ==========================================================
   PORTADA · ajustes de bloques
   ========================================================== */

/* Bloques quitados de la portada */
#como-trabajamos,
#productos,
#blog {
  display: none !important;
}

/* ---------- Meta: más visible ---------- */
#meta .meta-card {
  border-color: rgba(204, 255, 0, .3);
  box-shadow: 0 40px 120px -60px rgba(204, 255, 0, .45);
}
/* Logo de Meta grande, en el verde de la marca */
#meta .flex.flex-wrap.items-center.gap-3 > span[aria-hidden="true"] {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #b8e600, #cf0 55%, #e3ff66);
  box-shadow: 0 14px 40px -10px rgba(204, 255, 0, .6);
}
#meta .flex.flex-wrap.items-center.gap-3 > span[aria-hidden="true"] svg {
  width: 40px;
  height: 40px;
  fill: #0a0a0a;
}
/* Sello "Verificado · Meta Tech Provider" */
#meta .flex.flex-wrap.items-center.gap-3 > .pill {
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(204, 255, 0, .55);
  background: rgba(204, 255, 0, .1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}
#meta .flex.flex-wrap.items-center.gap-3 > .pill .pill__dot {
  width: 18px;
  height: 18px;
  background: #cf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, .2);
}
#meta #meta-title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}
/* Logos de plataformas: grandes y con su color de marca */
#meta ul[aria-label="Plataformas"] { gap: 10px; }
#meta ul[aria-label="Plataformas"] li {
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #1c1c1c;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#meta ul[aria-label="Plataformas"] li:hover {
  transform: translateY(-2px);
  border-color: var(--brand-c, #cf0);
  box-shadow: 0 10px 30px -12px var(--brand-c, #cf0);
}
#meta ul[aria-label="Plataformas"] li svg {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 7px;
  border-radius: 999px;
  fill: #fff;
  background: var(--brand-c, #333);
}
#meta ul[aria-label="Plataformas"] li:nth-child(1) { --brand-c: #25d366; }
#meta ul[aria-label="Plataformas"] li:nth-child(2) { --brand-c: #e1306c; }
#meta ul[aria-label="Plataformas"] li:nth-child(2) svg {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
#meta ul[aria-label="Plataformas"] li:nth-child(3) { --brand-c: #0084ff; }
#meta ul[aria-label="Plataformas"] li:nth-child(3) svg {
  background: linear-gradient(45deg, #0099ff, #a033ff 60%, #ff5280 90%);
}
#meta ul[aria-label="Plataformas"] li:nth-child(4) { --brand-c: #1877f2; }

/* ---------- Se quita la franja de palabras en movimiento (Automatización ✱ Software…) ---------- */
.marquee,
div:has(> .marquee) { display: none !important; }

/* ---------- "Tu negocio está perdiendo dinero" ---------- */
#problemas > div {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  #problemas > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    column-gap: 56px;
  }
  #problemas > div > header { margin-bottom: 0; }
  #problemas > div > ul { grid-column: 1 / -1; }
}
#problemas > div > header > p {
  font-size: 17px;
}
#problemas #problemas-title { font-size: clamp(34px, 5vw, 64px); line-height: .98; }

/* Se quita el recuadro "La buena noticia" */
#problemas .pain-cta { display: none !important; }

/* ===== Tarjetas de problemas: diseño "problema → solución" ===== */
#problemas ul { perspective: 1200px; }

/* --- Efecto de entrada (lo activa starfx.js) --- */
#problemas ul > li[data-pz] {
  transition:
    opacity .8s cubic-bezier(.16, 1, .3, 1) var(--pz-d, 0ms),
    transform .9s cubic-bezier(.16, 1, .3, 1) var(--pz-d, 0ms),
    filter .8s ease var(--pz-d, 0ms);
}
#problemas ul > li[data-pz="armed"] {
  opacity: 0;
  transform: translateY(48px) rotateX(14deg) scale(.96);
  filter: blur(8px);
}
#problemas ul > li[data-pz="in"] { opacity: 1; transform: none; filter: none; }
/* La línea de la solución y el punto rojo entran después de la tarjeta */
#problemas ul > li[data-pz="armed"] [data-hud-inner] > a { opacity: 0; transform: translateY(14px); }
#problemas ul > li[data-pz] [data-hud-inner] > a {
  transition: opacity .6s ease calc(var(--pz-d, 0ms) + 350ms), transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--pz-d, 0ms) + 350ms), border-color .35s ease, background .35s ease;
}

/* --- Tarjeta --- */
#problemas ul > li > .hud-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 40%),
    linear-gradient(160deg, #181818 0%, #0e0e0e 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 40px -30px rgba(0, 0, 0, .9);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .45s ease;
}
/* Luz que sigue al ratón */
#problemas ul > li > .hud-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
/* Línea verde fina en el borde superior */
#problemas ul > li > .hud-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cf0, transparent);
  transform: scaleX(0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
#problemas ul > li:hover > .hud-panel {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 70px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(204, 255, 0, .06);
}
#problemas ul > li:hover > .hud-panel::after { opacity: 1; }
#problemas ul > li:hover > .hud-panel::before { transform: scaleX(1); }

#problemas [data-hud-inner] {
  position: relative;
  min-height: 300px;
  padding: 28px !important;
}

/* --- Fila superior: icono + número --- */
#problemas [data-hud-inner] > div:first-child { margin-bottom: 26px; }
#problemas [data-hud-inner] > div:first-child > span:first-child {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  background: linear-gradient(160deg, #262626, #151515) !important;
  color: #e5e5e5 !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .9);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), color .35s ease, border-color .35s ease;
}
#problemas [data-hud-inner] > div:first-child > span:first-child svg { width: 24px; height: 24px; }
/* Punto rojo de "alerta" que late */
#problemas [data-hud-inner] > div:first-child > span:first-child::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 3px #141414;
  animation: pz-alert 2.4s ease-in-out infinite;
}
@keyframes pz-alert {
  0%, 100% { box-shadow: 0 0 0 3px #141414, 0 0 0 3px rgba(255, 90, 90, .45); }
  50% { box-shadow: 0 0 0 3px #141414, 0 0 0 9px rgba(255, 90, 90, 0); }
}
#problemas ul > li:hover [data-hud-inner] > div:first-child > span:first-child {
  transform: translateY(-2px) rotate(-6deg);
  color: #fff !important;
  border-color: rgba(255, 255, 255, .22) !important;
  background: linear-gradient(160deg, #262626, #151515) !important;
}

/* Número grande como marca de agua */
#problemas [data-hud-inner] > div:first-child > span:last-child {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), -webkit-text-stroke-color .4s ease;
}
#problemas ul > li:hover [data-hud-inner] > div:first-child > span:last-child {
  transform: translateY(-4px) scale(1.04);
  -webkit-text-stroke-color: rgba(255, 255, 255, .18);
}

/* --- Problema: título + descripción --- */
#problemas ul > li h3 {
  margin-bottom: 10px !important;
  font-size: 22px;
  line-height: 1.2;
}
#problemas ul > li [data-hud-inner] > p {
  display: block;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #9a9a9a;
}

/* --- Solución: mini panel al pie de la tarjeta --- */
#problemas [data-hud-inner] > a {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  margin-top: auto;
  padding: 12px 12px 12px 12px !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  color: #ededed !important;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
}
#problemas [data-hud-inner] > a::before {
  content: "Solución";
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a8a;
}
#problemas [data-hud-inner] > a > svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  box-sizing: border-box;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 10px;
  border-radius: 12px;
  background: rgba(204, 255, 0, .1);
  color: #cf0;
}
#problemas [data-hud-inner] > a > span {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
#problemas [data-hud-inner] > a::after {
  content: "→";
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d4d4d4;
  font-size: 15px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
#problemas ul > li:hover [data-hud-inner] > a {
  border-color: rgba(204, 255, 0, .22) !important;
  background: rgba(204, 255, 0, .04);
}
#problemas ul > li:hover [data-hud-inner] > a::after {
  background: #cf0;
  border-color: #cf0;
  color: #0a0a0a;
  transform: rotate(-45deg);
}

/* ===== Carrusel de problemas ===== */
#problemas ul.pz-car {
  display: flex !important;
  gap: 20px !important;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 18px 4px 34px !important;
  margin: -18px -4px -34px;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 90px), transparent 100%);
  cursor: grab;
}
#problemas ul.pz-car.is-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 100%);
}
#problemas ul.pz-car::-webkit-scrollbar { display: none; }
#problemas ul.pz-car.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
#problemas ul.pz-car.is-drag * { pointer-events: none; user-select: none; }
#problemas ul.pz-car > li {
  flex: 0 0 min(400px, 84%);
  scroll-snap-align: start;
}
@media (min-width: 1280px) {
  #problemas ul.pz-car > li { flex-basis: 380px; }
}
/* Las tarjetas que se asoman por los bordes quedan atenuadas */
#problemas ul.pz-car > li > .hud-panel {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .45s ease, opacity .5s ease, filter .5s ease;
}
#problemas ul.pz-car > li:not([data-seen]) > .hud-panel { opacity: .4; filter: saturate(.4) brightness(.8); }

/* Más profundidad: halo de color detrás de cada tarjeta visible */
#problemas ul.pz-car > li[data-seen] > .hud-panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 30px 60px -38px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(255, 255, 255, .02);
}
#problemas ul.pz-car > li > .hud-panel > [data-hud-inner]::before {
  content: "";
  position: absolute;
  left: -30%;
  bottom: -55%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, .09), transparent);
  z-index: -1;
  pointer-events: none;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
  opacity: .6;
}
#problemas ul.pz-car > li:hover > .hud-panel > [data-hud-inner]::before { transform: translate(14%, -12%) scale(1.15); opacity: 1; }

/* Controles: contador, barra de progreso y flechas */
.pz-car-ui {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.pz-car-count {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: #737373;
  letter-spacing: .04em;
}
.pz-car-count strong { color: #f5f5f5; font-size: 20px; font-weight: 700; margin-right: 2px; }
.pz-car-bar {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.pz-car-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(204, 255, 0, .4), #cf0);
  transform-origin: left;
  transform: scaleX(var(--pz-p, .2));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.pz-car-nav { flex: none; display: flex; gap: 10px; }
.pz-car-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #121212;
  color: #f5f5f5;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
}
.pz-car-btn svg { width: 20px; height: 20px; }
.pz-car-btn:hover:not(:disabled) { background: #cf0; border-color: #cf0; color: #0a0a0a; transform: scale(1.06); }
.pz-car-btn:focus-visible { outline: 2px solid #cf0; outline-offset: 3px; }
.pz-car-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 639px) {
  .pz-car-ui { gap: 14px; }
  .pz-car-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  #problemas ul.pz-car { scroll-behavior: auto; }
  #problemas ul > li[data-pz], #problemas ul > li[data-pz] [data-hud-inner] > a { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  #problemas [data-hud-inner] > div:first-child > span:first-child::after { animation: none; }
}

/* Imagen con avisos flotantes */
.pz-media { position: relative; padding: 22px 0 30px; }
.pz-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 90px -35px rgba(0, 0, 0, .9);
}
.pz-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 40% center;
  transition: transform 1.2s ease;
}
.pz-media:hover .pz-frame img { transform: scale(1.04); }
.pz-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, .7));
}
.pz-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(18, 18, 18, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  color: #f5f5f5;
  font-size: 13.5px;
  line-height: 1.25;
  animation: vip-float 5s ease-in-out infinite;
}
.pz-chip strong { display: block; font-size: 14px; }
.pz-chip small { display: block; color: #a3a3a3; font-size: 12px; }
.pz-chip__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 800;
}
.pz-chip--a { top: 0; left: -8px; }
.pz-chip--a .pz-chip__ico { background: rgba(255, 77, 77, .18); color: #ff6b6b; }
.pz-chip--b { top: 8%; right: -8px; animation-delay: -1.6s; }
.pz-chip--b .pz-chip__ico { background: rgba(255, 154, 61, .18); color: #ffa14d; }
.pz-chip--c { bottom: 0; left: 8%; animation-delay: -3.2s; border-color: rgba(204, 255, 0, .4); }
.pz-chip--c .pz-chip__ico { background: #cf0; color: #0a0a0a; }
.pz-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 20px;
  height: 20px;
  margin: -6px -6px 0 0;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  animation: pz-pulse 1.8s ease-in-out infinite;
}
.pz-chip__ico { position: relative; }
@keyframes pz-pulse { 50% { transform: scale(1.18); } }
@media (min-width: 1024px) {
  .pz-chip--a { left: -28px; }
  .pz-chip--b { right: -24px; }
}

/* ---------- "Empresas que ya confían": carrusel de logos ---------- */
/* La cuadrícula original se oculta solo cuando el carrusel ya está listo */
#clientes.has-marquee ul.grid { display: none !important; }

.cl-marquee {
  display: grid;
  gap: 16px;
  margin: 8px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cl-row { overflow: hidden; }
.cl-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: cl-scroll var(--cl-speed, 45s) linear infinite;
}
.cl-row--rev .cl-track { animation-direction: reverse; }
.cl-marquee:hover .cl-track { animation-play-state: paused; }
@keyframes cl-scroll { to { transform: translateX(calc(-50% - 8px)); } }

.cl-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 96px;
  padding: 0 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cl-logo img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s ease, opacity .3s ease;
}
.cl-logo img[data-ink="light"] { filter: grayscale(1) brightness(0); }
.cl-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px #cf0, 0 20px 40px -18px rgba(204, 255, 0, .6);
}
.cl-logo:hover img { filter: none; opacity: 1; }
.cl-logo:hover img[data-ink="light"] { filter: brightness(0); }
@media (max-width: 639px) {
  .cl-logo { width: 150px; height: 76px; padding: 0 16px; border-radius: 18px; }
  .cl-logo img { max-height: 40px; }
}

/* Botón "Ver todos los clientes" en neón */
#clientes a[href="/clientes"] {
  background: #cf0;
  border-color: #cf0 !important;
  color: #0a0a0a !important;
}
#clientes a[href="/clientes"]:hover { background: #d9ff40; }

/* ==========================================================
   ENTRADA DEL BANNER (liviano: solo opacidad y movimiento,
   una sola vez al cargar, sin efectos que se repitan)
   ========================================================== */
@keyframes sfx-up    { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes sfx-down  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes sfx-pop   { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes sfx-right { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes sfx-bg    { from { opacity: .35; transform: scale(1.08); } to { opacity: 1; transform: none; } }

/* Imagen / video de fondo: aparece con un zoom suave hacia atrás */
#inicio .hero__media {
  animation: sfx-bg 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
/* Etiqueta superior */
#inicio p.pill {
  animation: sfx-down .7s cubic-bezier(.2, .7, .2, 1) .15s both;
}
/* Título */
#inicio h1 {
  animation: sfx-up .9s cubic-bezier(.2, .7, .2, 1) .3s both;
}
/* Texto */
#inicio h1 ~ p {
  animation: sfx-up .8s cubic-bezier(.2, .7, .2, 1) .5s both;
}
/* Botones: uno tras otro */
#inicio h1 ~ div > * {
  animation: sfx-pop .6s cubic-bezier(.2, .7, .2, 1) both;
}
#inicio h1 ~ div > :nth-child(1) { animation-delay: .7s; }
#inicio h1 ~ div > :nth-child(2) { animation-delay: .82s; }
/* Etiquetas de servicios: una tras otra */
#inicio h1 ~ ul > li {
  animation: sfx-up .55s cubic-bezier(.2, .7, .2, 1) both;
}
#inicio h1 ~ ul > li:nth-child(1) { animation-delay: .95s; }
#inicio h1 ~ ul > li:nth-child(2) { animation-delay: 1.05s; }
#inicio h1 ~ ul > li:nth-child(3) { animation-delay: 1.15s; }
#inicio h1 ~ ul > li:nth-child(4) { animation-delay: 1.25s; }
/* Sellos de la derecha (Pasto, Meta Tech Provider): entran desde el lado */
#inicio :has(> .hero__badge) > * {
  animation: sfx-right .8s cubic-bezier(.2, .7, .2, 1) both;
}
#inicio :has(> .hero__badge) > :nth-child(1) { animation-delay: 1.1s; }
#inicio :has(> .hero__badge) > :nth-child(2) { animation-delay: 1.25s; }
#inicio :has(> .hero__badge) > :nth-child(3) { animation-delay: 1.4s; }

/* Otras páginas: el título del primer bloque también entra suave */
main > :first-child:not(#inicio) h1 {
  animation: sfx-up .8s cubic-bezier(.2, .7, .2, 1) .15s both;
}
main > :first-child:not(#inicio) h1 ~ p {
  animation: sfx-up .8s cubic-bezier(.2, .7, .2, 1) .3s both;
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-sfx] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  #sfx-progress { display: none; }
  #sfx-menu, #sfx-sheet, .sfx-menu__item { transition: none !important; }
  .vip__card::before, .vip__star, .vip__float, .pz-chip, .pz-badge { animation: none !important; }
  .cl-track { animation: none !important; flex-wrap: wrap; width: auto; }
  main > :first-child *, #inicio * { animation: none !important; }
  .cl-track > [aria-hidden="true"] { display: none; }
  .vip__frame { transform: none !important; }
}

/* En celular: lo que entra deslizando no debe ensanchar la página */
main{overflow-x:clip}
