/* ====================================
   ClientesD.css (Versión final)
   ==================================== */

/* —— Variables de color —— */
:root {
    --camera-pattern: url('../Resources/seccionCotizar2.png');
    --gold-effect: linear-gradient(45deg, #e0b700 0%, #ffe000 50%, #e0b700 100%);
    --card-gradient: linear-gradient(
      145deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.845) 50%,
      rgba(3, 1, 47, 0.329) 100%
    );
    --arrow-bg: rgba(255, 255, 255, 0.85);
    --arrow-hover-bg: rgba(255, 255, 255, 0.4);
    --arrow-color: #004e92;
    --arrow-hover-color: #0c0909;
  }

  /* —— Contenedor principal —— */
  #clientes {
    padding: 2.5rem 0;
    background:
    linear-gradient(rgba(93, 92, 92, 0.9), rgba(1, 8, 87, 0.9)),
      var(--camera-pattern) center/cover no-repeat;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    transition: transform 0.3s ease;
    position: relative;
  }

  #clientes:hover {
    transform: translateY(-5px);
  }
  
  /* —— Título —— */
  .section-titleClientes {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #fff;
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.8),
      2px 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInScale 0.8s ease-in-out both;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .section-titleClientes::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 60%;
    height: 3px;
    background: var(--gold-effect);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  .section-titleClientes:hover {
    color: #ffd700;
    transform: scale(1.05);
  }

  .section-titleClientes:hover::after {
    transform: translateX(-50%) scaleX(1);
  }
  
  /* —— Descripción —— */
  #clientes p {
    max-width: 85%;
    margin: 0 auto 2rem;
    font-size: 18px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
  }

  #clientes p:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  .text-jus{
    text-align: justify;
  }

  .text-jus:hover{
    color:#ffffff;
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.8),
      2px 2px 6px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
  }
  
  /* —— Tarjeta de cliente —— */
  .cliente-card {
    width: 180%;
    max-width: none;
    height: 400px;
    margin: 0 auto;
    background: var(--card-gradient);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateX(-20%); /* Ajuste para centrar el 180% */
  }

.cliente-card img {
  max-height: 80%;    /* Que nunca supere el 80% de la altura de la tarjeta */
  max-width: 90%;     /* Opcional: que no se salga horizontalmente */
  object-fit: contain; /* Mantiene proporción */
  border-radius: 8px;
  transition: transform 0.4s ease, filter 0.3s ease;
}
  /* —— Bootstrap Carousel —— */
  #clientesCarousel .carousel-inner {
    overflow: hidden;
  }
  #clientesCarousel .carousel-item {
    padding: 2rem 0;
  }
  #clientesCarousel .row {
    justify-content: center;
  }
  #clientesCarousel .carousel-item .col-12 {
    max-width: 300px;
  }
  
  /* —— Controles personalizados —— */
  #clientesCarousel .carousel-control-prev,
  #clientesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--arrow-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--arrow-color);
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease,
                transform 0.3s ease;
  }
  #clientesCarousel .carousel-control-prev:hover,
  #clientesCarousel .carousel-control-next:hover {
    background: var(--arrow-hover-bg);
    color: var(--arrow-hover-color);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
  }
  /* Ocultar icono por defecto y usar pseudo-elementos */
  #clientesCarousel .carousel-control-prev-icon,
  #clientesCarousel .carousel-control-next-icon {
    display: none;
  }
  #clientesCarousel .carousel-control-prev::after {
    content: "\276E"; /* ❮ */
    font-size: 1.5rem;
  }
  #clientesCarousel .carousel-control-next::after {
    content: "\276F"; /* ❯ */
    font-size: 1.5rem;
  }
  
  /* —— Animación de título —— */
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* —— Ajustes responsivos —— */
  @media (max-width: 768px) {
    #clientes {
      padding: 2rem 0.5rem;
    }
    .section-titleClientes {
      font-size: 1.75rem;
    }
    #clientes p {
      font-size: 0.95rem;
      padding: 0.75rem 1rem;
    }
  }
  