/* ═══════════════════════════════════════════════════════════════
   GESAPROV — PREMIUM PLUS v1.0
   Capa adicional: text reveal, testimonios, clientes, hero stats,
   scroll parallax, micro-mockups.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   1. SPLIT TEXT — REVEAL LETTER BY LETTER
   ───────────────────────────────────────────────────────── */
.split-word {
  display: inline-block;
  white-space: nowrap;       /* la palabra NUNCA se parte */
}
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotateX(-40deg);
  transform-origin: 50% 100%;
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(var(--i) * 28ms);
  will-change: opacity, transform;
}
.split-text.visible .split-char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ─────────────────────────────────────────────────────────
   2. TYPING SUBTITLE
   ───────────────────────────────────────────────────────── */
.typing-text::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--color-cyan, #00C2FF);
  font-weight: 300;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

/* ─────────────────────────────────────────────────────────
   3. HERO MINI STATS STRIP
   ───────────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 28px;
  padding: 16px 22px;
  margin-top: 36px;
  background: rgba(7,26,51,0.55);
  border: 1px solid rgba(0,194,255,0.15);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.05);
  width: fit-content;
  max-width: 100%;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.hero-stat + .hero-stat {
  padding-left: 28px;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,194,255,0.4), transparent);
}
.hero-stat__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 30%, #00C2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.hero-stat__label {
  font-size: 0.75rem;
  color: rgba(200,212,224,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 14px 18px;
  }
  .hero-stat + .hero-stat { padding-left: 20px; }
  .hero-stat__num { font-size: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────
   4. CLIENT LOGOS BAND (mejorado)
   ───────────────────────────────────────────────────────── */
.clients-band {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(7,26,51,0.4), rgba(2,8,16,0.6));
  position: relative;
  overflow: hidden;
}
.clients-band__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-cyan, #00C2FF);
  margin-bottom: 32px;
}
.clients-track {
  display: flex;
  gap: 80px;
  align-items: center;
  white-space: nowrap;
  animation: clientsScroll 35s linear infinite;
  width: max-content;
}
.client-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(200,212,224,0.4);
  letter-spacing: -0.01em;
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.client-item:hover {
  color: rgba(255,255,255,0.9);
  transform: scale(1.05);
}
.client-item i {
  font-size: 1.6rem;
  color: rgba(0,194,255,0.7);
}
@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients-band::before,
.clients-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}
.clients-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-dark, #020810) 0%, transparent 100%);
}
.clients-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg-dark, #020810) 0%, transparent 100%);
}

/* ─────────────────────────────────────────────────────────
   5. TESTIMONIOS SECTION
   ───────────────────────────────────────────────────────── */
.testimonials {
  position: relative;
  overflow: hidden;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.testimonial-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  overflow: hidden;
  isolation: isolate;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,194,255,0.4);
  box-shadow: 0 20px 50px rgba(0,91,255,0.18),
              0 0 0 1px rgba(0,194,255,0.2);
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #005BFF, #00C2FF, #E8780A);
  border-radius: 20px 20px 0 0;
  opacity: 0.6;
}
.testimonial-card__quote-mark {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0,194,255,0.12);
  font-weight: 900;
  z-index: 0;
}
.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(220,228,238,0.92);
  font-style: italic;
  position: relative;
  z-index: 1;
  flex: 1;
}
.testimonial-card__rating {
  display: flex;
  gap: 4px;
  color: #FFD700;
  font-size: 0.875rem;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005BFF, #00C2FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,91,255,0.4);
}
.testimonial-card__name {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  line-height: 1.2;
}
.testimonial-card__role {
  font-size: 0.8125rem;
  color: rgba(200,212,224,0.6);
  margin-top: 2px;
}

@media (max-width: 992px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card:nth-child(3) { grid-column: 1 / -1; max-width: 540px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(3) { grid-column: auto; max-width: none; margin: 0; }
}

/* ─────────────────────────────────────────────────────────
   6. CERTIFICATIONS / TRUST BADGES
   ───────────────────────────────────────────────────────── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(220,228,238,0.85);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.trust-badge:hover {
  background: rgba(0,91,255,0.1);
  border-color: rgba(0,194,255,0.5);
  color: #fff;
  transform: translateY(-2px);
}
.trust-badge i {
  color: var(--color-cyan, #00C2FF);
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────
   7. SECTION DIVIDERS (gradient lines)
   ───────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,91,255,0.2)  30%,
    rgba(0,194,255,0.6) 50%,
    rgba(0,91,255,0.2)  70%,
    transparent 100%);
  margin: 0;
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-cyan, #00C2FF);
  box-shadow: 0 0 14px rgba(0,194,255,0.8);
}

/* ─────────────────────────────────────────────────────────
   8. PARALLAX LAYERS (depth on scroll)
   ───────────────────────────────────────────────────────── */
[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ─────────────────────────────────────────────────────────
   9. INTERACTIVE PRODUCT MINI-CARDS (in hero)
   ───────────────────────────────────────────────────────── */
.hero__products-strip {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(220,228,238,0.85);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;
}
.product-pill:hover {
  background: rgba(0,91,255,0.12);
  border-color: rgba(0,194,255,0.4);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.product-pill__icon {
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan, #00C2FF);
  font-size: 0.875rem;
}

/* ─────────────────────────────────────────────────────────
   10. ANIMATED SECTION ENTRY (zoom + fade)
   ───────────────────────────────────────────────────────── */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.94) translateY(40px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1),
              filter 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-zoom.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* ─────────────────────────────────────────────────────────
   11. GRADIENT TITLE for sections
   ───────────────────────────────────────────────────────── */
.section-title--gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #C8D4E0 50%, #00C2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────────────────────────────────────────────────────
   12. REDUCED MOTION
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .split-char,
  .reveal-zoom,
  .clients-track,
  .typing-text::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
