@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@300;400;500;900&display=swap");
:root{
    --header-color1:repeating-linear-gradient(-45deg, #0d89db 0 , #0d89db 60% , #fff 5% ,#fff );
}
/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos del body */
body {
   /* background-color: #e4e7eb ;*/
    font-family: 'Roboto', sans-serif;
}

/* Estilos del header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  /*  background: var(--header-color1); /*repeating-linear-gradient(-45deg, var(--header-color1) 0 , var(--header-color1) 60% , #fff 5% ,#fff );*/
    box-shadow: 5px 5px 10px; 
    border-radius: 10px;
    
}
/* Fondo del header con diseño */
.header-bg {
   /* position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-color1); /*repeating-linear-gradient(-45deg, #0d89db 0 , #0d89db 60% , #fff 5% ,#fff );*/
    box-shadow: 5px 5px 10px; 
    border-radius: 10px;
    
}

/* Estilo del logo */
.logo img {
    width: 135px;

}

/* Estilos del menú */
nav {
    display: flex;
    align-items: center;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
/*animacion menu*/
    position: relative;
    animation-name: menu;
    animation-duration: 2s;
}
@keyframes menu{
    0%   {left:0px; top:-200px;}
    25%  {left:0px; top:0px;}
}
/*fin animacion menu*/
.menu-links li a {
    text-decoration: none;
   
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.menu-links li a:hover {
    color: #cfdad7;
    border-bottom: 3px solid #cfdad7;
}

/* Estilos del menú toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: black;
    border-radius: 4px;
}
/*estilo del carrito de compras en el header*/
/* Estilo del ícono del carrito */
.cart-icon {
    position: relative;
    margin-left: 20px;
}

.cart-icon img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff6b6b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/*fin estilo del carrito en el header*/
/* Contenedor del slider */
.slider-container {
    position: relative;
    width: 98%;
    max-width: 1920px; /* Ajusta según lo necesites */
    height: auto;
    margin: 20px auto 0; /* Espaciado con el header */
    overflow: hidden;
    border-radius: 10px; /* Borde redondeado */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Slider */
.slider {
    display: flex;
  /* transition: transform 0.5s ease-in-out;*/
 
    width: 100%;
}
/* Slide */
.slide {
    min-width: 100%;
    height: auto; /* Ajusta esta altura según lo que necesites */
    box-sizing: border-box;
    position: relative;
    /*añadido recien*/
    
    /*animation: fadeIn 1s forwards;*/
   
}
@keyframes fadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}
.slide.active {
   
    animation: fadeIn 5s forwards;
}
.slide:not(.active) {
    
    animation: fadeOut 5s forwards;
}


/* Imágenes y videos */
.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Asegura que se ajuste sin deformarse */
    display: block;
}

/* Flechas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}

.arrow.prev {
    left: 10px;
}

.arrow.next {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Sección de productos */
.products-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* Asegura que esté encima del slider */
    margin-top: -86px; /* Ajusta según la altura del slider */
    padding: 50px 20px;
    /*background-color: rgba(255, 255, 255, 0.9);  Fondo ligeramente transparente */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.8s ease-in-out;/*añadido recien*/
}

.product-card {
    background-color: #0d89db;
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 30%; /* Ajusta el ancho de los bloques */
    transform: translateY(50px); /* Inicia ligeramente debajo */
    opacity: 1;/*ocultar inicialmente*/
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out,border-radius 0.8s ease-in-out;/*recien agregado el border radius*/
}

/*agregado recien
/* Forma circular para el segundo y tercer slider */
.products-section.circular .product-card {
    width: 243px;
    height: 243px;
    opacity: 0;
    transform: translateY(50px);
    border-radius: 50%; /* Cambia a circular */
    transition: transform 0.8s ease opacity 0.5s ease, border-radius 0.8s ease;
}

/* Muestra los bloques con animación */
.products-section.active .product-card {
    transform: translateY(0); /* Vuelve a su posición original */

    opacity: 1; /* Aparece */
    
}
/*fin agregado recien*/
.product-card h3 {
    font-size: 33px;
    margin-bottom: 20px;
    
}

.product-card p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.product-card .btn {
    padding: 10px 20px;
    background-color: white;
    color: #0d89db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-card .btn:hover {
    background-color: #cfdad7;
}

/* Animación para los productos */
.products-section .product-card {
    animation: slideUp 5s forwards;
}

.products-section .product-card:nth-child(1) {
    animation-delay: 0.2s;
}

.products-section .product-card:nth-child(2) {
    animation-delay: 0.4s;
}

.products-section .product-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animación de subida */
@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/*fin seccion productos*/
/*seccion Nuestras Marcas*/
/* Sección de marcas */

.brands-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9; /* Fondo suave */
}

.brands-section h2 {
    font-size: 2rem;
    color: #0d89db;
    margin-bottom: 30px;
}

.brands-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las marcas se ajusten automáticamente */
    justify-content: center;
    gap: 20px;
}

.brand-card {
    width: 150px; /* Ajusta el tamaño según tus logos */
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Asegura que los logos no se deformen */
}

