/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    background: url("fondo.png") no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin: 0;
}

/* Cabecera */
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
}
/* Contenedor general */
.container {
    max-width: 900px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 150px; /* ajusta el tamaño */
}




/* Títulos */
h2 {
    color: #504F59;
    margin-bottom: 40px;
    border-bottom: 2px solid #BF6B21;
    padding-bottom: 10px;
}


/* Tabla de Reservaciones */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: #504F59;
    color: white;
}

td {
    border-bottom: 1px solid #BF9A84;
    color: #504F59;
}
/* Hover sobre filas */
tr:hover td {
    background-color: #f9f3ef;
}

/* Mensaje de tabla vacía */
td[colspan] {
    text-align: center;
    font-style: italic;
    color: #A69797;
}
/* Inputs y botones */
form input,
form button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #A69797;
    font-size: 15px;
    box-sizing: border-box;
}

form input::placeholder {
    color: #A69797;
}

form button {
    background-color: #BF6B21;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #D98162;
}

/* Formulario */
form {
    background-color: #D98162;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

form input[type="text"],
form input[type="date"],
form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #504F59;
}

form button[type="button"] {
    background-color: #f44336;
}

form button[type="button"]:hover {
    background-color: #e53935;
}

form button:hover {
    background-color: #8C888C;
}

/* Estilo para la tabla de detalles y botones adicionales */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-group button {
    background-color: #008CBA;
    color: white;
}

.btn-group button:hover {
    background-color: #007B8C;
}

/* Estilo para el mensaje de error/success */
.alert {
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.alert.success {
    background-color: #4CAF50;
    color: white;
}

.alert.error {
    background-color: #f44336;
    color: white;
}

/* Estilo para la actualización de reserva */
form.update-form {
    background-color: #ffffff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.update-form input,
.update-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.update-form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.update-form button:hover {
    background-color: #45a049;
}

.update-form button[type="button"] {
    background-color: #f44336;
}

.update-form button[type="button"]:hover {
    background-color: #e53935;
}

/* Modificaciones para pantallas pequeñas */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    form {
        width: 90%;
    }

    .btn-group {
        flex-direction: column;
    }
}