/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #2e3c63;
    color: #ffffff;
    height: 100vh; 
}



section {
    background: #2e3c63;
    padding: 100px;
    margin-bottom: 20px;
    height: auto;
    display: flex; 
    flex-direction: column; 
}




/* Estilo para el botón flotante */




#dark-mode-toggle {
    position: fixed;
    bottom: 100px; 
    right: 25px; 
    background: #3b4f86;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    
    /* Alineación del icono en el centro */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Estilo del pie de página */
footer {
    display: flex; 
    flex-direction: column; 
    text-align: center;
    padding: 20px;
    background: #2d3c67;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */



header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 20px;
    background: #2d3c67;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000; 
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%; 
}

.logo img {
    height: 50px; 
    margin-right: 20px; 
}

.title {
    font-size: 24px; 
    margin: 0; 
}

nav {
    display: flex; 
    justify-content: flex-end; 
}

#nav-list {
    display: flex; 
    list-style-type: none;
    margin: 0;
    padding: 10px;
}

#nav-list li {
    margin: 0 15px; 
}

#nav-list li a {
    text-decoration: none;
    color: #ffffff; 
    padding: 10px 20px;
    border-radius: 5px;
    background: #3b4f86;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav-list li a:hover {
    background: #4d6094;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}



/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */


/* Estilos para la sección de contacto */
#contacto {
    padding: 100px;
    background: #2e3c63;
}

#contacto-contenedor {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-top: 20px; 
}

#mapa, #formulario-contacto {
    width: 48%; 
    border-radius: 0px;
    background: #2d3c67;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
    transition: box-shadow 0.3s;
}

#mapa {
    height: 410px; 
    overflow: hidden; 
}

#iframe {
    width: 100%; 
    height: 100%; 
    border: 0;
}

#formulario-contacto {
    padding: 20px; 
}


#mapa:hover, 
#formulario-contacto:hover {
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}

/* Estilos para encabezados */
h2, h3 {
    margin-bottom: 10px; 
    text-align: center; 
}

/* Estilos para el formulario */
#FormEnviar {
    display: flex; 
    flex-direction: column; 
}

label {
    margin-bottom: 5px; 
}

input, textarea {
    border-radius: 8px; 
    border: 1px solid #ccc; 
    padding: 10px; 
    margin-bottom: 15px; 
    transition: border 0.3s; 
}

input:focus, textarea:focus {
    border-color: #888; /* Color del borde al enfocar */
}


#Enviar {
    border-radius: 5px; 
    background-color: #4CAF50;
    color: white; 
    padding: 10px 20px; 
    border: none; 
    cursor: pointer; 
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049; 
}



/* //////////////////////////////////////////////////////////////////////////////////////////////*/


/* Estilos para el botón flotante de WhatsApp */
#whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#whatsapp img {
    width: 40px;
    height: 40px;
    margin-top: 10px;
}

/* Estilos carrusel */
.container {
    position: relative;
    width: 380px;
    margin: 100px auto; 
    perspective: 1000px;
    height: 300px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

#carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotation 30s infinite linear;
    transition: transform 1s ease;
}

#carousel:hover {
    animation-play-state: paused;
}

#carousel figure {
    display: block;
    position: absolute;
    width: 190px;
    height: 224px;
    left: 0px;
    top: 0px;
    background: transparent;
    overflow: hidden;
}

#carousel figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#carousel img:hover {
    transform: scale(1.2);
}

/* Posiciones de las figuras en el carrusel */
#carousel figure:nth-child(1) { transform: rotateY(0deg) translateZ(288px); }
#carousel figure:nth-child(2) { transform: rotateY(40deg) translateZ(288px); }
#carousel figure:nth-child(3) { transform: rotateY(80deg) translateZ(288px); }
#carousel figure:nth-child(4) { transform: rotateY(120deg) translateZ(288px); }
#carousel figure:nth-child(5) { transform: rotateY(160deg) translateZ(288px); }
#carousel figure:nth-child(6) { transform: rotateY(200deg) translateZ(288px); }
#carousel figure:nth-child(7) { transform: rotateY(240deg) translateZ(288px); }
#carousel figure:nth-child(8) { transform: rotateY(280deg) translateZ(288px); }
#carousel figure:nth-child(9) { transform: rotateY(320deg) translateZ(288px); }

