body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #7c4dff 0%, #e53935 50%, #2196f3 100%);
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(124,77,255,0.10);
}

@media (max-width: 768px) {
  .container-baner .baner-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container-baner {
    padding: 0 12px;
  }
}

.container-baner .baner-image {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}


h2 {
    text-align: center;
    color: #7c4dff;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #e3f2fd;
}


.product-card {
    width: 95%;
    flex: 0 1 250px; /* ← ancho fijo */
    background: linear-gradient(120deg, #f8f9fa 70%, #e3f2fd 100%);
    border: 1px solid #7c4dff;
    border-radius: 14px;
    width: 250px;
    padding: 22px 16px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(33,150,243,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
}


.product-card:hover {
    box-shadow: 0 8px 32px rgba(229,57,53,0.18);
    border-color: #e53935;
    transform: translateY(-4px) scale(1.05);
}

.product-image img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}

.product-title {
    font-size: 1.18em;
    margin: 10px 0 6px 0;
    color: #e53935;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 4px #e3f2fd;
}

.product-specs {
    font-size: 0.98em;
    color: #2196f3;
    margin-bottom: 10px;
    text-align: center;
}

.product-price {
    font-weight: bold;
    color: #7c4dff;
    margin-bottom: 14px;
    font-size: 1.12em;
    text-shadow: 0 1px 4px #e3f2fd;
}

.add-to-cart {
    background: linear-gradient(90deg, #e53935 60%, #2196f3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.09);
    font-weight: 600;
    letter-spacing: 1px;
}

.add-to-cart:hover {
    background: linear-gradient(90deg, #7c4dff 60%, #e53935 100%);
    box-shadow: 0 4px 16px rgba(124,77,255,0.18);
}

#products-grid {
  display: flex;
  flex-wrap: nowrap; /* ← evita que se vayan hacia abajo */
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px;
}

#products-grid::-webkit-scrollbar-thumb {
  background-color: #a305ff;
  border-radius: 4px;
}

#products-grid::-webkit-scrollbar-track {
  background-color: #eee;
}

#products-grid::-webkit-scrollbar {
  height: 8px;
}

#products-grid::-webkit-scrollbar-thumb {
  background-color: #a305ff;
  border-radius: 4px;
}

#products-grid::-webkit-scrollbar-track {
  background-color: #eee;
}


#loadpage {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#loadpage.hidden {
  opacity: 0;
  pointer-events: none;
}


header {
    background: linear-gradient(90deg, #7c4dff 60%, #2196f3 100%);
    padding: 3px 0; /* Antes 10px, ahora más delgado */
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    list-style: none;
}


.container-baner {
    max-width: 1000px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
    border-radius: 9px;
    background-color: #ffffff50;
    align-items: center;
}

.container-baner img {
     width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(33,150,243,0.12);

}


.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 10px;
    padding-right: 30px; /* Opcional: separa de la orilla */
    list-style: none;

}

.social-icons li {
   list-style: none;

}

.social-icons li a {
    background-color:transparent; /* Fondo blanco semitransparente */
    border-radius: 10px;
    color:#ffffff;
    font-size: 2em;
    margin: 0 10px;
    display: inline-block;
    border: 3px solid rgba(255,255,255,0.3);
    transition: 0.5s;

}

.social-icons li a:hover{
    scale: 1.2;
    border-radius: 30px;
    background-color:rgb(0, 246, 251);
    color: #ffffff;
    box-shadow: 0 0 5px #94c0de, 0 0 25px #0094ff, 0 0 50px #0094ff, 0 0 200px #3a6e94;
    /*-webkit-box-reflect: below 0.5px linear-gradient(transparent, #0005);*/
}

.carousel-container {
    position: relative;
    width: 50%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 300px;
}

.banner-item {
    min-width: 100%;
    height: 100%;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0, 246, 251);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(76, 3, 115, 0.525);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #a305ff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(163, 5, 255, 0.8);
}

@media (max-width: 768px) {
    .carousel-container {
        width: 90%;
        max-width: 400px;
    }
    
    .carousel-inner {
        height: 200px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-arrow.left {
        left: 8px;
    }
    
    .carousel-arrow.right {
        right: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

#container-baners {
    display: block;
    margin-bottom: 30px;
}

.container-baner .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: transparent;
    position: relative;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}



.nav li {
    margin: 0 10px;
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    /*background-color: #4bdafa7c; /* Fondo blanco semitransparente */
    border-radius: 70px;

    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    
}


.nav-links a:hover {
    background-color: rgb(255, 0, 0); /* Color del fondo*/
    border-radius: 23px;
    color: #fff; /* color del texto*/
}

.search-container {
    margin-left: auto;
}

/* Estilos para user-profile en escritorio */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    color: #7c4dff; /* Mejor contraste */
    font-size: 0.95em; /* Más pequeño */
    font-weight: 500;
    text-shadow: none;
}  

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.605);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 102;
}

.user-profile:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
/* ===== ESTILOS BASE PARA ESCRITORIO ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(174, 130, 130, 0.827);
}

/* Contenedor de búsqueda en escritorio */
.search-container {
    display: flex;
    gap: 5px;
}

.search-container input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}

.search-container button {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Ocultar toggle en escritorio */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

@media (max-width: 768px) {
  #products-grid {
    flex-wrap: nowrap; /* ← mantiene scroll horizontal */
  }

  .product-card {
    flex: 0 0 200px; /* ← más estrecho en móviles */
  }
}

/* ===== ESTILOS PARA MÓVILES/TABLETS ===== */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        background: #bfbdbd93;
        position: absolute;
        top: 70px;
        right: 10px;
        width: 200px;
        border-radius: 8px;
        z-index: 100;
        padding: 15px 0;
        gap: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links ul li {
        width: 100%;
    }
    
    .nav-links ul a {
        display: block;
        padding: 10px 20px;
    }
    
    /* User profile en móvil */
    .user-profile {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        width: 100%;
    }
    
    .profile-header {
        width: 100%;
        padding: 10px 0;
    }
    
    /* Dropdown siempre visible en móvil */
    .dropdown-content {
        position: static;
        display: block !important;
        box-shadow: none;
        background: transparent;
        padding: 0;
        width: 100%;
    }
    
    .dropdown-content a {
        padding: 8px 0;
        border: none;
    }
    
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 32px;
        height: 32px;
        margin-left: auto;
        margin-right: 10px;
        z-index: 101;
    }
    
    .nav-toggle-label .icon-close {
        display: none;
    }
    
    .nav-toggle:checked + .nav-toggle-label .icon-menu {
        display: none;
    }
    
    .nav-toggle:checked + .nav-toggle-label .icon-close {
        display: inline;
    }
    
    .nav-toggle-label img {
        width: 32px;
        height: 32px;
        transition: transform 0.2s, filter 0.2s;
    }

    .nav-toggle-label img:hover {
        transform: scale(1.15);
        filter: brightness(1.7) contrast(1.2);
    }
}