body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

.contenedor {
    width: 700px;
    margin: 40px auto;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    padding: 30px;
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #8b0000;
    margin-bottom: 25px;
}

form {
    width: 100%;
}

.fila {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.fila label {
    width: 220px;
    font-size: 15px;
}

.fila input[type="text"],
.fila select {
    width: 220px;
    padding: 8px;
    border: 1px solid #666;
    border-radius: 4px;
}

.botones {
    text-align: center;
    margin-top: 20px;
}

.botones button,
.botones a {
    display: inline-block;
    background: #3b6ea5;
    color: white;
    padding: 10px 22px;
    margin: 8px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.botones button:hover,
.botones a:hover {
    background: #2b5785;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla th,
.tabla td {
    border: 1px solid #999;
    padding: 10px;
    text-align: center;
}

.tabla th {
    background: #e6e6e6;
}

.local {
    background-color: #c8f7c5;
    font-weight: bold;
}

.empate {
    background-color: #fff3b0;
    font-weight: bold;
}

.visitante {
    background-color: #f7c5c5;
    font-weight: bold;
}

.mensaje {
    text-align: center;
    font-weight: bold;
    color: green;
    margin-top: 15px;
}

.error {
    text-align: center;
    font-weight: bold;
    color: red;
    margin-top: 15px;
}

.busqueda-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.busqueda-box select {
    padding: 8px;
    width: 180px;
}
/* BOTÓN GUARDAR (GRIS) */
.btn-guardar {
    background: linear-gradient(#e0e0e0, #bfbfbf);
    border: 1px solid #888;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: black;
}

.btn-guardar:hover {
    background: linear-gradient(#d0d0d0, #a8a8a8);
}

/* BOTONES AZULES */
.btn-azul {
    display: inline-block;
    background: linear-gradient(#4f81bd, #2f5d91);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 6px;
    margin: 10px;
    font-weight: bold;
}

.btn-azul:hover {
    background: linear-gradient(#3b6ea5, #244a73);
}

/* POSICIÓN BOTONES */
.botones-arriba {
    text-align: center;
    margin-top: 15px;
}

.botones-abajo {
    text-align: center;
    margin-top: 25px;
}