/* ==========================================================================
   SOLUCIONES HOSPITALARIAS — SECCIÓN TRAYECTORIA Y CONFIANZA
   Versión: 6.0 (Mapa Matriz de Colombia, Rutas Animadas & Bloques Spring Pop)
   ========================================================================== */

.trust-section {
  position: relative;
  width: 100%;
  padding: clamp(3.5rem, 6vh, 5.5rem) 0;
  background: #FFFFFF;
  overflow: hidden;
  z-index: var(--z-base);
}

/* Nubes atmosféricas muy lentas y desenfocadas de fondo */
.trust-bg-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.trust-cloud-veil {
  position: absolute;
  top: 10%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(56, 182, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  animation: slow-cloud-drift 50s ease-in-out infinite alternate;
}

@keyframes slow-cloud-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5%, 3%, 0) scale(1.05); }
}

.trust-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

/* Encabezado */
.trust-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}

.trust-title {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.16;
  color: var(--color-brand-blue-deep);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.trust-subtitle {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 620px;
  margin: 0 auto;
}

/* Grid de Contenido (Dos bloques armonizados con idéntico diseño de tarjeta) */
.trust-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 3.5vw, 3rem);
  align-items: stretch;
  margin-bottom: clamp(3rem, 5vh, 4rem);
}

/* ==========================================================================
   TARJETAS FROSTED CON ANIMACIÓN SPRING AMPLIFICADA (Copia literal de Animación para bloques.mp4)
   ========================================================================== */
.trust-frosted-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: clamp(2rem, 3.5vw, 3rem);
  box-shadow: 0 28px 70px -15px rgba(0, 45, 110, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* Animación de apertura suave, fuerte y notable (Escala 0.65 -> 1.0 con Blur) */
  opacity: 0;
  transform: scale(0.68) translateY(55px);
  filter: blur(14px);
  transition: 
    opacity 1.35s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.35s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity, filter;
}

.trust-frosted-card.is-settled {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.trust-content-grid > .trust-frosted-card:nth-child(2) {
  transition-delay: 0.15s;
}

/* Bloque Izquierdo: Estadísticas y Trayectoria */
.stats-editorial-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.stats-label-top {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-cyan);
  letter-spacing: 0.16em;
  margin-bottom: -0.4rem;
}

/* 40+ formal en Montserrat Bold */
.stats-huge-num {
  font-family: var(--font-ui);
  font-size: clamp(5.2rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-brand-blue-deep);
  transition: transform 0.4s var(--ease-natural), color 0.4s var(--ease-natural);
}

.stats-label-bottom {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue);
  letter-spacing: 0.12em;
  margin-top: -0.2rem;
}

.stats-paragraph {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.trust-card-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.trust-metric-pill {
  background: rgba(0, 74, 173, 0.04);
  border: 1px solid rgba(0, 74, 173, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-metric-val {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand-blue);
  line-height: 1.1;
}

.trust-metric-lbl {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-card-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 74, 173, 0.04);
  border: 1px solid rgba(0, 74, 173, 0.09);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand-blue-deep);
}

.trust-reviews-link-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-brand-blue-deep);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-natural);
}

.trust-reviews-link-badge:hover {
  color: var(--color-brand-blue);
}

.trust-cert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-brand-cyan);
  box-shadow: 0 0 8px var(--color-brand-cyan);
}

/* ==========================================================================
   MAPA 3D RELIEVE DE COLOMBIA (Estilo Vanguardista & Animación mapa.mp4)
   ========================================================================== */
.trust-map-card {
  align-items: center;
  justify-content: center;
}

.map-relief-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 45, 110, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  background: #FFFFFF;
}

.colombia-relief-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-natural);
}

.trust-map-card:hover .colombia-relief-img {
  transform: scale(1.02);
}

.map-interactive-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Rutas y Trazadores de Tránsito de Colombia */
.map-colombia-route-base {
  stroke: #F59E0B;
  stroke-dasharray: 5 5;
  opacity: 0.75;
}

.map-colombia-route-flow {
  stroke: #FBBF24;
  stroke-dasharray: 24 140;
  stroke-dashoffset: 164;
  animation: colombiaFlow 3.6s linear infinite;
}

@keyframes colombiaFlow {
  0% { stroke-dashoffset: 164; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -164; opacity: 0; }
}

/* Waypoints / Nodos de Ciudades de Colombia */
.waypoint-glow {
  animation: waypointPulse 2.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes waypointPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.4); opacity: 0.65; }
}

.map-colombia-city-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  fill: #0F172A;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.9));
}

/* Nodo Sede Manizales */
.map-pulse-glow {
  transform-origin: 185px 235px;
  animation: pulseGlowManizales 3s ease-in-out infinite;
}

.map-pulse-ring {
  transform-origin: 185px 235px;
  animation: pulseRingManizales 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

@keyframes pulseGlowManizales {
  0%, 100% { transform: scale(1); opacity: 0.38; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes pulseRingManizales {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Pin Vehículo de Despacho Domiciliario en Ruta */
.map-delivery-vehicle-pin {
  animation: vehicleBob 3s ease-in-out infinite alternate;
}

@keyframes vehicleBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.map-location-info {
  margin-top: var(--space-3);
  text-align: center;
}

.location-address {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue-deep);
  margin-bottom: var(--space-1);
}

.location-coverage {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* Transición Editorial al Final */
.trust-footer-transition {
  text-align: center;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(0, 74, 173, 0.08);
  margin-top: var(--space-3);
}

.transition-lead {
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-blue-deep);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 992px) {
  .trust-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .stats-editorial-number {
    align-items: center;
    text-align: center;
  }
  .stats-paragraph {
    text-align: center;
  }
  .trust-card-footer-badge {
    margin: 0 auto;
  }
}
