/* =========================
   BASE ANIMATIONS
========================= */

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FADE VARIANTS
========================= */

/* Fade desde izquierda */
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade desde derecha */
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   SCALE EFFECT
========================= */

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   DELAYS (para stagger)
========================= */

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================
   HOVER MICRO-INTERACTIONS
========================= */

/* Cards */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Botones */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* =========================
   COUNTER STYLE (VISUAL)
========================= */

.counter {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

/* pequeño efecto cuando termina */
.counter.done {
  color: var(--primary);
}

/* =========================
   HERO SLIDER TRANSITION
========================= */

.hero-slide {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

/* =========================
   NAVBAR SMOOTH (opcional)
========================= */

.navbar {
  transition: all 0.3s ease;
}

/* =========================
   REDUCED MOTION (ACCESIBILIDAD)
========================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   TESTIMONIOS (3-UP)
========================= */

.testimonial-slider {
  position: relative;
  min-height: 220px; /* evita “saltos” */
}

/* GRUPO (slide) */
.testimonial-group {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-group.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* TARJETAS */
.testimonial-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* TEXTO MÁS GRANDE */
.testimonial-card p {
  font-size: 16px;       /* 👈 antes 14-15 */
  line-height: 1.6;
  margin-bottom: 10px;
}

/* META */
.testimonial-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* TAGS */
.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.tag.cliente { background: #2563eb; color: #fff; }
.tag.empresa { background: #059669; color: #fff; }
.tag.anonimo { background: #6b7280; color: #fff; }

.location {
  font-size: 13px;       /* 👈 un poco más grande */
  opacity: 0.7;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet: 2 por fila */
@media (max-width: 1024px) {
  .testimonial-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 por fila */
@media (max-width: 768px) {
  .testimonial-group {
    grid-template-columns: 1fr;
  }
}


.share-float:hover svg {
  transform: translateX(3px) rotate(-5deg);
  transition: 0.2s ease;
}