/* Animación para el giro automático */
@keyframes rotation {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Estilos para el botón "Ver más" */
#controls {
    position: absolute;
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#controls button {
    border: none;
    text-decoration: none;
    color: #ffffff; 
    padding: 10px 20px;
    border-radius: 5px;
    background: #3b4f86;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#controls button:hover {
    background: #4d6094;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}




/*///////////////////////////////////////////////////////////////////////////*/

/*Login*/


#formulario-Login {
    display: flex; 
    flex-direction: column;
    align-items: center; 

}

/* Estilos para encabezados */
h2, h3 {
    margin-bottom: 10px; 
    text-align: center; 
}

#LoginForm {
    display: flex; 
    flex-direction: column; 
    width: 400px; 
    height: 300px;
    padding: 20px; 
    border: 1px solid #344576;
    border-radius: 5px; 
    background: #2d3c67;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}
#RegistroForm {
    display: flex; 
    flex-direction: column; 
    width: 400px; 
    height: 300px;
    padding: 20px; 
    border: 1px solid #344576;
    border-radius: 5px; 
    background: #2d3c67;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}


label {
    margin-bottom: 5px; 
}

/* Estilos para el botón */

#Ingresar, #Registrarse, #Back{
    border-radius: 5px; 
    color: white; 
    padding: 10px 20px;
    border: none; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    margin: 5px;
}

#Ingresar {
    background-color: #4CAF50; 
}

#Registrarse, #Back {
    background-color: #0026ff;
}


button:hover {
    background-color: #45a049; 
}





/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */


/* Estilos para la sección de Productos */





/* Estilo para las imágenes dentro del carrito */
.cart-item-image {
    width: 150px; 
    height: 150px; 
    object-fit: cover;  
    border-radius: 8px;  
}





.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px;
}

.product-card {
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: #2e3c63;
    box-shadow: 20px 20px 60px #1a243d, -20px -20px 60px #344576;
}

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

.product-title {
    font-size: 16px; 
    margin: 10px 0;
}

.product-description {
    font-size: 14px; 
    min-height: 50px; 
    margin-bottom: 10px;
}


.product-actions {
    margin-top: auto; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    gap: 10px; 
}


.product-actions input {
    width: 150px; 
    text-align: center;

}

.product-actions button {
    border: none;
    text-decoration: none;
    color: #ffffff; 
    padding: 10px 60px;
    border-radius: 5px;
    background: #3b4f86;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.product-actions button:hover {
    background: #4d6094;
    box-shadow:  20px 20px 60px #263358,
                 -20px -20px 60px #344576;
}











.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px 60px; 
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
    display: none; 
    width: 400px;
    height: 200px;
    max-width: 80%; 
    max-height: 80%; 
}

.popup.show {
    display: block; 
}








/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */


/* Estilos para Tarjeta de compra */


  .cart-card {
            background: #1a243d;
            border-radius: 20px;
            box-shadow: 8px 8px 15px #0000001a, -8px -8px 15px #344576;
            padding: 20px;
            margin: 20px;
            text-align: center;
        }

        /* Estilo de los botones dentro de la tarjeta */
        .cart-card ul {
            list-style: none;
            padding: 0;
        }

        .cart-card ul li {
            display: inline-block;
            margin: 10px;
        }

        .cart-action-link {
            text-decoration: none;
            color: white;
            background-color: #4CAF50;
            padding: 10px 25px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        .cart-action-link:hover {
            background-color: #45a049;
        }

        /* Estilo de la tarjeta del artículo */
        .cart-item {
            margin: 10px 0;
            padding: 10px;
            background: #1a243d;

        }