/**
 * Ágora Transporte — Brand Override CSS
 * Paleta: Morado premium, Negro, Blanco, Grises suaves
 */

/* === VARIABLES DE MARCA === */
:root {
  --agora-purple:       #6B21A8;
  --agora-purple-dark:  #4C1270;
  --agora-purple-light: #9333EA;
  --agora-purple-soft:  #F3E8FF;
  --agora-black:        #0D0D0D;
  --agora-dark:         #181A1F;
  --agora-grey:         #626262;
  --agora-grey-light:   #F5F5F7;
  --agora-white:        #FFFFFF;
}

/* === OVERRIDE COLORES PRIMARIOS === */
.color-primary                        { color: var(--agora-purple) !important; }
.bg-primary                           { background-color: var(--agora-purple) !important; }
.bg-how-it-works                      { background-color: var(--agora-purple-dark) !important; }
.box-testimonials                     { background-color: var(--agora-purple) !important; }
.box-testimonials.bg-primary          { background-color: var(--agora-purple) !important; }
.bg-primary.box-testimonials          { background-color: var(--agora-purple) !important; }

/* Botón primario */
.btn.btn-primary {
  background-color: var(--agora-purple) !important;
  border-color:     var(--agora-purple) !important;
  color: #fff !important;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: var(--agora-purple-dark) !important;
  border-color:     var(--agora-purple-dark) !important;
}

/* Botón de búsqueda */
.btn.btn-search {
  background-color: var(--agora-purple) !important;
  border-color:     var(--agora-purple) !important;
}
.btn.btn-search:hover {
  background-color: var(--agora-purple-dark) !important;
}

/* Swiper bullets activos */
.swiper-pagination-bullet-active      { background: var(--agora-purple) !important; }

/* Acordeón */
.accordion-button:not(.collapsed)     { color: var(--agora-purple) !important; box-shadow: none !important; }
.accordion-button:focus               { box-shadow: 0 0 0 2px var(--agora-purple-soft) !important; }

/* Tags / badges */
.tags a                               { color: var(--agora-purple) !important; }

/* === LOGO === */
.header-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* === NAVEGACIÓN === */
.header.sticky-bar.stick .header-logo img {
  height: 44px;
}

/* === HERO BANNER === */
.box-banner-info {
  padding: 0 24px;
}
.box-banner-info .hero-tag {
  display: inline-block;
  background: rgba(107, 33, 168, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.box-banner-info h2 {
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.box-banner-info .hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.6;
}
.box-banner-info .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* === BOTÓN WHATSAPP HERO === */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fe475b;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(254,71,91,0.38);
}
.btn-whatsapp:hover {
  background: #e63b4f;
  transform: translateY(-2px);
  color: #fff !important;
}
.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* === BOTÓN COTIZAR (OUTLINE) HERO === */
.btn-cotizar-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.75);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cotizar-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* === BARRA DE COTIZACIÓN RÁPIDA === */
.box-quick-cta {
  background: var(--agora-black);
  border-top: 3px solid var(--agora-purple);
  padding: 20px 0;
}
.box-quick-cta .quick-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.box-quick-cta .quick-cta-text {
  flex: 1 1 300px;
}
.box-quick-cta .quick-cta-text h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.box-quick-cta .quick-cta-text p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0;
}
.box-quick-cta .quick-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === SECCIÓN NOSOTROS === */
.section-agora-about .about-badge {
  display: inline-block;
  background: var(--agora-purple-soft);
  color: var(--agora-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section-agora-about .feature-item {
  display: flex;
  Gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-agora-about .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--agora-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-agora-about .feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--agora-purple);
}
.section-agora-about .feature-text h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--agora-dark);
  margin: 0 0 2px 0;
}
.section-agora-about .feature-text p {
  font-size: 14px;
  color: var(--agora-grey);
  margin: 0;
}

