/* Estilos Generales */
:root {
    --primary-color: #00aaff;
    --secondary-color: #007bff;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted-color: #a0a0a0;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header y Navegación */
header {
    background-color: var(--surface-color);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted-color);
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}


/* Banner Slider */
.banner-container {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: none;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.banner-nav:hover {
    background-color: var(--primary-color);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Sección de Productos */
.product-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.product-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    padding: 1rem 1rem 0.5rem;
}

.product-card p {
    font-size: 1rem;
    color: var(--text-muted-color);
    padding: 0 1rem 1rem;
    flex-grow: 1;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 1rem 1rem;
    text-align: right;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.buy-button:hover {
    opacity: 0.9;
}

/* Carrito Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px; /* Oculto fuera de la pantalla */
    width: 380px;
    height: 100%;
    background-color: var(--surface-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.4s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0; /* Visible en la pantalla */
}

.cart-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-content h2 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--text-muted-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.close-cart {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted-color);
    cursor: pointer;
}

#cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.cart-item-info {
    flex-grow: 1;
    margin-left: 1rem;
}

.cart-item-info h4 {
    font-size: 1rem;
    color: var(--text-color);
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.remove-item {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
    background: none;
    border: none;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-muted-color);
    text-align: right;
    font-size: 1.2rem;
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    border-radius: 5px;
}
/* Estilo del contenedor del WhatsApp */
.whatsapp-container {
  position: fixed;           
  bottom: 20px;             
  right: 20px;               
  z-index: 1000;
  opacity: 1;               
  transition: opacity 0.5s;  
}

/* Estilo de la imagen */
.whatsapp-container img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.whatsapp-container img:hover {
  transform: scale(1.1);
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background-color: var(--surface-color);
    border-top: 1px solid #333;
    color: var(--text-muted-color);
}
.redes-sociales {
    text-align: center;
    margin-top: 20px; 
}
.redes-sociales a{
    display: inline-block;
    margin: 0 10px;
}
.icono-redes {
    position: relative;
    width: 20px;  
    height: 20px;
    transition: transform 0.3s ease-in-out;    
}
.redes-sociales img:hover {
    transform: scale(1.2); 
}
@media (max-width: 600px) {

    section {
        flex-direction: column;
        align-items: center;
    }
}