* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2933;
    background: #f3f5f7;
}

/* Barra superior oscura */
.barra {
    background: #1c232c;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
}

.marca img {
    height: 42px;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

.barra nav a {
    color: #d5dbe1;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 4px;
    font-size: 15px;
}

.barra nav a:hover {
    color: white;
}

.barra nav a.activo {
    background: #3a4552;
    color: white;
}

/* Contenido */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 40px 40px;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.descripcion {
    color: #52606d;
    margin-top: 0;
    line-height: 1.5;
}

.tarjeta {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
    margin-top: 20px;
}

/* Formularios */
form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: bold;
    color: #3e4c59;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

input[type="text"],
input[type="time"],
select {
    font-size: 15px;
    padding: 9px 10px;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    background: white;
}

input[type="submit"] {
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

input[type="submit"]:hover {
    background: #a00d25;
}

.nota {
    font-size: 13px;
    color: #7b8794;
    margin: 10px 0 0;
}

.subtitulo {
    color: #c8102e;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.mensaje {
    color: #7b8794;
    margin: 12px 0 0;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: #f0f2f4;
    color: #52606d;
    text-transform: uppercase;
    font-size: 12px;
    text-align: left;
    padding: 10px 12px;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #eceff2;
}

tr:hover td {
    background: #fafbfc;
}

/* Portada */
.opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.opcion {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    color: inherit;
    text-decoration: none;
    border-top: 4px solid #c8102e;
}

.opcion:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.opcion h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.opcion p {
    margin: 0;
    color: #52606d;
    line-height: 1.5;
}

footer {
    border-top: 1px solid #dde2e7;
    padding: 18px 40px;
    color: #7b8794;
    font-size: 13px;
}

