/* =========================
   ESTILO GENERAL DEL SISTEMA
   ========================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #b00000;
    color: #ffffff;
}

/* =========================
   ESTRUCTURA BASE
   ========================= */

.contenedor {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 18px;
    text-align: center;
}

.contenedor-grande {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px;
    text-align: center;
}

.titulo {
    margin-bottom: 22px;
}

.titulo h1,
.titulo h2 {
    margin: 8px 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
}

.subtitulo {
    margin: 10px 0 18px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* =========================
   CAJAS / TARJETAS
   ========================= */

.caja {
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: 22px 18px;
    margin: 14px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.caja h3 {
    margin: 0 0 18px 0;
    font-size: 22px;
    color: #b00000;
}

.caja-alerta {
    background: #ffffff;
    color: #111111;
    padding: 22px 18px;
    margin: 14px auto;
    border-radius: 10px;
    border: 3px solid #ffffff;
}

.caja-alerta h2 {
    margin: 10px 0;
    font-size: 22px;
    color: #b00000;
}

.caja-exito {
    background: #ffffff;
    color: #111111;
    padding: 22px 18px;
    margin: 14px auto;
    border-radius: 10px;
    border: 3px solid #ffffff;
}

.caja-exito h2 {
    margin: 10px 0;
    font-size: 22px;
    color: #111111;
}

/* =========================
   FORMULARIOS
   ========================= */

form {
    margin: 0;
}

input,
select,
button {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 6px;
}

input,
select {
    border: 1px solid #999999;
    background: #ffffff;
    color: #111111;
}

button,
input[type="submit"] {
    border: none;
    background: #b00000;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

button:active,
input[type="submit"]:active {
    background: #870000;
}

.boton-secundario,
input.boton-secundario {
    background: #333333;
    color: #ffffff;
}

.boton-secundario:active,
input.boton-secundario:active {
    background: #111111;
}

/* =========================
   DATOS / RESULTADOS
   ========================= */

.ficha {
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: 18px;
    margin: 14px auto;
    border-radius: 10px;
    text-align: center;
}

.fila-dato {
    padding: 14px 0;
    border-bottom: 1px solid #dddddd;
    font-size: 18px;
    text-align: center;
}

.fila-dato:last-child {
    border-bottom: none;
}

.etiqueta {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #b00000;
    text-transform: uppercase;
    text-align: center;
}

.valor {
    display: block;
    color: #111111;
    font-weight: bold;
    text-align: center;
}

/* =========================
   CONTADORES
   ========================= */

.contadores {
    margin-top: 18px;
}

.contador {
    background: #ffffff;
    color: #111111;
    padding: 14px;
    margin: 10px auto;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.contador span {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    color: #b00000;
}

/* =========================
   TEXTOS AUXILIARES
   ========================= */

.nota {
    margin-top: 16px;
    font-size: 13px;
    color: #eeeeee;
}

.texto-negro {
    color: #111111;
}

.texto-blanco {
    color: #ffffff;
}

.texto-rojo {
    color: #b00000;
}

/* =========================
   MÓVILES PEQUEÑOS
   ========================= */

@media (max-width: 360px) {
    .contenedor,
    .contenedor-grande {
        padding: 14px;
    }

    .titulo h1,
    .titulo h2 {
        font-size: 20px;
    }

    .subtitulo {
        font-size: 18px;
    }

    .caja h3,
    .caja-alerta h2,
    .caja-exito h2 {
        font-size: 20px;
    }

    input,
    select,
    button {
        font-size: 16px;
        padding: 13px;
    }

    .fila-dato {
        font-size: 16px;
    }

    .contador {
        font-size: 16px;
    }

    .contador span {
        font-size: 22px;
    }
}
/* =========================
   MENSAJES DEL SISTEMA
   ========================= */

.mensaje-error {
    width: 100%;
    padding: 14px;
    margin: 0 0 16px 0;
    background: #ffe5e5;
    color: #b00000;
    border: 2px solid #b00000;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}