/* Ajustes finos que Tailwind (utilidades) no cubre directamente */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header con sombra al hacer scroll */
#site-header.is-scrolled {
  box-shadow: 0 4px 16px -8px rgba(22, 22, 22, 0.15);
}

/* Subrayado en los links del menú desktop */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #F8262F;
  transition: width 0.2s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Tarjetas de oferta: leve elevación al pasar el mouse */
.offer-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(74, 13, 18, 0.25);
}

#testimonial-content {
  transition: opacity 0.25s ease;
}

/* Aparición suave al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Carrusel infinito de fotos de clientes */
.client-marquee {
  overflow: hidden;
  display: flex;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.client-marquee-track {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  animation: client-scroll 50s linear infinite;
}
.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}
.client-photo {
  display: block;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(22, 22, 22, 0.16);
  transition: transform 0.2s ease;
}
.client-photo:hover {
  transform: translateY(-4px);
}
.client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .client-photo {
    width: 200px;
    height: 200px;
  }
}
@keyframes client-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 1rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .client-marquee-track {
    animation: none;
  }
}

/* Scrollbar más discreto (webkit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #161616;
  border-radius: 999px;
}
