/* ============================================================
   TransformLab v5 · app.css
   Estilos de la aplicación. Solo consume tokens de tokens.css:
   cero valores hex/px mágicos (CLAUDE.md D8).
   ============================================================ */

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ui);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
    margin: 0;
}

p {
    margin: 0;
}

/* ---- Foco de teclado visible en todo control (F7) ---- */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    border-radius: var(--radius-sm);
}

/* ---- Shell M0 ---- */
.shell {
    max-width: 40rem;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-height: 100vh;
}

.shell h1 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
}

.shell .tagline {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    margin-top: var(--space-2);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.muted {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.shell-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

/* ---- Movimiento respetuoso (F7) ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
