/*
 * ATPC-TraderLab · estilos base de la app
 * Versión: 0.5.0
 *
 * Según los mockups: cuerpo de 17 px, contraste AA, objetivos táctiles de
 * al menos 44 px y foco visible. La tipografía Atkinson Hyperlegible se
 * alojará en local más adelante (sin Google Fonts por CSP y privacidad).
 */

:root {
    --fondo: #f5f6f8;
    --texto: #172033;
    --texto-suave: #4a5468;
    --borde: #d9dde5;
    --principal: #0f6b66;
    --principal-oscuro: #0b5450;
    --foco: #1d5fbf;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.cabecera {
    background: #fff;
    border-bottom: 1px solid var(--borde);
}

.cabecera__contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cabecera__marca {
    font-weight: 700;
    font-size: 20px;
}

.cabecera__subtitulo {
    color: var(--texto-suave);
}

.principal {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}

.tarjeta {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tarjeta h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.tarjeta p {
    margin: 0;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.boton--principal {
    background: var(--principal);
    color: #fff;
}

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

.aviso {
    background: #eef4f3;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    color: #1f3b39;
}

:focus-visible {
    outline: 3px solid var(--foco);
    outline-offset: 2px;
}

.boton--secundario {
    background: #fff;
    color: #0b5a55;
    border: 2px solid var(--principal);
}

.eleccion {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

button.boton {
    cursor: pointer;
    border: 2px solid transparent;
}

button.boton--secundario {
    border-color: var(--principal);
}

.tarjeta--ancha {
    max-width: 680px;
}

.condiciones {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--borde);
    border-radius: 10px;
    padding: 18px 20px;
    background: #fafbfc;
}

.nota {
    color: var(--texto-suave);
    font-size: 15px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.casilla {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.casilla input {
    width: 24px;
    height: 24px;
    margin: 2px 0 0;
    flex: none;
}

.casilla label {
    font-weight: 700;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.error {
    color: #8a1c1c;
    font-weight: 700;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo input,
.campo textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 8px;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--borde);
}

.cabecera__contenido {
    flex-wrap: wrap;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-left: auto;
    align-items: center;
}

.menu__enlace {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--texto);
    text-decoration: none;
    font-weight: 700;
}

.menu__enlace[aria-current="page"] {
    color: var(--principal);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.menu__pendiente {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--texto-suave);
}

.pagina {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fila {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.contador {
    margin: 0;
}

.boton--inactivo {
    opacity: 0.6;
    cursor: not-allowed;
}

.menu__salir {
    margin: 0;
}

.menu__boton {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
