/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #e8f1ff, #f5f9ff);
    color: #1f2933;
}

/* ===== NAVBAR ===== */
nav {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    padding: 14px 25px;
    display: flex;
    gap: 18px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

nav a {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ===== CONTENEDOR ===== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease;
}

/* ===== TITULOS ===== */
h1, h2 {
    color: #1e3a8a;
    margin-bottom: 18px;
}

/* ===== TEXTO DESTACADO ===== */
.welcome {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 8px;
}

/* ===== BOTONES ===== */
.btn {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37,99,235,0.4);
}

/* ===== TABLAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #dbeafe;
}

table tr:hover {
    background: #f0f7ff;
}

/* ===== ACCIONES ===== */
.action-links a {
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.action-links a:hover {
    transform: scale(1.2);
}

/* ===== FORMULARIOS ===== */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

/* ===== ANIMACION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
