/* ----- ESTILOS GENERALES ----- */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 40px;
    color: #333;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #f773b0;
    letter-spacing: 1px;
}

/* ----- TABLA DEL FORMULARIO ----- */
table {
    margin: 0 auto 40px auto;
    border-collapse: separate;
    border-spacing: 0 12px;
}

table td {
    padding: 8px 15px;
    font-size: 16px;
}

table input[type="text"] {
    width: 250px;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.2s;
}

table input[type="text"]:focus {
    border-color: #da1a54;
    box-shadow: 0 0 4px rgba(255, 53, 147, 0.911);
}

/* ----- BOTÓN ----- */
input[type="submit"] {
    background: #f880de;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

input[type="submit"]:hover {
    background: #f12c88;
}

/* ----- TABLA DE PRODUCTOS ----- */
#listaproductos {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

#listaproductos thead {
    background: #eb1c9b;
    color: white;
}

#listaproductos th,
#listaproductos td {
    padding: 12px 15px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid #ddd;
}

#listaproductos tbody tr:nth-child(even) {
    background: #f2f7fb;
}

#listaproductos tbody tr:hover {
    background: #e8f1f8;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    table input[type="text"] {
        width: 180px;
    }

    #listaproductos {
        width: 100%;
    }
}
