/* ============================================================
   SOFTREK — DESIGN SYSTEM
   ============================================================
   Variables, reset, tipografía base y utilidades compartidas
   ============================================================ */

/* ============================================================
   FONT FACE — Averta (la fuente de la marca)
   ============================================================
   3 pesos × 2 estilos = 6 archivos locales en assets/fonts/.
   Mapeo de fallback (font-matching del browser):
     200/300        → Averta Light
     400/500        → Averta Regular
     600/700/800    → Averta Semibold
   font-display: swap evita FOIT (Flash of Invisible Text).
   ============================================================ */

@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/Averta-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/Averta-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/Averta-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/Averta-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* @font-face Semibold normal removido: el archivo Averta-Semibold.woff2
   está mislabeled (contiene glifos italic). Sin esta declaración, el
   browser cae al Averta-Regular (400 normal) y sintetiza el peso 600. */

/* ============================================================
   DOT DEL EYEBROW — latido tenue (solo scale)
   - Eyebrows generales: color violeta (forzado abajo)
   - Eyebrows de producto: mantienen su color propio (--product-accent)
   - Hero del home: verde, sin animación (no incluido)
   ============================================================ */
@keyframes eyebrow-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Color violeta para eyebrows GENERALES */
.hero-eyebrow::before,
.contact-eyebrow::before,
.service-eyebrow::before,
.packages-eyebrow::before,
.package-eyebrow::before,
.project-eyebrow::before {
  background: var(--violet) !important;
}

/* Animación de pulse para todos los eyebrows (product-eyebrow incluido).
   Cada elemento conserva su propio color (background + box-shadow definidos
   en su CSS local — para .product-eyebrow eso es --product-accent/--product-glow). */
.hero-eyebrow::before,
.product-eyebrow::before,
.contact-eyebrow::before,
.service-eyebrow::before,
.packages-eyebrow::before,
.package-eyebrow::before,
.project-eyebrow::before {
  animation: eyebrow-dot-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

/* ============================================================
   BACK TO TOP — botón flotante (insertado por JS)
   Solo se muestra en mobile, después de scrollear ~1.5 viewports.
   Posicionado bottom-left para no chocar con Chatwoot (bottom-right).
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(10, 10, 26, 0.25);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, visibility 0s linear 0.3s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, visibility 0s linear 0s;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--violet);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* Solo mobile — en desktop no es necesario */
@media (min-width: 769px) {
  .back-to-top { display: none !important; }
  /* Elementos inyectados por JS — algunos solo en mobile, otros también desktop */
  .card-desc-inject,
  .more-card-logo-inject { display: none !important; }
  /* card-footer-inject + card-arrow-inject ahora se muestran también en desktop
     en las cards "Otros servicios" (estilo white card con hover violeta) */
}

/* Utility: <br class="br-desktop-only"> se oculta en mobile para que el
   texto fluya naturalmente sin saltos forzados que se ven mal. */
@media (max-width: 768px) {
  .br-desktop-only { display: none !important; }
}
@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/Averta-SemiboldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --max-width: 1280px;
  --side-padding: clamp(20px, 4vw, 56px);
  --bg: #f5f3ee;
  --ink: #0a0a1a;
  --muted: rgba(10, 10, 26, 0.55);
  --hairline: rgba(10, 10, 26, 0.12);
  --violet: #6300FF;
  --footer-bg: #06061a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Averta', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-weight: 400;
}

/* Animaciones de entrada
   Al entrar al viewport, los elementos con [data-animate] o [data-animate-stagger]
   reciben la clase .is-visible (lo hace shared.js) y hacen fade-in + translateY.
   Stagger: cada hijo se desfasa 0.08s (hasta 8 hijos). */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 0.48s; }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   NAV — Header glass premium + posicionamiento blindado
   ============================================================ */

nav.nav {
  position: fixed !important;
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition:
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease;
}

