/* Hero video column, client logos */
.hero__v6 .hero-video-wrap {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}
.hero__v6 .hero-visual-inner {
  position: relative;
  z-index: 2;
  min-height: 420px;
  pointer-events: none;
}
.hero__v6 .hero-visual-inner .floating-card {
  pointer-events: auto;
}

.hero-client-logos {
  margin-top: 2rem;
}
.hero-client-logos h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-logos-static {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-logos-static {
    display: grid;
  }
  .hero-logos-marquee-wrap {
    display: none;
  }
}
.hero-logos-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-logos-marquee {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: logos-marquee 28s linear infinite;
  align-items: center;
}
@keyframes logos-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-logo-item {
  flex-shrink: 0;
  height: 36px;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.hero-logo-item:hover {
  opacity: 1;
}

.fc-team-role {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  line-height: 1.35;
  max-width: 13rem;
  margin-left: auto;
  margin-right: auto;
}

/* Team (nosotros) — una fila; scroll horizontal en pantallas chicas */
.team-grid-redesign {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem 0.85rem;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding: 0.25rem 0.75rem 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.team-grid-redesign::-webkit-scrollbar {
  height: 6px;
}
.team-grid-redesign::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
.team-card-r {
  text-align: center;
  background: var(--light-bg);
  padding: 1rem 0.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
  width: 118px;
  min-width: 118px;
  scroll-snap-align: center;
}
.team-card-r h4.h6 {
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 0.35rem !important;
}
.team-card-r .fc-team-role {
  font-size: 0.68rem !important;
  max-width: 7.5rem;
}
.team-card-r .text-muted.small {
  font-size: 0.68rem !important;
}
.team-avatar-r {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #457b9d, #1d3557);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Fotos reales: cara centrada en el círculo (object-position por retrato) */
.team-avatar-r--photo {
  padding: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  background: #f7f7f8;
}
.team-avatar-r--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transform-origin: center center;
}

.team-avatar-r--emanuel img {
  object-position: 50% 22%;
}
/* Dawn, Xiahui, Daisy: retratos nuevos con encuadre uniforme → sin overrides */
/* Angel & Luna: crop apretado arriba → un poco menos de zoom y fondo claro visible */
.team-avatar-r--angel img {
  object-position: 50% 30%;
  transform: scale(0.9);
}
.team-avatar-r--luna img {
  object-position: 50% 32%;
  transform: scale(0.9);
}
.team-avatar-r--luis img {
  object-position: 50% 32%;
}

@media (min-width: 1200px) {
  .team-grid-redesign {
    justify-content: center;
    overflow-x: visible;
    padding-left: 0;
    padding-right: 0;
  }
  .team-card-r {
    width: 122px;
    min-width: 122px;
  }
}

@media (max-width: 576px) {
  .team-card-r {
    width: 108px;
    min-width: 108px;
    padding: 0.85rem 0.35rem;
  }
  .team-avatar-r {
    width: 88px;
    height: 88px;
  }
  .team-avatar-r--photo img {
    transform: scale(1.02);
  }
  .team-avatar-r--angel img {
    transform: scale(0.86);
  }
  .team-avatar-r--luna img {
    transform: scale(0.86);
  }
}

/* Testimonials redesign */
.testimonial-card-r {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}
.testimonial-header-r {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.avatar-placeholder-r {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #2563eb);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.client-info-r h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.client-info-r .stars-r {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 14px;
}
.country-logo-r {
  height: 32px;
  width: auto;
  margin-left: auto;
  opacity: 0.85;
}
.testimonial-card-r blockquote {
  font-size: 15px;
  margin: 0 0 1rem;
  color: var(--gray-dark);
  line-height: 1.65;
}
.testimonial-metrics-r {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-color);
}
.testimonial-metrics-r span {
  background: var(--light-bg);
  padding: 6px 12px;
  border-radius: 999px;
}
.testimonials-metrics-animated {
  margin-top: 2rem;
}
@media (min-width: 992px) {
  .testimonials-swiper-redesign .swiper-pagination {
    display: none !important;
  }
}
.metric-animate-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 4px;
}

/* Video lazy iframe */
.video-container-r .video-thumbnail-r {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-thumbnail-r img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumbnail-r .play-button-r {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.25s;
}
.video-thumbnail-r:hover .play-button-r {
  background: rgba(0, 0, 0, 0.5);
}
.play-button-r svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.video-duration-r {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.video-container-r iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}
.video-container-r video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
  background: #0b0d12;
}

/* Miniatura con imagen promocional (assets/images/*.png) */
.video-thumbnail-r.fc-video-poster-promo {
  background-color: #0b0d12;
}
.video-thumbnail-r.fc-video-poster-promo img {
  pointer-events: none;
  object-fit: cover;
  /* Evita que el recorte vertical (16:9) corte los títulos arriba; prioriza la parte superior en todas las piezas promocionales */
  object-position: center top;
}
