/* === Estilos generales === */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

/* === Barra superior === */
.topbar {
    background-color: #b30000; /* Rojo institucional */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar h1 {
    font-size: 22px;
    margin: 0;
}

.topbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.topbar nav ul li {
    margin-left: 20px;
}

.topbar nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.topbar nav ul li a:hover {
    opacity: 0.8;
}

/* === Contenido principal === */
.main-content {
    padding: 30px;
}

/* === Tarjetas / formularios === */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card h2 {
    color: #b30000;
    margin-bottom: 15px;
    text-align: center;
}

/* === Formularios === */
form label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

form input, form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

form button {
    margin-top: 20px;
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background-color: #8c0000;
}

/* === Tablas === */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background-color: #b30000;
    color: white;
    padding: 10px;
    text-align: left;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table tr:hover {
    background-color: #f1f1f1;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 15px;
    background: #222;
    color: white;
    font-size: 13px;
    margin-top: 40px;
}

/* === Botones de acción === */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-edit {
    background-color: #2b6cb0;
}

.btn-edit:hover {
    background-color: #234e7d;
}

.btn-delete {
    background-color: #e53e3e;
}

.btn-delete:hover {
    background-color: #9b2c2c;
}

/* === Login === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #b30000 0%, #ff4d4d 100%);
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    width: 340px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #b30000;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-box button {
    width: 100%;
    background-color: #b30000;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #8c0000;
}