nav.nav:not(.is-bar) {
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 8px 32px rgba(10, 10, 26, 0.06),
    0 2px 6px rgba(10, 10, 26, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 28px;
  border-radius: 999px;
  width: calc(100% - var(--side-padding) * 2);
  max-width: calc(var(--max-width) - var(--side-padding) * 2);
}

/* Bar mode — edge-to-edge transparente sobre hero oscuro */
nav.nav.is-bar {
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 22px var(--side-padding);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
nav.nav.is-bar .logo,
nav.nav.is-bar .nav-links a,
nav.nav.is-bar .nav-icons svg,
nav.nav.is-bar .menu-toggle { color: #ffffff; }
nav.nav.is-bar .nav-links a { opacity: 0.9; }
nav.nav.is-bar .nav-links a:hover,
nav.nav.is-bar .nav-links a.active { opacity: 1; }
nav.nav.is-bar .nav-links a.active::after { background: #ffffff; }

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 24px;
  width: auto;
  display: block;
  /* SVG es blanco; sobre fondos claros (nav glass) lo oscurecemos */
  filter: brightness(0);
  transition: filter 0.45s ease;
}
nav.nav.is-bar .logo img {
  /* Sobre hero oscuro el SVG queda en su color original (blanco) */
  filter: none;
}
.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 400; font-style: normal; opacity: 0.85;
  transition: color 0.45s ease, opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; display: block; width: 100%; height: 2px;
  background: var(--violet); margin-top: 6px; border-radius: 2px;
  transition: background 0.45s ease;
}
.nav-icons {
  display: flex; gap: 16px; align-items: center;
}
.nav-icons svg {
  width: 20px; height: 20px;
  color: var(--ink); opacity: 0.7;
  cursor: pointer; transition: color 0.45s ease, opacity 0.2s ease;
}
.nav-icons svg:hover { opacity: 1; }
/* Link wrapper alrededor del ícono de contacto: hereda color y sin underline */
.nav-icon-link {
  display: inline-flex; align-items: center;
  color: inherit; text-decoration: none;
}


/* ============================================================
   MOBILE MENU — Hamburguesa + Drawer premium
   ============================================================ */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1010;
  position: relative;
  color: var(--ink);
}
.menu-toggle-lines {
  width: 22px;
  height: 16px;
  position: relative;
}
.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
}
.menu-toggle-lines span:nth-child(1) { top: 0; }
.menu-toggle-lines span:nth-child(2) { top: 7px; }
.menu-toggle-lines span:nth-child(3) { top: 14px; }
.menu-toggle.is-open .menu-toggle-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-lines span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  /* 100dvh (dynamic viewport height) se ajusta cuando el URL bar del navegador
     móvil aparece/desaparece. 100vh queda de fallback para browsers viejos. */
  height: 100vh;
  height: 100dvh;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-left: 1px solid rgba(10, 10, 26, 0.08);
  z-index: 9005;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 140px 32px 32px;  /* mayor padding-top para bajar el contenido (alcance del pulgar) */
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* Si el contenido (6 links + footer) excede el alto del viewport — pantallas
     chicas o landscape — se puede scrollear dentro del drawer. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;  /* momentum scroll en iOS */
  overscroll-behavior: contain;  /* evita que el scroll del drawer dispare el del body atrás */
  box-shadow: -20px 0 60px rgba(10, 10, 26, 0.15);
  pointer-events: none;  /* cuando está cerrado no captura clicks (la sombra del borde derecho bloqueaba el botón hamburguesa) */
}

/* Pantallas cortas: reducir el padding-top que ocupa 140px (≈ 1/4 de un
   iPhone SE en landscape) para dar más espacio a los links. */
