/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    padding: 20px;
    color: #ebe8e8;
    /* Cambiado a color más oscuro para mejor legibilidad */
}

/* Fondo desenfocado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/fondo.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: -1;
    transform: scale(1.1);
}

/* Estilos para el menú horizontal */
nav ul {
    display: flex;
    list-style-type: none;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    margin-bottom: 20px;
}

nav ul li {
    display: inline-block;
    width: auto;
}

nav ul li a {
    text-decoration: none;
    color: #0077cc;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 119, 204, 0.1);
}

/* Título principal */
h1 {
    font-size: 1.8em;
    margin: 20px 0 10px;
    color: #ece9e9;
}

/* Tabla de dependencias */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    color: rgb(70, 69, 69);
}

th {
    background-color: #0077cc;
    color: white;
}

/* Botones - modificado para que ocupen solo el 10% */
input[type="submit"],
a.boton-con-icono {
    width: auto;
    min-width: 100px;
    /* Ancho mínimo para que no queden muy pequeños */
    max-width: 10%;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #0e52e4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    box-sizing: content-box;
}

input[type="submit"]:hover {
    background: #033196;
    transform: scale(1.05);
}

/* Select */
select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 10px;
    width: auto;
}

/* Mensajes */
font[color='red'] {
    color: red;
    font-weight: bold;
}

font[color='Green'] {
    color: green;
    font-weight: bold;
}

/* Botón estilo enlace con icono - modificado */
a.boton-con-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 6px;
    background: linear-gradient(to right, #0344f5de 0%, #002ffed5 100%);
    color: white;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease, transform 0.2s ease;
    width: auto;
    max-width: 10%;
}

a.boton-con-icono:hover {
    background: linear-gradient(to right, #0044fe 0%, #0729ec 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

a.boton-con-icono:active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

a.boton-con-icono img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}