/**
 * Estilos para el Carrusel de Reseñas de Reinpe.
 */

.reinpe-reviews-carousel-wrapper {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.tes-viewport {
  overflow: hidden;
  width: 100%;
}

.tes-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.tes-card {
  flex-shrink: 0;
  background: #f7f9fc;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.tes-card:hover {
  transform: translateY(-2px);
}

.tes-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tes-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.tes-service {
  font-size: 11px;
  font-weight: 700;
  color: #0065fe;
  background: #e8f0ff;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}

.tes-q {
  color: #3d4a63;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  font-style: italic;
}

.tes-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.tes-av {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.tes-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tes-name {
  font-weight: 700;
  color: #0c1830;
  font-size: 14px;
  line-height: 1.3;
}

.tes-role {
  font-size: 12px;
  color: #7a8499;
  margin-top: 3px;
  line-height: 1.3;
}

.tes-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}

.tes-dot {
  all: unset !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 100px !important;
  background: #dde3ef !important;
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(.22, 1, .36, 1) !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.tes-dot.active {
  width: 28px !important;
  background: #0065fe !important;
}

.tes-dot:hover:not(.active) {
  background: #b0bcd4 !important;
}

/* Botones de Navegación */
.tes-btns {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tes-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background-color: #f7f9fc !important;
  border: 1px solid #e4e9f2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  color: #0c1830 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  outline: none !important;
}

.tes-btn:hover {
  background-color: #0065fe !important;
  border-color: #0065fe !important;
  color: #ffffff !important;
}

.tes-btn svg {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  flex-shrink: 0 !important;
}

/* Orden por defecto del carrusel */
.tes-btns {
  order: 1 !important;
}
.tes-viewport {
  order: 2 !important;
}
.tes-dots {
  order: 3 !important;
}

/* Posiciones de las Flechas */
.reinpe-arrows-pos-top_left .tes-btns {
  order: 1 !important;
  justify-content: flex-start !important;
}
.reinpe-arrows-pos-top_center .tes-btns {
  order: 1 !important;
  justify-content: center !important;
}
.reinpe-arrows-pos-top_right .tes-btns {
  order: 1 !important;
  justify-content: flex-end !important;
}

.reinpe-arrows-pos-bottom_left .tes-btns {
  order: 3 !important;
  justify-content: flex-start !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}
.reinpe-arrows-pos-bottom_left .tes-dots {
  order: 4 !important;
}

.reinpe-arrows-pos-bottom_center .tes-btns {
  order: 3 !important;
  justify-content: center !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}
.reinpe-arrows-pos-bottom_center .tes-dots {
  order: 4 !important;
}

.reinpe-arrows-pos-bottom_right .tes-btns {
  order: 3 !important;
  justify-content: flex-end !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}
.reinpe-arrows-pos-bottom_right .tes-dots {
  order: 4 !important;
}



/* ============================================================
   Navegación por arrastre (swipe con el dedo, o con el ratón)
   ============================================================ */

/* El navegador se queda con el gesto vertical, que es el scroll de la página,
   y nos cede el horizontal. Sin esto, arrastrar de lado en el móvil movería la
   página entera y el carrusel no se enteraría del gesto. */
.tes-viewport {
  touch-action: pan-y;
}

/* El cursor de agarre solo cuando hay algo que arrastrar. */
.tes-viewport.tes-arrastrable {
  cursor: grab;
}

.tes-viewport.tes-arrastrando {
  cursor: grabbing;
  /* El movimiento tiene que seguir al dedo sin retardo: la transición estorba
     mientras se arrastra y vuelve al soltar. */
  user-select: none;
}

.tes-viewport.tes-arrastrando .tes-track {
  transition: none;
}

/* Arrastrar una imagen o seleccionar texto se comería el gesto. */
.tes-card img {
  -webkit-user-drag: none;
  user-drag: none;
}

.tes-viewport.tes-arrastrando .tes-card,
.tes-viewport.tes-arrastrando .tes-card * {
  user-select: none;
}

/* Con un puntero grueso (dedo) no hay cursor que mostrar. */
@media (hover: none) {
  .tes-viewport.tes-arrastrable {
    cursor: auto;
  }
}