/* === TARJETAS DE SERVICIO === */
.cardService .cardInfo {
  background: linear-gradient(to top, rgba(76, 18, 112, 0.97) 0%, rgba(76, 18, 112, 0.75) 30%, rgba(76, 18, 112, 0.1) 60%, transparent 100%);
}
.cardService .cardLink.btn-arrow-up {
  border-color: rgba(255,255,255,0.5) !important;
}
.cardService .cardImage {
  overflow: hidden;
}
.cardService .cardImage img {
  width: 100%;
  min-height: 320px;
  height: 320px;
  object-fit: cover;
}
.cardService .cardTitle {
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cardService .cardDesc {
  min-height: 84px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Make inline SVG icons in benefit cards render consistently */
.cardIconTitleDesc .cardIcon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  margin: 0 auto 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.8) 0%, rgba(243, 232, 255, 0.4) 100%) !important;
  position: relative;
  z-index: 10 !important;
}

.cardIconTitleDesc .cardIcon svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  stroke: #5B27A1 !important;
  z-index: 11 !important;
  position: relative;
}

.cardIconTitleDesc .cardIcon img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

@media (max-width: 1199.98px) {
  .cardService .cardImage img {
    min-height: 290px;
    height: 290px;
  }
}

@media (max-width: 767.98px) {
  .cardService .cardImage img {
    min-height: 260px;
    height: 260px;
  }
}

/* === TARJETAS DE FLOTA === */
.cardFleet {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cardFleet .cardInfo {
  min-height: 170px;
}
.cardFleet .fleet-card-title {
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cardFleet .fleet-card-desc {
  min-height: 66px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#flota .box-slide-fleet {
  padding-left: 0 !important;
}
#flota .swiper-group-4-fleet .swiper-slide {
  height: auto;
}
.cardFleet:hover {
  box-shadow: 0 8px 40px rgba(107,33,168,0.18);
}

/* === SECCIÓN CÓMO FUNCIONA === */
.list-how li .line-white {
  background: rgba(255,255,255,0.3);
}
.list-how li.active .line-white {
  background: #fff;
}
.bg-how-it-works .list-how li h4,
.bg-how-it-works .list-how li p {
  color: #fff !important;
  opacity: 0.88;
}
.bg-how-it-works .list-how li.active h4,
.bg-how-it-works .list-how li.active p {
  opacity: 1;
}

/* === STATS / NÚMEROS === */
.bg-showcase {
  background: linear-gradient(135deg, var(--agora-black) 0%, var(--agora-purple-dark) 100%) !important;
  background-image: none !important;
  background-color: var(--agora-black) !important;
}

/* === FAQ === */
.bg-faqs .color-brand-1 {
  color: var(--agora-dark) !important;
}

/* === SECCIÓN CONTACTO PREMIUM === */
.section-contacto {
  background:
    linear-gradient(rgba(245,245,247,0.93), rgba(245,245,247,0.93)),
    url(../imgs/agora/bg-contact.jpg) center/cover no-repeat;
  padding: 100px 0;
}
.section-contacto .contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}
.section-contacto .contact-cta-card {
  background: linear-gradient(135deg, var(--agora-purple-dark) 0%, var(--agora-purple-light) 100%);
  border-radius: 16px;
  padding: 48px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-contacto .contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.section-contacto .contact-info-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-contacto .contact-info-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke-width: 2.5;
}
.section-contacto .contact-info-text h6 {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 2px 0;
}
.section-contacto .contact-info-text a,
.section-contacto .contact-info-text p {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-decoration: none;
}
.section-contacto .contact-info-text a:hover {
  color: rgba(255,255,255,0.8);
}

/* Formulario */
.section-contacto .form-control {
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 0.2s;
}
.section-contacto .form-control:focus {
  border-color: var(--agora-purple);
  box-shadow: 0 0 0 3px var(--agora-purple-soft);
}
.section-contacto label {
  font-size: 13px;
  font-weight: 600;
  color: var(--agora-dark);
  margin-bottom: 6px;
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fe475b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 22px 14px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(254,71,91,0.42);
  animation: wpp-pulse 2.5s infinite;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.whatsapp-float:hover {
  background: #e63b4f;
  color: #fff;
  transform: scale(1.05);
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.whatsapp-float .wpp-label {
  white-space: nowrap;
}
@keyframes wpp-pulse {
  0%   { box-shadow: 0 4px 24px rgba(254,71,91,0.42); }
  50%  { box-shadow: 0 4px 40px rgba(254,71,91,0.62), 0 0 0 8px rgba(254,71,91,0.14); }
  100% { box-shadow: 0 4px 24px rgba(254,71,91,0.42); }
}

/* Ocultar label en móvil pequeño */
@media (max-width: 480px) {
  .whatsapp-float .wpp-label { display: none; }
  .whatsapp-float { padding: 15px; border-radius: 50%; }
}

/* === REMOVER SECCIONES QUE NO APLICAN === */
.bg-download { display: none !important; }

/* === TIPOGRAFÍA PREMIUM === */
.heading-hero {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

/* === SECTION TÍTULOS CON LÍNEA === */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--agora-purple);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-label span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--agora-purple);
}

