/* Estilos específicos para la página de productos */

/* Products Hero */
.products-hero {
    position: relative;
    min-height: 600px;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    text-align: center;
}

.products-hero .container {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: 0;
    align-items: center;
}

.products-hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    width: 50%;
}

.products-hero .hero-content p, .products-hero .hero-content h1 {
    text-align: left;
    margin: 0;
}

.products-hero .hero-content  h1 {
    line-height: 1;
}

.products-hero .hero-content .btn {
    position: relative;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.products-hero h1,
.products-hero p {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

/* Product Card */
.product-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    font-size: var(--font-size-xs);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.sale {
    background-color: var(--color-accent-orange);
}

.product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: var(--spacing-md) var(--spacing-lg);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: var(--spacing-sm);
    background-color: rgba(0, 0, 0, 0.7);
    transition: bottom var(--transition-normal);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-card-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.product-actions button:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.product-info {
    margin-bottom: var(--spacing-sm);
}

.product-category {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-card:hover .product-title {
    color: var(--color-primary);
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin: 3rem 0;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    gap: var(--spacing-sm);
}

.info-card:hover {
    transform: translateY(-5px);
}

.header-info-card {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.5rem;
}

.info-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.info-card .fas {
    max-height: 16px;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    text-align: left;
}

.info-card .btn-outline {
    margin-top: 0;
}

.payment-methods {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.payment-methods li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-md);
}


/* LOGOS SLIDER */
.marcas-section {
    background-color: var(--color-primary-light);
    overflow: hidden;
}

.marcas-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--color-primary-light));
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-primary-light));
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-block;
    animation: 20000ms slide infinite linear;
}

/* Contenedor para cada imagen */
.logo-container {
    display: inline-block;
    width: 200px;
    height: 150px;
    margin: 0 20px;
    padding: 10px;
    vertical-align: middle;
    text-align: center;
}

.logos-slide img {
    height: 100%;
    max-width: 100%;
    /* filter: grayscale(100%);
    -webkit-filter: grayscale(100%); */
    object-fit: contain;
    vertical-align: middle;
    transition: all 0.3s ease;
    border-radius: 50%;
    margin: 0 auto;
}

@media (max-width: 768px) {

      .info-grid {
        grid-template-columns: repeat(1, 1fr);
        margin: var(--spacing-md) 0;
    }

    .logos {
      max-width: 280px;
      margin: 0 auto;
    }

    .logo-container {
        width: 240px;
        height: 120px;
        margin: 0 15px;
        padding: 8px;
    }

    .logo-container img {
      margin: 0 var(--spacing-md);
  }

    .payment-methods {
      flex-direction: column;
    }

    .logos:before,
    .logos:after {
        width: 100px;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .filters__wrapper {
        flex-direction: column;
    }

    .filters__search {
        min-width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-title {
        font-size: var(--font-size-lg);
    }
}


/* Estilos para el componente de testimonios */
.testimonios-container {
  display: flex;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

.testimonios-texto {
  flex: 1;
  min-width: 300px;
  padding-right: 20px;
}

.testimonios-titulo {
  color: #991B1A;
  margin-bottom: 20px;
  font-weight: 600;
}

.testimonios-descripcion {
  color: #5E5E5E;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.2rem;
  max-width: 600px;
}

.testimonios-autor {
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.testimonios-fecha {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Estilos para el carrusel de cards */
.testimonios-carousel {
  flex: 1;
  min-width: 300px;
  position: relative;
  min-height: 300px;
  aspect-ratio: 1 / 1;
  max-height: 300px;
}

.carousel-stage {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Estilos para los botones de navegación */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.0);
  z-index: 20;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0,0,0,0.0);
}

.nav-prev {
  left: 10px;
}

.nav-next {
  right: 10px;
}

.chevron {
  border: solid var(--color-primary);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 6px;
}

.chevron-left {
  transform: rotate(135deg);
  margin-left: 5px;
}

.chevron-right {
  transform: rotate(-45deg);
  margin-right: 5px;
}

/* Estilos de las tarjetas */
.carousel-card {
  position: absolute;
  width: 65%;
  height: auto;
  aspect-ratio: 1/1;
  max-width: 250px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Easing más suave */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.0);
  overflow: hidden;
  /* background-color: white; */
  transform-origin: center center;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Posiciones específicas con efectos 3D mejorados */
.center-card {
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  top: 0;
  z-index: 3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0);
}

.left-card {
  left: 5%;
  top: 10%;
  z-index: 2;
  transform: scale(0.85) translateX(0) translateZ(-50px);
  opacity: 0.8;
  filter: brightness(0.9);
}

.right-card {
  right: 5%;
  top: 10%;
  z-index: 1;
  transform: scale(0.85) translateX(0) translateZ(-50px);
  opacity: 0.8;
  filter: brightness(0.9);
}

/* Contenedor con perspectiva para efecto 3D */
.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Estilos para el badge de rating */
.rating-badge {
  position: absolute;
  bottom: 0;
  right: 5%;
  background-color: white;
  border-radius: 25px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.rating-badge.active {
  opacity: 1;
}

.rating-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: #fff5f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-star {
  color: #ff9d72;
  font-size: 1.125rem;
}

.rating-content {
  display: flex;
  flex-direction: column;
}

.rating-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #991B1A;
  line-height: 1;
}

.rating-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  margin-top: 2px;
}

