/* === ESTILO GENERAL DEL FORMULARIO === */
form {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: Arial, Helvetica, sans-serif;
}

/* === TABLA DE CAMPOS SUPERIOR === */
form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

form table td {
    padding: 10px;
}

label {
    font-weight: bold;
    color: #333;
}

/* === INPUTS === */
input[type="text"],
input[type="number"],
input[type="url"] {
    width: 160px;
    padding: 7px;
    border: 1px solid #bbb;
    border-radius: 6px;
    transition: 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74,144,226,0.4);
}

/* === BOTÓN AGREGAR === */
input[type="button"] {
    margin-top: 10px;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

input[type="button"]:hover {
    background: #357ab7;
}

/* === TABLA DE PRODUCTOS === */
#Tablaproductos {
    margin-top: 20px;
    border-collapse: collapse;
    background: #fafafa;
    font-size: 15px;
}

#Tablaproductos thead tr {
    background: #4a90e2;
    color: white;
    text-align: center;
}

#Tablaproductos td,
#Tablaproductos thead tr,
#Tablaproductos tbody tr {
    padding: 10px;
    border: 1px solid #ddd;
}

#Tablaproductos tbody tr:nth-child(even) {
    background: #f0f8ff;
}

#Tablaproductos tbody tr:hover {
    background: #e2efff;
}

/* === TOTAL A PAGAR === */
#TotalPagar {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

img{
    width: 50px;
}