.carousel_clients {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 10px 0;
}

.carousel_clients-track {
    display: flex;
    gap: 100px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    animation: scroll 100s linear infinite;
    width: max-content;
}


.slide {
    flex: 0 0 auto;
    width: 175px;
    height: 175px;
    max-width: 100%;
}

.clients-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    cursor: pointer;
    border: 3px solid transparent;
    transition: filter 0.3s ease-in-out, border 0.3s ease-in-out, border-radius 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 30%; /* Aplica radio al borde */
}

.clients-logo:hover,
.clients-logo.selected { 
    background-color: #f7e7e7; /* Fondo rojo suave */
    border: 3px solid #f3dcdc; /* Borde de 4px */
    border-radius: 20%; /* Mantiene el radio del borde */
    padding: 5px;
    box-shadow: 0 0 8px rgba(241, 209, 209, 1); /* Borde difuminado */
    filter: grayscale(0%);

}


/* Animación del carrusel */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Clase para pausar */
.paused {
    animation-play-state: paused !important;
}

/* Icono de pausa */
.pause-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    color: red;
    display: none;
  /*  animation:blink 1s infinite alternate; */
}

/* Botón de reanudar (aparece solo cuando está pausado) */
.resume-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);

    animation: blink 1s infinite alternate;
    transition: none; /* 🔥 evita conflicto */
    z-index: 99;

    width: 80px !important;
    height: 80px !important;


    min-width: 80px;   
    min-height: 80px;
    max-width: 80px;  
    max-height: 80px;

    flex: 0 0 80px;    /* 🔥 CLAVE si está en flex */

    border-radius: 50%;
    border: none;
    outline: none;
    padding: 0;

    background-color: #ff0000; /* rojo YouTube */
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Triángulo play */
.resume-button::before {
    content: '';
    width: 0;
    height: 0;

    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;

    margin-left: 4px;
}

/* Hover */
.resume-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #cc0000;
}

/* Efecto ripple (onda) */
.resume-button::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,0,0,0.5);
    animation: pulse 1.8s infinite;
}

@keyframes blink {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.5); 
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
/* Cambiar color de texto del icono a blanco */

/* Ocultar elementos */
.hidden {
    display: none;
}

/* Sección de detalles del cliente */
.client-detail-section {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #f1f1f1;
    border: 0.5px solid #bebebe;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-detail-container {
    display: flex;
    width: 100%;
    gap: 20px;
}

/* Columna 1: Logo */
.client-logo-container {
    width: 15%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  /*  background-color: #ec2526; */
}

.client-logo-container img {
    width: max-content;
    max-width: 80%;
    align-items: center;
    vertical-align: top;
}

/* Columna 2: Información */
.client-info-container {
    width: 45%;
    text-align: left;
 /*   background-color: #9c25ec; */

}

.client-info-container h3 {
    margin-bottom: 5px;
}

/* Columna 3: Testimonios */
.client-testimonials-container {
    width: 40%;
    text-align: left;
 /*   background-color: #25ec61; */

}

.client-testimonials-container h3 {
    margin-bottom: 5px;
}

.client-testimonial-text {
    font-size: 18px;
    font-style: italic;
    font-family: "Georgia", serif;
    color: #333;
}

.client-testimonial-text:not(:empty)::before {
    content: "“";
}

.client-testimonial-text:not(:empty)::after {
    content: "”";
}

/* Estilo para la persona que lo dijo */
.client-poc {
    font-weight: bold;
    font-size: 16px;
    text-align: right;
    padding: 0 20px 0; /* 0 arriba y abajo, 20px a la derecha */
    display: block;
    width: 100%;
}

/* Estilo para el título de la referencia (en itálica, no negrita) */
.client-title {
    font-style: italic; /* Estilo itálico */
    font-size: 15px;
    text-align: right;
    padding: 0 20px 0; /* 0 arriba y abajo, 20px a la derecha */
    display: block;
    width: 100%;
}

.carousel-tip {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    font-weight: normal;
    color: #333;
    background-color: rgb(250, 250, 216);
    padding: 15px;
    border: 0.5px solid #bebebe;
    margin-top: 20px;
    width: fit-content;
    box-shadow: 2px 2px 3px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: visible;
}

.carousel-tip::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent rgb(250, 250, 216) transparent;
    display: block;
    width: 0;
    height: 0;
} 

.hidden {
    display: none;
}

#client-detail-service ul {
    list-style-type: disc; /* Tipo de viñeta */
    margin-left: 20px; /* Agregar un margen izquierdo */
    padding: 0; /* Elimina el padding por defecto */
}

#client-detail-service li {
    font-size: 16px; /* Tamaño de fuente */
    line-height: 1.5; /* Espaciado entre líneas */
    padding-bottom: 0; /* Elimina el padding inferior */
}


/* ===============================
   1200px
=============================== */
@media (max-width: 1200px) {

  .carousel_clients-track {
    gap: 80px;
  }

  .resume-button {
    width: 75px !important;
    height: 75px !important;
  }

  .resume-button::after {
    width: 75px;
    height: 75px;
  }

  .resume-button::before {
    border-left: 18px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
}


/* ===============================
   1100px
=============================== */
@media (max-width: 1100px) {

  .carousel_clients-track {
    gap: 70px;
  }

  .resume-button {
    width: 70px !important;
    height: 70px !important;
  }

  .resume-button::after {
    width: 70px;
    height: 70px;
  }

  .resume-button::before {
    border-left: 16px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
}


/* ===============================
   900px
=============================== */
@media (max-width: 900px) {

  .carousel_clients-track {
    gap: 50px;
  }

  .slide {
    width: 150px;
    height: 150px;
  }

  .resume-button {
    width: 60px !important;
    height: 60px !important;
  }

  .resume-button::after {
    width: 60px;
    height: 60px;
  }

  .resume-button::before {
    border-left: 14px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
}


/* ===============================
   600px (mobile)
=============================== */
@media (max-width: 600px) {

  .carousel_clients-track {
    gap: 30px;
  }

  .slide {
    width: 120px;
    height: 120px;
  }

  .resume-button {
    width: 50px !important;
    height: 50px !important;
  }

  .resume-button::after {
    width: 50px;
    height: 50px;
  }

  .resume-button::before {
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 2px;
  }
}