/* ============================================
   CONFISPAT - Estilos personalizados
   ============================================ */

/* ---- Skip link (accesibilidad) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #1B2E52;
  color: #fff;
  padding: 8px 16px;
  z-index: 99999;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- Nav links: indicador visual además del color ---- */
.nav-link:focus-visible,
.fh-mobile-link:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Asegurar que links en footer tengan min touch target ---- */
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- FAQ acordeón ---- */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { outline: none; }
.faq-item[open] { border-color: rgba(37,99,235,0.2); }
.faq-item h3 { font-size: inherit; font-weight: inherit; margin: 0; }

/* ---- Variables ---- */
:root {
  --navy: #1B2E52;
  --royal: #2563EB;
  --gray-soft: #F8F9FB;
}

/* ---- Scroll suave ---- */
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}

/* ---- Floating Header ---- */
.fh-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 8px 8px 0;
  pointer-events: none;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
  max-width: 100vw;
}

.fh-header {
  pointer-events: auto;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(27,46,82,0.12);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(27,46,82,0.12);
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  max-width: calc(100vw - 16px);
}

.fh-nav {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 0;
  position: relative;  /* para poder centrar logo con absolute */
}

/* Logo: centrado perfecto en mobile con position absolute */
.fh-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  pointer-events: auto;
}
/* Logo: 28px mobile, 36px desktop — !important para ganarle a Tailwind */
.fh-logo-img {
  height: 28px !important;
  width: auto !important;
}

.fh-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}
.fh-tel:hover { color: #1B2E52; }

/* Hamburger — solo mobile */
.fh-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 6px;
}
.fh-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1B2E52;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.fh-header.open .fh-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fh-header.open .fh-bar:nth-child(2) { opacity: 0; }
.fh-header.open .fh-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Espacio derecho = mismo ancho que hamburger, para centrar el logo */
.fh-mobile-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* Desktop links y CTA: ocultos en mobile */
.fh-desktop-links { display: none !important; }
.fh-desktop-cta   { display: none !important; }

/* Mobile drawer — oculto por defecto */
.fh-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 12px;
  border-top: 1px solid rgba(27,46,82,0.08);
}
.fh-mobile-menu.open { display: flex; }

.fh-mobile-link {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.fh-mobile-link:hover { background: rgba(27,46,82,0.06); color: #1B2E52; }

.fh-mobile-cta {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 8px;
  background: #1B2E52;
  color: #fff !important;
  text-decoration: none;
}
.fh-mobile-cta:hover { background: #2563EB; }

/* ≥ 768px — layout desktop */
@media (min-width: 768px) {
  .fh-wrapper { padding: 16px 20px 0; }
  .fh-header { max-width: 900px; }

  .fh-nav {
    justify-content: space-between;
    padding: 8px 14px;
    gap: 8px;
  }

  .fh-logo {
    position: static;
    transform: none;
    flex: 0 0 auto;
  }
  .fh-logo-img {
    height: 36px !important;
  }

  .fh-burger         { display: none !important; }
  .fh-mobile-spacer  { display: none !important; }
  .fh-mobile-menu    { display: none !important; }

  .fh-desktop-links {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }
  .fh-desktop-cta {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
}

/* ---- Desktop Navbar links ---- */
#tubeNav {
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover {
  color: #1B2E52;
  background: rgba(27,46,82,0.05);
}

/* Estado activo */
.nav-link.nav-active {
  color: #ffffff;
  font-weight: 600;
  background-color: #1B2E52;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 1px 3px rgba(27,46,82,0.20);
}

/* ---- Shimmer Button ---- */
/* Ported from 21st.dev/r/dillionverma/shimmer-button — vanilla CSS */

@keyframes shimmer-slide {
  from { transform: translateX(-100%) rotate(0deg); }
  to   { transform: translateX(100%) rotate(0deg); }
}
@keyframes spin-around {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn-primary,
.shimmer-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Capa del giro cónico (el shimmer real) */
.btn-primary::before,
.shimmer-btn::before {
  content: '';
  position: absolute;
  inset: -120%;
  width: 340%;
  height: 340%;
  background: conic-gradient(
    from 270deg,
    transparent 0deg,
    rgba(255,255,255,0.85) 90deg,
    transparent 90deg
  );
  animation: spin-around 3s linear infinite;
  z-index: -2;
  border-radius: 0;
  filter: blur(2px);
}

/* Fondo interior que "recorta" dejando solo el borde brillante */
.btn-primary::after,
.shimmer-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  z-index: -1;
  transition: box-shadow 0.3s ease;
  box-shadow: inset 0 -6px 10px rgba(255,255,255,0.12);
}

.btn-primary:hover::after,
.shimmer-btn:hover::after {
  box-shadow: inset 0 -6px 10px rgba(255,255,255,0.28);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Colores específicos por variante */
.btn-primary {
  background-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(27, 46, 82, 0.2);
}
.btn-primary::after {
  background: #1B2E52;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 46, 82, 0.35);
}

/* Variante blanca (botones del hero) */
.shimmer-btn {
  background-color: #ffffff;
  color: var(--navy);
  border-color: rgba(27,46,82,0.12);
}
.shimmer-btn::before {
  background: conic-gradient(
    from 270deg,
    transparent 0deg,
    rgba(37,99,235,0.6) 90deg,
    transparent 90deg
  );
}
.shimmer-btn::after {
  background: #ffffff;
  box-shadow: inset 0 -6px 10px rgba(37,99,235,0.08);
}
.shimmer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,46,82,0.15);
}
.shimmer-btn:hover::after {
  box-shadow: inset 0 -6px 10px rgba(37,99,235,0.18);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-outline:hover {
  background-color: var(--navy);
  color: #ffffff;
  transform: translateY(-1px);
}



.srv-num {
  color: rgba(27, 46, 82, 0.07);
  line-height: 1;
  user-select: none;
}

/* ---- Process steps ---- */
.process-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 46, 82, 0.1);
}

/* ---- WhatsApp Widget ---- */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Ocultar insignia de reCAPTCHA v3 (se debe incluir el aviso legal en el formulario) */
.grecaptcha-badge {
  visibility: hidden !important;
}


/* Wrapper del botón flotante (contiene el anillo de pulso) */
.wa-float-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.wa-float-wrap::before,
.wa-float-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.4);
  animation: wa-pulse-ring 2.4s ease-out infinite;
}
.wa-float-wrap::after {
  animation-delay: 1.2s;
}

