.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

html { scroll-behavior: smooth; }

.js-counter { font-variant-numeric: tabular-nums; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: #25D366;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45), 0 4px 8px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 30px rgba(37, 211, 102, .55), 0 6px 12px rgba(0,0,0,.18); }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  opacity: .6;
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float { width: 3.25rem; height: 3.25rem; right: 1rem; bottom: 1rem; }
  .wa-float svg { width: 1.6rem; height: 1.6rem; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wa-pulse { animation: none !important; }
}

/* Card hover lift para equipos */
.card-lift { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; cursor: pointer; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.1); border-color: #86d4d1; }

/* Pista visual: "Ver detalle" en footer + overlay en imagen */
[data-lb-img] > div:first-child { position: relative; overflow: hidden; }
[data-lb-img] > div:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(98,203,201,.14);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
[data-lb-img]:hover > div:first-child::after { opacity: 1; }
[data-lb-img] > div:last-child::after {
  content: 'Ver detalle →';
  display: block;
  margin-top: .875rem;
  padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
  font-size: .8125rem;
  font-weight: 600;
  color: #62cbc9;
  letter-spacing: .01em;
  transition: color .2s ease;
}
[data-lb-img]:hover > div:last-child::after { color: #3fa8a5; }

/* Marcas: grayscale → color en hover */
.brand-logo { filter: grayscale(1) contrast(.95); opacity: .7; transition: filter .35s ease, opacity .35s ease, transform .35s ease; }
.brand-logo:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* Header compactado al scrollear */
header.sticky { transition: box-shadow .25s ease; }
header.sticky.header-shrunk { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
header.sticky.header-shrunk > div:first-child { height: 4rem; }

/* Focus rings accesibles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #62cbc9;
  outline-offset: 3px;
  border-radius: 8px;
}

/* LIGHTBOX */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lb.hidden { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(15,15,20,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lb-fade .2s ease; }
.lb-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 340px;
  animation: lb-pop .28s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.lb-image-wrap { background: linear-gradient(135deg, #f0faf9, #ffffff); display: flex; align-items: center; justify-content: center; padding: 2rem; min-height: 320px; }
.lb-img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.lb-info { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; background: white; }
.lb-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: #62cbc9; }
.lb-title { font-size: 1.9rem; font-weight: 800; color: #1f4745; line-height: 1.1; margin: 0; }
.lb-subtitle { font-size: 1rem; color: #4d4d4d; margin: 0; }
.lb-sep { height: 1px; background: #e5e7eb; margin: .5rem 0; }
.lb-cta {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: #25D366;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.lb-cta:hover { background: #1fb855; transform: translateY(-1px); }
.lb-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.25rem; color: #3fa8a5; border: 1px solid #b2e5e3; border-radius: 9999px; font-weight: 600; text-decoration: none; font-size: .875rem; transition: background .2s ease; }
.lb-secondary:hover { background: #f0faf9; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.95);
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
  color: #2d706e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .15s ease, background .2s ease;
  font-size: 1.5rem;
  font-weight: 300;
}
.lb-close { top: .75rem; right: .75rem; font-size: 1.75rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover { transform: scale(1.1); background: white; }
.lb-next:hover { transform: translateY(-50%) scale(1.1); background: white; }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); background: white; }

@media (max-width: 768px) {
  .lb-content { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  .lb-image-wrap { min-height: 260px; padding: 1.5rem; }
  .lb-info { padding: 1.5rem; }
  .lb-title { font-size: 1.4rem; }
  .lb-prev, .lb-next { top: calc(260px + 2rem); }
  .lb-prev { top: calc(130px); transform: none; }
  .lb-next { top: calc(130px); transform: none; right: .75rem; }
}

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
