/* =========================================================
   Te Conectamos — Mejoras Fase 1
   Nuevos estilos para: Hero badges, beneficios cards, testimonios, soluciones destacadas
   ========================================================= */

/* ========== HERO SECTION MEJORADA ========== */

.hero-sub strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-trust-badges {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(31, 116, 208, 0.08);
  border: 1px solid rgba(31, 116, 208, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-trust-badges {
    gap: 0.8rem;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ========== HERO CTA BUTTONS ========== */

.btn-cta-primary {
  position: relative;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(31, 116, 208, 0.3);
}

.btn-cta-primary:hover {
  box-shadow: 0 8px 20px rgba(31, 116, 208, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  padding: 12px 22px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--text);
  color: white;
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .hero-cta {
    gap: 0.8rem;
  }

  .hero-cta .btn {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
}

/* ========== BENEFICIOS CON GRID ========== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.trust-card {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.trust-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.trust-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.metric {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-card {
    padding: 1.5rem;
  }

  .trust-icon {
    font-size: 2rem;
  }
}

/* ========== TESTIMONIOS ========== */

.testimonials {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 0;
  margin: 3rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  margin: 0;
  font-size: 0.95rem;
}

.author-title {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 0;
    margin: 2rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial {
    padding: 1.5rem;
  }
}

/* ========== SOLUCIONES CON JERARQUÍA ========== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-featured {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto 2rem;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .card-featured {
    grid-column: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-featured {
    grid-column: 1;
  }
}

/* ========== SECCIÓN TITLE ========== */

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  color: var(--text);
  margin-bottom: 3rem;
  text-align: center;
}

/* ========== ANIMACIONES REVEAL ========== */

@keyframes revealFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: revealFadeIn 0.6s ease-out forwards;
}

/* Stagger effect para múltiples elementos */
.trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-card:nth-child(2) { animation-delay: 0.2s; }
.trust-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial:nth-child(3) { animation-delay: 0.3s; }

/* ========== RESPONSIVE AJUSTES ========== */

@media (max-width: 640px) {
  .hero-trust-badges {
    margin: 1rem 0 1.5rem 0;
  }

  .badge {
    flex: 1;
    min-width: 150px;
  }

  .trust-grid {
    margin-top: 2rem;
    gap: 1rem;
  }

  .testimonials-grid {
    margin-top: 2rem;
  }
}
