
/* Reset de márgenes y padding para todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primario: #D3CCE3;
    --color-secundario: #E9E4F0;
    --color-producto-texto: #2f2128;
    --fondo-transparente: rgba(20, 30, 48, 0.6);
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
  }
  
  .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
  }
  
  .lang-btn.active {
    background: #7737e5;
    font-weight: bold;
  }

.line-break {
    display: block;
    line-height: 1.2;
  }
  
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
  
@keyframes brillo {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
    100% {
        filter: brightness(1);
    }
}



body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
    z-index: -1;
}

/* Estilos generales del body */
body {
    background-image: url("img/fondo_tienda.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "Darumadrop One", serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 1;
    font-display: swap;
    position: relative;
    padding-bottom: 50px; /* Espaciado al final de la página */
}


.header-container {
    display: flex;
    position: relative;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    /* Espacio entre los elementos */
    max-width: 1100px;
    padding-top: 20px;
    margin: auto;
}

.welcome-center{
    max-width: 400px;
    z-index: 1;
    margin: 0 20px;   
    filter: drop-shadow(0 0 10px #c77dff)
    drop-shadow(0 0 30px #9b5de5);}

.left-lantern{
    left: 0;
}
.right-lantern{
    right: 0;
}

.left-lantern,
.right-lantern {
    width: 300px;
    height: auto;
    z-index: 2;
    top: 0;
    position : absolute;
}

.left-lantern,
.right-lantern {
    animation: brillo 2s infinite alternate ease-in-out;
}

/* Títulos principales */
h1,
h2 {
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primario);
}

p {
    color: var(--color-secundario);
    font-size: 1em;
    
}
  
/* Estilo de la navegación */
#navigator {
    flex: 1; /* Ocupa una proporción menor */
    max-width: 200px; /* Ancho máximo */
    background: var(--fondo-transparente);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--sombra);
    outline: 2px solid #781ff4;
}

#navigator h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--color-primario);
}

#navigator ul {
    list-style-type: none;
}

#navigator ul li {
    margin-bottom: 10px;
}

#navigator a {
    text-decoration: none;
    text-decoration: underline; /* Subrayado por defecto */
    color: var(--color-secundario);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease, text-decoration 0.3s ease;
}

#navigator a:hover {
    color: #8e57f6b1;
    background-color: #fffdfd00;
    border-radius: 5px;
    padding: 5px 10px;
}
#navigator a:focus {
    outline: 2px solid #fff;
    background-color: #45335b;
}
/* Estilos para el contenedor principal */
#container {
    display: flex; /* Flexbox para alinear horizontalmente */
    flex-wrap: nowrap; /* Evita que los elementos se envuelvan */
    justify-content: space-between; /* Espaciado uniforme entre los elementos */
    align-items: flex-start; /* Alinea los elementos al inicio verticalmente */
    width: 100%;
    max-width: 1200px; /* Ancho máximo del contenedor */
    margin: 20px auto; /* Centrado horizontal */
    gap: 20px; /* Espaciado entre los elementos */
    margin-bottom: 50px; /* Espaciado al final de la página */
}

/* Contenido principal */
main {
    flex: 2; /* Ocupa más espacio que el nav y el sidebar */
    background: var(--fondo-transparente);
    border-radius: 12px;
    box-shadow: var(--sombra);
    padding: 20px;
    color: var(--color-primario);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    outline: 2px solid #781ff4;
}

#introduccion {
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f48fb1;
}

/* Barra lateral */
#sidebar {
    flex: 1; /* Ocupa una proporción menor */
    max-width: 250px; /* Ancho máximo */
    background: var(--fondo-transparente);
    border-radius: 12px;
    box-shadow: var(--sombra);
    padding: 15px;
    outline: 2px solid #781ff4;
}

/* Estilos para la categoria */

.categorias {
    display: flex;
    flex-direction: column; /* Alinea los botones verticalmente */
    gap: 15px; /* Espaciado entre los botones */
    margin-top: 20px;
}

.categorias button {
    background: linear-gradient(45deg, #6a0dad, #8e44ad); /* Gradiente de fondo */
    color: white; /* Texto blanco */
    border: none; /* Sin bordes */
    border-radius: 12px; /* Bordes redondeados */
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra inicial */
}

.categorias button:hover {
    transform: scale(1.05); /* Efecto de escala */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}

.categorias button:active {
    transform: scale(0.95); /* Efecto de presión */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra más pequeña */
}
/* Estilos para las tarjetas VGEN */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta el tamaño mínimo de las columnas */
    gap: 20px; /* Espaciado entre los productos */
    padding: 10px;
  }

  .producto-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra inicial */
  }
  
  .producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más intensa al pasar el mouse */
  }
  
  .vgen-preview {
    text-decoration: none;
    color: #333;
    display: block;
  }

  .vgen-image {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 200px; /* Altura fija para mantener consistencia */
    object-fit: cover; /* Ajusta la imagen sin distorsión */
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;  
    margin-bottom: 10px;
  }

  .vgen-image.loaded {
    animation: none;
    background: none;
  }
  
  .vgen-info {
    padding: 10px;
    text-align: left; /* Alinea el texto a la izquierda */
  }
  
  .vgen-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
  }
  
  .vgen-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
  }


@media (max-width: 667px) {
    #container {
        flex-direction: column;
    }
    #navigator, #sidebar {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .header-container {
        text-align: start;
        background-repeat: space;
    }
    .header_text {
        font-size: 30px; /* Ajusta el tamaño para móviles */
    }
    .contact-list {
        grid-template-columns: 1fr; /* Solo una columna en pantallas pequeñas */
    }

}