/* === SECCION NUESTRA DIFERENCIA === */
.section-agora-difference {
  background: linear-gradient(180deg, #fff 0%, #fbfafc 100%);
  padding: 72px 0 78px;
  margin: 0;
  overflow: hidden;
}

.agora-difference-container {
  max-width: 1160px;
}

.agora-difference-heading {
  margin-bottom: 28px;
}

.section-agora-difference .section-label {
  margin-bottom: 10px;
}

.section-agora-difference h2 {
  margin-bottom: 0;
}

.agora-difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.agora-difference-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  min-height: 178px;
  padding: 28px 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 33, 168, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(13, 13, 13, 0.045);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.agora-difference-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(107, 33, 168, 0.86), rgba(254, 71, 91, 0.78));
  opacity: 0.7;
  transition: opacity 240ms ease;
}

.agora-difference-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 232, 255, 0.62) 0%, rgba(243, 232, 255, 0) 70%);
  pointer-events: none;
}

.agora-difference-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 71, 91, 0.22);
  box-shadow: 0 18px 42px rgba(76, 18, 112, 0.11);
}

.agora-difference-card:hover::before {
  opacity: 1;
}

.agora-difference-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  color: var(--agora-purple);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(107, 33, 168, 0.24), rgba(254, 71, 91, 0.24)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(107, 33, 168, 0.09);
  transition: color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.agora-difference-card:hover .agora-difference-icon {
  color: #fe475b;
  transform: scale(1.03);
  box-shadow: 0 12px 26px rgba(254, 71, 91, 0.13);
}

.agora-difference-icon img,
.agora-difference-icon svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.agora-difference-copy {
  position: relative;
  z-index: 1;
}

.agora-difference-copy h3 {
  margin: 0 0 8px;
  color: var(--agora-dark);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.agora-difference-copy p {
  margin: 0;
  color: #555965;
  font-size: 15px;
  line-height: 1.62;
}

@media (prefers-reduced-motion: reduce) {
  .agora-difference-card,
  .agora-difference-card::before,
  .agora-difference-icon {
    transition: none;
  }

  .agora-difference-card:hover,
  .agora-difference-card:hover .agora-difference-icon {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .section-agora-difference {
    padding: 60px 0 66px;
  }

  .agora-difference-grid {
    gap: 20px;
  }

  .agora-difference-card {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .section-agora-difference {
    padding: 48px 0 54px;
  }

  .agora-difference-heading {
    margin-bottom: 22px;
  }

  .agora-difference-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agora-difference-card {
    min-height: 0;
    padding: 22px;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .agora-difference-card {
    grid-template-columns: 1fr;
  }

  .agora-difference-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
  }
}

/* === RESPONSIVO MÓVIL === */
@media (max-width: 767px) {
  .box-quick-cta .quick-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .box-quick-cta .quick-cta-actions {
    justify-content: center;
    width: 100%;
  }
  .box-quick-cta .quick-cta-actions .btn-whatsapp,
  .box-quick-cta .quick-cta-actions .btn-cotizar-outline {
    width: 100%;
    max-width: 320px;
  }
  .section-contacto .contact-card,
  .section-contacto .contact-cta-card {
    padding: 32px 24px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn-whatsapp,
  .hero-actions .btn-cotizar-outline {
    width: 100%;
    max-width: 320px;
  }
  .cardFleet .cardImage img {
    max-height: 140px;
    object-fit: contain;
  }
  .cardFleet .cardInfo,
  .cardFleet .fleet-card-title,
  .cardFleet .fleet-card-desc {
    min-height: 0;
  }
  .section-contacto .contact-info-text a,
  .section-contacto .contact-info-text p {
    word-break: break-word;
  }
}
