/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9;
    color: #333;
}

 .login-container {
            margin-top: 80px;
            max-width: 400px;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

h1{
    font-size:2.3em;
    font-weight:bolder;
}
h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Cabecera */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #366F99;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header button {
    background-color: #0C92C5;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

header button:hover {
    background-color: #0C92C5;
}

header button:focus {
    outline: none;
}

#carrito-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#carrito-buttons button {
    margin-right: 10px;
    background-color: #0C92C5; /* Igual al color de los otros botones */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#carrito-buttons button:hover {
    background-color: #366F99;
}

/* Productos - Cuadrícula de 4 columnas */
.productos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Define 4 columnas de igual ancho */
    gap: 20px; /* Espacio entre los productos */
    margin-top: 20px;
}

.producto {
    text-align: center;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.producto img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.producto p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.producto input[type="number"] {
    width: 50px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

/* Estilo para el botón "Agregar al carrito" */
button.agregar-carrito {
    background-color: #0C92C5; /* El mismo color que los otros botones */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 15px;
    width: 100%; /* El botón ocupará el 100% de la columna (ancho completo del contenedor) */
}

button.agregar-carrito:hover {
    background-color: #366F99;
}

/* Popup */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 2px solid #0044cc;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 80%;
    max-width: 400px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Botones del Popup */
#popup button {
    background-color: #0044cc;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#popup button:hover {
    background-color: #003399;
}

/* Formulario */
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #0044cc;
    outline: none;
}
#ventaChart {
    height: 600px !important;
}


/* Responsividad */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
    }

    .productos-container {
        grid-template-columns: repeat(2, 1fr); /* En pantallas pequeñas, se ajustan a 2 columnas */
    }

    .producto {
        margin: 10px 0;
    }

    .producto img {
        width: 120px;
        height: 120px;
    }
}