.brand-card:hover {
    transform: scale(1.1); /* Efecto de zoom suave */
}

/* Estilos del footer */
.footer {
    background-color: #f1f1f1;
    padding: 20px 0;
    color: #333;
    font-family: Arial, sans-serif;
    text-align: left;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 150px;
    margin-right: 20px;
}

.footer-description {
    flex: 1;
}

.footer-description p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.footer-addresses {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap; /* Asegura que en pantallas pequeñas los items se ajusten */
}

.address {
    font-size: 0.9rem;
    margin-right: 20px;
    width: 30%;
    text-align: left;
}

.address i {
    color: #0d89db;
    margin-right: 10px;
}

.address p {
    margin: 5px 0;
}

.address a {
    color: #0d89db;
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-facebook {
    font-size: 1.5rem;
    color: #0d89db;
    margin-left: 10px;
}

/* Estilo para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-addresses {
        flex-direction: column;
        margin-top: 20px;
        align-items: center;
    }

    .address {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    .footer-logo img {
        margin-bottom: 10px;
    }
}
/* Contact Page */
/* Ajustes generales */
.contact-page {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 98%;
    margin: 0 auto;
    padding: 2rem;
    height: 300;
    margin: 2rem auto 2rem auto;
    border-radius: 10px;
    background-color: #003f8a;
}

/* Formulario de contacto */
.contact-form {
    flex: 1 1 48%;
    min-width: 300px;
    max-width: 450px;
    height: 600px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   
}

.contact-form h2 {
    margin-bottom: 1rem;
    color: #005baa;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form .form-group {
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.75rem;
    background-color: #005baa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #003f8a;
}

/* Mapa */
.contact-map {
    flex: 1 1 60%;
    min-width: 250px;
    height: 600px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}


@media (min-width: 768px) {
    .contact-page {
        flex-direction: row;
        align-items: flex-start;
        
    }
  
}

@media (max-width: 767px) {
    .contact-page {
        flex-direction: column;  
    }
   
}

/*fin page contact*/


/* Responsividad */
@media screen and (max-width: 768px) {
  /*cambio de color del header oara dispositivos moviles*/
    header{
        background-color: #fff;
    }
    .header-bg{
        background: none;
        background-color: #fff;
    }
    .menu-links {
       display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 95px;
        right: 0px;
        width: 100%;
        height: 30vh;
        background-color: #0d89db;
        border-radius: 8px;
        padding: 50px;
        align-items: center;
        max-height: 400px;
      
    
        
    }

    .menu-links.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    /*responsive slider*/
   
    .slide {
        height: 230px; /* Reduce la altura en pantallas pequeñas */
    }
    .product-card {
        width: 100%; /* Una tarjeta por fila en pantallas pequeñas */
    }
   
   
 /*fin responsive slider*/
}
/* fin responsividad*/
@media screen and (max-width: 1024px) {
    .slide {
        height: 320px; /* Ajuste de altura para pantallas medianas */
    }
    .product-card {
        width: 100%; /* Dos tarjetas por fila en pantallas medianas */
        margin-bottom: 20px;
        
    }
    .products-section{
        margin-top: -80px
    }
}
@media screen and (max-width:481px) {
    .product-card{
        width: 100%;
        height: 32vh;
    
    }
    .product-card h3{
        padding: 30px;
        
    }
   
}
@media screen and (max-width: 480px) {
    .slide {
      
        height: 150px; /* Altura más pequeña para dispositivos móviles */
    }
    .products-section {
        flex-direction: column; /* Asegúrate de que las tarjetas estén en columna */
        align-items: center; /* Centra las tarjetas */
        margin-top: -62px
    }
    .product-card {
        width: 90%; /* Ocupa casi todo el ancho de la pantalla */
        padding: 15px; /* Reduce el espacio interno */
        font-size: 0.9rem; /* Reduce el tamaño del texto */
    }
    .product-card h3 {
        font-size: 1.2rem; /* Ajusta el tamaño del título */
    }
    .product-card p {
        font-size: 0.8rem; /* Ajusta el tamaño del párrafo */
    }
}

@media screen and (max-width: 460.33px) {
    .slide {
       
        height: 143px; /* Altura más pequeña para dispositivos móviles */
    }
    .products-section{
        margin-top: -40px;
    }
  
}
/*estilo para el slider de nuestros productos*/



main {
  position: relative;
  width: min(90rem, 90%);
  margin: 0 auto;
  min-height: 100vh;
  column-gap: 3rem;
 padding-block: min(20vh, 3rem);
}

.bg {
  position: fixed;
  top: -4rem;
  left: -12rem;
  z-index: -1;
  opacity: 0;
}

.bg2 {
  position: fixed;
  bottom: -2rem;
  right: -3rem;
  z-index: -1;
  width: 9.375rem;
  opacity: 0;
}

main > div span {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  color: #717171;
}

main > div h1 {
  text-transform: capitalize;
  letter-spacing: 0.8px;
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(3.4375rem, 3.25rem + 0.75vw, 4rem);
  background-color: #0d89db;
  background-image: linear-gradient(45deg, #0d89db, #0d89db);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

main > div hr {
  display: block;
  background: #005baa;
  height: 0.25rem;
  width: 6.25rem;
  border: none;
  margin: 1.125rem 0 1.875rem 0;
}

main > div p {
  line-height: 1.6;
}

main a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  color: #717171;
  font-weight: 500;
  background: #fff;
  border-radius: 3.125rem;
  transition: 0.3s ease-in-out;
}

main > div > a {
  border: 2px solid #c2c2c2;
  margin-top: 2.188rem;
  padding: 0.625rem 1.875rem;
}

main > div > a:hover {
  border: 0.125rem solid #005baa;
  color: #005baa;
}

.swiper {
  width: 100%;
  padding-top: 3.125rem;
  
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
  background: #fff;
}

.swiper-pagination {
  bottom: 1.25rem !important;
}

.swiper-slide {
  width: 18.75rem;
  height: 28.125rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: self-start;
}

.swiper-slide h2 {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 0.625rem;
  padding: 0 0 0 1.563rem;
  text-transform: uppercase;
}

.swiper-slide p {
  color: #dadada;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  padding: 0 1.563rem;
  line-height: 1.6;
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swiper-slide a {
  margin: 1.25rem 1.563rem 3.438rem 1.563rem;
  padding: 0.438em 1.875rem;
  font-size: 0.9rem;
}

.swiper-slide a:hover {
  color: #005baa;
}

.swiper-slide div {
  display: none;
  opacity: 0;
  padding-bottom: 0.625rem;
}

.swiper-slide-active div {
  display: block;
  opacity: 1;
}

.swiper-slide--one {
    background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://alcagroup.com.bo/assets/img/marcas-slider-ci1.jpg") no-repeat 50% 50%/cover;
  /*background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://images.unsplash.com/photo-1628944682084-831f35256163?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80") no-repeat 50% 50%/cover;*/
    border-radius: 15px;
}

.swiper-slide--two {
    background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://alcagroup.com.bo/assets/img/marcas-slider-act2.jpg") no-repeat 50% 50%/cover;
 /* background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://images.unsplash.com/photo-1515309025403-4b0184873cef?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=735&q=80") no-repeat 50% 50%/cover;*/
    border-radius: 15px;
}

.swiper-slide--three {
  background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://alcagroup.com.bo/assets/img/marcas-slider-tak3.jpg") no-repeat 50% 50%/cover;
  border-radius: 15px;
}

.swiper-slide--four {
  background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://alcagroup.com.bo/assets/img/marcas-slider-ign4.jpg") no-repeat 50% 50%/cover;
  border-radius: 15px;
}

.swiper-slide--five {
  background: linear-gradient(to top, #0f2027, rgba(32, 58, 67, 0), rgba(44, 83, 100, 0)), url("https://alcagroup.com.bo/assets/img/slider-energizer.jpg") no-repeat 50% 50%/cover;
  border-radius: 15px;
}

.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

@media screen and (min-width: 48rem) {
  main {
    display: flex;
    align-items: center;
  }
  .bg,
.bg2 {
    opacity: 0.1;
  }
}
@media screen and (min-width: 93.75rem) {
  .swiper {
    width: 85%;
  }
  .swiper-slide{
    height: 35rem;
  }
}
@media screen and (min-width: 96.75) {
    
    .swiper{
        width: 80%;
        height: 70vh;;
    }
    
}
/*estilo carrito.php*/

/* Estilos para el icono del carrito en el header */
header nav ul li a img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

header nav ul li a .cantidad-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    padding: 3px 6px;
}

/* Estilos para la tabla del carrito */
.tabla-carrito {
    width: 90%;
    border-collapse: collapse;
    margin: 80px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tabla-carrito th, .tabla-carrito td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabla-carrito th {
    background-color: #007bff;
    color: white;
    font-size: 16px;
}

.tabla-carrito td img {
    width: 50px;
}

.input-cantidad {
    width: 50px;
}

.btn-actualizar, .btn-eliminar, .btn-proceder {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin-right: 5px;
}
.btn-actulizar:hover,
.btn-eliminar:hover {
    opacity: 0.8;
}

.cart_texto{
    margin: 3rem auto ;
    text-align: center;
}
.total-pedido {
    font-weight: bold;
}


/*estilo catalogo.php*/


/* Título de categoría */
.categoria-titulo {
    font-size: 24px;
    margin: 20px 0;
    color: #0d89db;
    text-align: left;
}

/* Contenedor grid para productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Tarjeta de producto */
.producto-card {
    /*border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.2s;
    text-align: center;
    background-color: #fff;
    opacity: 0,5;
}
.producto-card:hover {
    transform: scale(1.03);
   
}
.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}
.producto-info {
    padding: 10px;
}
.producto-nombre {
    font-size: 18px;
    margin: 5px 0;
    color: #333;
}
.producto-precio {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

/* Botón para agregar al carrito */
.btn-añadir {
    display: inline-block;
    background: #0d89db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}
.btn-añadir:hover {
    background: #e55d00;
}

/* Responsive */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}


