/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cuerpo de la página */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
}

/* Header */
header {
    background-color: black;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 35px;
    
}

/* el h2 y "productos" */

h2{
    text-align: center;
    color: #333;
}

.text_productos p {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}




header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}



/* Main */
main {
    padding: 20px;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* Botones (opcional para productos o carrito) */
button {
    padding: 8px 15px;
    background-color: #1E90FF;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 15px;
}

.texto_agregar{
    font-weight: bold;
}



button:hover {
    background-color: #69B5FF
}



/* Contenedor de productos */
.productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-left:12px;
}

/* Tarjeta de cada producto */
.producto {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 350px;
    text-align: center;
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.producto h3 {
    color: black;
    margin-bottom: 5px;
    font-size: 18px;
}

.producto p {
    margin-bottom: 10px;
    font-weight: bold;
}

.producto button {
    width: 100%;
}

.precio p{
    color: #8E8E8E
}




/* Imágenes en el carrito */
.img_carrito {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

/* Tabla del carrito */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* Contenedor de tarjetas del carrito */
.carrito_productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Cada tarjeta de producto */
.card_producto {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
}

/* Imagen del producto */
.card_producto img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Controles de cantidad */
.cantidad {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cantidad button {
    padding: 3px 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Total alineado a la derecha */
.total_carrito {
    text-align: right;
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
}







/* Estilos específicos para el login */
.login-container {
    max-width: 350px;
    margin: 80px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #2980b9;
}

.login-container .error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
