@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600;700&family=Atkinson+Hyperlegible+Next&display=swap');

:root {
    --azul: #003465;
    --naranja: #ff8918;
    --rojo: #ba1a1a;
    --gris-fondo: #f4f4f4;
    --gris-texto: #333333;
}

body {
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
    background: var(--gris-fondo);
    color: var(--gris-texto);
    margin: 0;
}

h1 {
    font-family: 'Source Serif 4', serif;
    color: var(--azul);
}

.pagina-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.tarjeta-login {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.logo-login {
    max-width: 120px;
    margin-bottom: 1rem;
}

.tarjeta-login label {
    display: block;
    text-align: left;
    margin-top: 1rem;
    font-weight: bold;
}

.tarjeta-login input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 0.3rem;
    box-sizing: border-box;
}

.tarjeta-login button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.7rem;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.tarjeta-login button:hover {
    background: var(--naranja);
}

.mensaje-error {
    color: var(--rojo);
    font-weight: bold;
}

.encabezado {
    background: var(--azul);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.logo-header {
    height: 36px;
}

.encabezado a {
    color: white;
}

main {
    padding: 2rem;
}

.barra-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.boton {
    display: inline-block;
    background: var(--azul);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.boton:hover {
    background: var(--naranja);
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.tabla-datos th,
.tabla-datos td {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #eee;
}

.tabla-datos th {
    background: var(--azul);
    color: white;
}

.insignia-alerta {
    display: inline-block;
    background: var(--rojo);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.tarjeta {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-top: 1.5rem;
    max-width: 700px;
}

.lista-datos dt {
    font-weight: bold;
    color: var(--azul);
    margin-top: 0.8rem;
}

.lista-datos dd {
    margin: 0.2rem 0 0 0;
}

.formulario {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    max-width: 500px;
}

.formulario label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 0.3rem;
    box-sizing: border-box;
    font-family: inherit;
}

.formulario .fila-casilla {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.formulario .fila-casilla input {
    width: auto;
}

.formulario button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.formulario button:hover {
    background: var(--naranja);
}

.semaforo {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-weight: bold;
    color: white;
}

.semaforo-verde {
    background: #2e7d32;
}

.semaforo-amarillo {
    background: #f2b705;
    color: #333333;
}

.semaforo-rojo {
    background: var(--rojo);
}