@media (max-height: 700px) {
  .mobile-menu { padding-top: 80px; gap: 20px; }
}
.mobile-menu.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Botón X para cerrar el menú (insertado por JS, así no hace falta tocar 17 HTMLs) */
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: background 0.2s ease;
  z-index: 2;
}
.mobile-menu-close:hover {
  background: rgba(10, 10, 26, 0.08);
}
.mobile-menu-close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu-links {
  list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0;
}
.mobile-menu-links li {
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open .mobile-menu-links li { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open .mobile-menu-links li:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu .mobile-menu-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10, 10, 26, 0.08);
  color: var(--ink); text-decoration: none;
  font-size: 22px;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: -0.5px;
  transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-links a:hover { color: var(--violet); padding-left: 8px; }
/* Flecha SVG (inyectada por JS para consistencia con los botones del sitio) */
.mobile-menu-link-arrow {
  width: 18px;
  height: 18px;
  color: rgba(10, 10, 26, 0.3);
  transition: color 0.2s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.mobile-menu-links a:hover .mobile-menu-link-arrow {
  color: var(--violet);
  transform: translateX(4px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(10, 10, 26, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.mobile-menu-footer-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  /* 0.7 (no 0.55) para cumplir contraste AA sobre el fondo crema del menú */
  color: rgba(10, 10, 26, 0.7);
  margin-bottom: 0;
}
/* "Hablemos" — pill button (mismo estilo que CTAs del sitio) */
.mobile-menu-footer a[href="/contacto"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  font-style: normal;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.mobile-menu-footer a[href="/contacto"]:hover,
.mobile-menu-footer a[href="/contacto"]:focus-visible {
  background: var(--violet);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(99, 0, 255, 0.32);
}
/* Email — texto secundario más legible */
.mobile-menu-footer a[href^="mailto:"] {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  word-break: break-all;
  margin-top: 4px;
}
.mobile-menu-footer a[href^="mailto:"]:hover {
  opacity: 1;
  color: var(--violet);
}

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-icons { display: none; }
  .menu-toggle { display: inline-flex; }
}


/* ============================================================
   CUSTOM CURSOR — Bolita violeta con glow + detección dark/light
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: none !important; }
}

.custom-cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--violet);
  pointer-events: none;
  /* Z-index máximo para quedar por encima del widget de Chatwoot (que usa z muy altos) */
  z-index: 2147483646;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  filter: blur(8px);
  transition:
    width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    background 0.4s ease;
  animation: cursor-glow-pulse 2s ease-in-out infinite;
  will-change: transform;
}

.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--violet);
  pointer-events: none;
  /* Z-index máximo para quedar por encima del widget de Chatwoot */
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    opacity 0.25s ease;
  will-change: transform;
}

.custom-cursor.on-dark { background: #ffffff; }
.custom-cursor-glow.on-dark { background: #ffffff; opacity: 0.10; }

@keyframes cursor-glow-pulse {
  0%, 100% { opacity: 0.12; filter: blur(8px); }
  50% { opacity: 0.20; filter: blur(10px); }
}

.custom-cursor.is-hover {
  width: 32px; height: 32px;
  background: transparent;
  border: 2px solid var(--violet);
}
.custom-cursor.is-hover.on-dark {
  background: transparent;
  border-color: #ffffff;
}

/* Cuando el cursor pasa sobre un botón cuyo hover cambia a violeta, el ring violeta
   se pierde sobre el fondo violeta del botón. Forzamos cursor blanco en esos casos. */
body:has(.btn-primary:hover) .custom-cursor.is-hover,
body:has(.btn-primary-dark:hover) .custom-cursor.is-hover,
body:has(.btn-secondary-light:hover) .custom-cursor.is-hover,
body:has(.btn-secondary:hover) .custom-cursor.is-hover,
body:has(.btn-contact:hover) .custom-cursor.is-hover,
body:has(.btn-portfolio:hover) .custom-cursor.is-hover,
body:has(.btn-saber:hover) .custom-cursor.is-hover,
body:has(.btn-dark:hover) .custom-cursor.is-hover,
body:has(.services-see-all:hover) .custom-cursor.is-hover,
body:has(.packages-teaser-link:hover) .custom-cursor.is-hover,
body:has(.package-cta:hover) .custom-cursor.is-hover,
body:has(.more-back:hover) .custom-cursor.is-hover,
body:has(.other-back:hover) .custom-cursor.is-hover,
body:has(.btn-cta-white:hover) .custom-cursor.is-hover,
body:has(.btn-ghost:hover) .custom-cursor.is-hover,
body:has(.quicknav-chip:hover) .custom-cursor.is-hover,
body:has(.legal-cta-button:hover) .custom-cursor.is-hover,
body:has(.services-grid .card:hover) .custom-cursor,
body:has(.services-grid .card:hover) .custom-cursor.is-hover,
body:has(.other-card:hover) .custom-cursor,
body:has(.other-card:hover) .custom-cursor.is-hover,
body:has(.filter-btn.active:hover) .custom-cursor,
body:has(.filter-btn.active:hover) .custom-cursor.is-hover {
  background: transparent;
  border-color: #ffffff;
}
body:has(.btn-primary:hover) .custom-cursor-glow.is-hover,
body:has(.btn-primary-dark:hover) .custom-cursor-glow.is-hover,
body:has(.btn-secondary-light:hover) .custom-cursor-glow.is-hover,
body:has(.btn-secondary:hover) .custom-cursor-glow.is-hover,
body:has(.btn-contact:hover) .custom-cursor-glow.is-hover,
body:has(.btn-portfolio:hover) .custom-cursor-glow.is-hover,
body:has(.btn-saber:hover) .custom-cursor-glow.is-hover,
body:has(.btn-dark:hover) .custom-cursor-glow.is-hover,
body:has(.services-see-all:hover) .custom-cursor-glow.is-hover,
body:has(.packages-teaser-link:hover) .custom-cursor-glow.is-hover,
body:has(.package-cta:hover) .custom-cursor-glow.is-hover,
body:has(.more-back:hover) .custom-cursor-glow.is-hover,
body:has(.other-back:hover) .custom-cursor-glow.is-hover,
body:has(.btn-cta-white:hover) .custom-cursor-glow.is-hover,
body:has(.btn-ghost:hover) .custom-cursor-glow.is-hover,
body:has(.quicknav-chip:hover) .custom-cursor-glow.is-hover,
body:has(.legal-cta-button:hover) .custom-cursor-glow.is-hover,
body:has(.services-grid .card:hover) .custom-cursor-glow,
body:has(.services-grid .card:hover) .custom-cursor-glow.is-hover,
body:has(.other-card:hover) .custom-cursor-glow,
body:has(.other-card:hover) .custom-cursor-glow.is-hover,
body:has(.filter-btn.active:hover) .custom-cursor-glow,
body:has(.filter-btn.active:hover) .custom-cursor-glow.is-hover {
  background: #ffffff;
}
.custom-cursor-glow.is-hover {
  width: 40px; height: 40px;
  opacity: 0.20;
}

.custom-cursor.is-click { width: 10px; height: 10px; }
.custom-cursor.is-text {
  width: 2px; height: 24px;
  border-radius: 2px;
}

.custom-cursor.is-hidden, .custom-cursor-glow.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .custom-cursor, .custom-cursor-glow { display: none !important; }
  body, body * { cursor: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-glow { animation: none; }
}


/* ============================================================
   IMAGE PLACEHOLDER — Para imágenes que aún no se han subido
   ============================================================ */

.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  background:
    radial-gradient(ellipse at center, rgba(99, 0, 255, 0.04) 0%, transparent 70%),
    var(--bg);
  border: 1.5px dashed rgba(10, 10, 26, 0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(10, 10, 26, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 106, 31, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.img-placeholder-icon {
  width: 32px; height: 32px;
  color: rgba(10, 10, 26, 0.35);
  position: relative;
  z-index: 1;
}
.img-placeholder-name {
  position: relative;
  z-index: 1;
  font-family: 'Averta', monospace;
  word-break: break-all;
  max-width: 100%;
}

[data-cursor-mode="dark"] .img-placeholder,
.footer .img-placeholder {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}
[data-cursor-mode="dark"] .img-placeholder-icon,
.footer .img-placeholder-icon {
  color: rgba(255, 255, 255, 0.4);
}

img.failed-load { display: none; }


/* ============================================================
   TIPOGRAFÍA EDITORIAL — Regla universal
   ============================================================
   Titulares editoriales: regular base (400) + italic semibold (600)
   El italic siempre es MÁS pesado que el base.
   ============================================================ */

.hero-title, .product-title, .service-title, .project-title,
.package-name, .packages-title, .contact-title, .page-title,
.services-title {
  font-weight: 400;
  font-style: normal;
}

.hero-title .italic, .product-title .italic, .service-title .italic,
.project-title .italic, .package-name .italic, .packages-title .italic,
.contact-title .italic, .page-title .italic, .services-title .italic {
  font-style: italic;
  font-weight: 600;
}
.hero-title .strong, .product-title .strong, .service-title .strong,
.project-title .strong {
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 10, 26, 0.55);
  position: relative;
  padding-top: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(99, 0, 255, 0.3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 30px rgba(99, 0, 255, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1px solid rgba(10, 10, 26, 0.12);
  border-radius: 999px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}


/* ============================================================
   CHATWOOT WIDGET — override del bubble flotante para usar el
   violeta de marca, mantener posición fija y permitir que el
   cursor custom pase por encima.
   ============================================================ */

.woot-widget-bubble,
.woot-widget-bubble.woot-elements--right,
.woot-widget-bubble.woot--bubble-holder {
  background: var(--violet) !important;
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 2147483640 !important;
}

.woot-widget-bubble:hover,
.woot-widget-bubble.woot-elements--right:hover {
  background: #4d00cc !important;  /* violeta un poco más oscuro */
  transform: scale(1.05);
}

/* Notification dot (badge de mensaje no leído) — mantén el rojo de Chatwoot */
.woot-widget-bubble .woot-widget--unread-count {
  /* default rojo, sin override */
}

/* Algunos themes de Chatwoot usan estos selectores adicionales */
.woot--bubble-holder { z-index: 2147483640 !important; }
