/* Paleta de colores (Inspiración Tecnológica):
    Azul Eléctrico: #007bff
    Azul Oscuro: #0056b3
    Gris Plata: #f8f9fa
    Gris Acero: #6c757d
    Verde Menta: #28a745
    Blanco: #ffffff
*/

/* Estilos para el cuerpo de la página */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa; /* Gris Plata */
    color: #333;
}

/* Encabezado */
header {
    background: linear-gradient(to right, #0056b3, #007bff); /* Azul Oscuro a Eléctrico */
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #28a745; /* Verde Menta como acento */
    position: relative; 
}

/* Contenedor de productos */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
}

/* Estilo de cada producto */
.producto {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    width: 220px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Efecto al pasar el ratón */
.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Imágenes de los productos */
.producto img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
    background: #e9ecef;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Nombres de los productos */
.producto p {
    font-size: 1.15em;
    font-weight: 600;
    color: #0056b3;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #ffffff;
    margin: 8% auto;
    padding: 3rem;
    width: 450px;
    max-width: 90%;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column; 
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
}

.close:hover {
    color: #007bff;
}

/* Inputs y Textarea en Modales (para el modal-agregar) */
.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #0056b3;
}

/* Botones en Modales */
.modal-content button {
    background: #28a745; /* Verde Menta para el botón de Guardar */
    color: #ffffff;
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.modal-content button:hover {
    background: #1e7e34;
}

/* Estilos de Contenido del Modal de Introducción (El botón es azul) */
#intro-modal-content button {
    background: #007bff; /* Azul Eléctrico para el botón de Cerrar */
}
#intro-modal-content button:hover {
    background: #0056b3;
}


#intro-modal-content h2 {
    color: #0056b3;
    margin: 0;
    padding-bottom: 5px;
}

#intro-modal-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-top: 15px;
}

/* Títulos */
h1 {
    color: #ffffff;
    font-size: 2.5em;
}