@keyframes wa-pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Botón flotante */
.whatsapp-float {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.65);
}
/* Detener anillo mientras el popup está abierto */
.wa-float-wrap.active::before,
.wa-float-wrap.active::after {
  animation: none;
  opacity: 0;
}

/* Popup */
.wa-popup {
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(27,46,82,0.20);
  overflow: hidden;
  transform: scale(0.88) translateY(12px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.wa-popup.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Header */
.wa-popup-header {
  background: #1B2E52;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-header-info {
  flex: 1;
}
.wa-name {
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
}
.wa-status {
  color: rgba(255,255,255,0.75);
  font-size: 0.73rem;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
}
.wa-dot {
  width: 7px;
  height: 7px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.wa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.wa-close:hover { color: white; }

/* Body / burbuja */
.wa-body {
  background: #F0F4FF;
  padding: 16px 14px 12px;
}
.wa-bubble {
  background: white;
  border-radius: 0 10px 10px 10px;
  padding: 10px 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #1B2E52;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 1px 3px rgba(27,46,82,0.08);
  max-width: 85%;
  border: 1px solid rgba(37,99,235,0.08);
}
.wa-bubble p { margin: 0 0 4px; }
.wa-bubble p:last-of-type { margin-bottom: 4px; }
.wa-time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: #93c5fd;
  margin-top: 4px;
}

/* Campo de texto + botón enviar */
.wa-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #F0F4FF;
  border-top: 1px solid rgba(37,99,235,0.10);
}
.wa-input {
  flex: 1;
  background: white;
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif;
  color: #1B2E52;
  outline: none;
  box-shadow: 0 1px 3px rgba(27,46,82,0.06);
}
.wa-input::placeholder { color: #94a3b8; }
.wa-send-btn {
  width: 36px;
  height: 36px;
  background: #2563EB;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.wa-send-btn:hover {
  background: #1d4ed8;
  transform: scale(1.08);
}
.wa-hint {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 12px 10px;
  background: #F0F4FF;
  margin: 0;
}

/* ---- Navbar shadow on scroll (handled by Alpine) ---- */
header {
  transition: box-shadow 0.3s ease;
}

/* ---- Input focus ring color ---- */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ---- bg-navy/8 helper (Tailwind CDN doesn't support arbitrary opacity like this) ---- */
.bg-navy\/8 {
  background-color: rgba(27, 46, 82, 0.08);
}

/* ---- Boxes background (isometric grid) ---- */
.boxes-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.boxes-wrap {
  position: absolute;
  /* Transformación isométrica igual al componente original */
  transform: translate(-40%, -60%) skewX(-48deg) skewY(14deg) scale(0.675);
  left: 50%;
  top: 50%;
  display: flex;
  pointer-events: none;
}

@media (max-width: 767px) {
  .boxes-wrap {
    /* En móvil recentramos: menos desplazamiento lateral, escala reducida */
    transform: translate(-50%, -50%) skewX(-48deg) skewY(14deg) scale(0.38);
    left: 50%;
    top: 50%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .boxes-wrap {
    /* Tablet: escala intermedia */
    transform: translate(-42%, -55%) skewX(-48deg) skewY(14deg) scale(0.52);
  }
}
.boxes-row {
  width: 64px;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.boxes-cell {
  width: 64px;
  height: 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  pointer-events: all;
  transition: background-color 1.5s ease;
  cursor: default;
}
/* SVG + en intersecciones */
.boxes-cell-plus {
  position: absolute;
  top: -8px;
  left: -11px;
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.08);
  pointer-events: none;
}

/* ---- Estadísticas ---- */
.stat-card {
  transition: background 0.3s ease;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: #2563EB;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.stat-card:hover {
  background: rgba(37, 99, 235, 0.08) !important;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover .stat-icon {
  background: rgba(37, 99, 235, 0.28);
  transform: translateY(-3px) scale(1.08);
}
.stat-num {
  transition: color 0.3s ease;
  line-height: 1;
}
.stat-card:hover .stat-num {
  color: #93c5fd;
}

/* ---- Footer: íconos sociales ---- */
.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}
.footer-social-icon:hover {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Service Cards (sin efectos 21st.dev) ---- */
.card-light {
  background: #ffffff;
  border: 1px solid rgba(27,46,82,0.10);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(27,46,82,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-light:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(27,46,82,0.14); }

.card-dark {
  background: #1B2E52;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-dark:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

.card-body { padding: 1.75rem 1.5rem 1.25rem; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon-light { background: rgba(37,99,235,0.10); color: #2563EB; }
.card-icon-dark  { background: rgba(37,99,235,0.25); color: #93c5fd; }

.card-badge {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px;
}
.card-badge-light { background: rgba(37,99,235,0.08); color: #2563EB; border: 1px solid rgba(37,99,235,0.18); }
.card-badge-dark  { background: rgba(37,99,235,0.28); color: #93c5fd; border: 1px solid rgba(37,99,235,0.40); }

.card-features { padding: 1rem 1.5rem 1.25rem; }
.card-features-light { background: rgba(248,249,251,0.80); border-top: 1px solid rgba(37,99,235,0.08); }
.card-features-dark  { background: rgba(15,25,45,0.55);    border-top: 1px solid rgba(255,255,255,0.07); }

.card-feat {
  display: flex; align-items: center;
  gap: 10px; padding: 5px 0;
  font-size: 0.84rem; color: #374151;
}
.card-dark .card-feat { color: #cbd5e1; }

.card-check { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; }

/* ---- Client logo slider (infinite) ---- */
.client-slider-wrap {
  position: relative;
  overflow: hidden;
  /* top/bottom separator lines */
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}

.client-overflow {
  overflow: hidden;
  width: 100%;
}

.client-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: client-scroll 30s linear infinite;
}
.client-track:hover {
  animation-play-state: paused;
}

@keyframes client-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: brightness(0.9);
}
.client-logo-item:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.client-logo-svg {
  height: 64px;
  width: auto;
  max-width: 260px;
}

/* Progressive blur fade — left & right */
.client-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 2;
}
.client-fade-l {
  left: 0;
  background: linear-gradient(to right, #1B2E52 0%, transparent 100%);
}
.client-fade-r {
  right: 0;
  background: linear-gradient(to left, #1B2E52 0%, transparent 100%);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */


/* Hero: texto más pequeño en móvil */
@media (max-width: 640px) {
  .slide-title {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
  }
  .slide-sub {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
}


/* WhatsApp widget en móvil */
@media (max-width: 768px) {
  .whatsapp-widget {
    bottom: 18px;
    right: 14px;
  }
  .wa-float-wrap {
    width: 54px;
    height: 54px;
  }
  .wa-popup {
    width: calc(100vw - 28px);
    max-width: 320px;
  }
}

/* Navbar: reducir padding en móvil */
@media (max-width: 640px) {
  header .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- AOS override for faster feel ---- */
[data-aos] {
  transition-duration: 600ms !important;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
  min-height: 100vh;
  touch-action: pan-y;
}

/* Slides */
.slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slide text animations — se disparan cuando el slide tiene la clase active */
.slide .slide-tag {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.slide .slide-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}
.slide .slide-sub {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.slide .slide-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
}

.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-sub,
.slide.active .slide-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Dots */
.dot {
  cursor: pointer;
  border: none;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.dot.active {
  width: 2rem;
  background-color: white;
}
.dot:not(.active) {
  width: 0.5rem;
  background-color: rgba(255,255,255,0.4);
}

/* ============================================
   TICKER DE SERVICIOS
   ============================================ */
.ticker-track {
  animation: ticker 30s linear infinite;
  width: max-content;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}
