/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    line-height: 1.4;
}

/* NAVBAR / HEADER */
.header, .navbar {
    background: #1e2a38;
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LINKS NAVBAR */
.navbar a {
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    color: #dce3ea;
}

.navbar a:hover {
    color: #ffffff;
}

/* CONTENEDOR DE BOTONES NAVBAR */
.nav-actions {
    display: flex;
    gap: 10px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 38px;
}

.logo span {
    font-size: 16px;
    font-weight: 600;
}

/* CONTENEDOR */
.container {
    width: 92%;
    max-width: 1100px;
    margin: 30px auto;
}

/* FORMULARIOS */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* INPUTS */
input {
    width: 100%;
    padding: 11px;
    margin-bottom: 15px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 14px;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

/* BOTONES GENERALES */
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 11px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #0056b3;
}

/* BOTONES BASE */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
}

/* FORZAR COLOR EN NAVBAR */
.navbar .btn {
    color: white;
}

.navbar .btn:hover {
    color: white;
}

/* BOTÓN PRIMARIO */
.btn-primary {
    background: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
}

/* BOTÓN ÉXITO */
.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

/* BOTÓN PELIGRO */
.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #b02a37;
}

/* EFECTO HOVER BOTONES */
.btn:hover {
    transform: translateY(-1px);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    font-size: 13px;
    color: #7a869a;
    margin-bottom: 5px;
}

.card p {
    font-size: 22px;
    font-weight: 600;
}

/* TABLA */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

th {
    background: #1e2a38;
    color: white;
    font-weight: 500;
    font-size: 13px;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

tr:hover {
    background: #f8fafc;
}

/* ALERTAS */
.error {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

.success {
    color: #28a745;
    margin-top: 10px;
    font-size: 14px;
}

/* LOGIN CENTRADO */
.center-box {
    max-width: 350px;
    margin: 80px auto;
    text-align: center;
}

/* TITULOS */
h2 {
    margin-bottom: 15px;
    font-weight: 600;
}