.rating-role {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.2;
  margin-top: 1px;
  text-align: left;
}

.rating-text {
  font-size: 0.75rem;
  color: #4a5568;
  max-width: 150px;
}

.btn-container {
    display: flex;
    gap: 10px;
    min-width: 700px;
}

@media (max-width: 959px) {
    .btn-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
    min-width: 200px;
    }
    .testimonios-descripcion {
        font-size: 16px;
    }
}

/* Estilos responsivos */
@media (max-width: 768px) {

  .products-hero {
    padding: var(--spacing-lg);
  }

  .products-hero .container {
    flex-direction: column;
  }

  .products-hero .hero-content {
    width: 100%;
  }

  .testimonios-container {
    flex-direction: column;
  }
  
  .testimonios-texto {
    padding-right: 0;
  }

  .rating-badge {
    text-align: left;
    margin: 0 auto;
    bottom: 50px;
    left: 0;
  }

  .products-hero .hero-content p {
    font-size: var(--font-size-md);
  }
  
  .testimonios-carousel {
    min-height: 300px;
    margin-top: 2rem;
    margin-bottom: 0;
    position: relative;
  }
  
  .carousel-card {
    width: 60%;
    max-width: 200px;
  }
  
  /* Posiciones responsivas para las cards */
  .center-card, 
  .carousel-card[style*="left: 50%"] {
    left: 50% !important;
    top: 5% !important;
  }
  
  .left-card,
  .carousel-card[style*="left: 5%"] {
    left: 10% !important;
    top: 15% !important;
  }
  
  .right-card,
  .carousel-card[style*="right: 5%"] {
    right: 10% !important;
    top: 15% !important;
  }
  
  /* Colocar el badge de rating debajo */
  .rating-badge {
    position: absolute;
    z-index: 10;
    padding: 0.4rem 0.75rem;
    min-width: 180px;
    max-width: 200px;
    justify-content: flex-start;
  }

  .rating-circle {
    width: 1.875rem;
    height: 1.875rem;
  }
  
  .rating-star {
    font-size: 1rem;
  }
  
  .rating-number {
    font-size: 1.125rem;
  }
  
  .rating-text {
    font-size: 0.7rem;
  }

  .rating-name {
    font-size: 0.85rem;
  }
  
  .rating-role {
    font-size: 0.7rem;
  }

  .carousel-nav {
    width: 2.2rem;
    height: 2.2rem;
  }

  .chevron {
    padding: 5px;
  }
}


/* Ajustes específicos para móviles más pequeños */
@media (max-width: 480px) {
  .testimonios-carousel {
    min-height: 280px;
    margin-bottom: 0;
  }
  
  .carousel-card {
    width: 55%;
    max-width: 180px;
  }
  
  .center-card,
  .carousel-card[style*="left: 50%"] {
    left: 50% !important;
    top: 3% !important;
  }
  
  .left-card,
  .carousel-card[style*="left: 5%"] {
    left: 5% !important;
    top: 12% !important;
    transform: scale(0.8) translateX(0) translateZ(-50px) !important;
  }
  
  .right-card,
  .carousel-card[style*="right: 5%"] {
    right: 5% !important;
    top: 12% !important;
    transform: scale(0.8) translateX(0) translateZ(-50px) !important;
  }
  
}
  