/* Resicontrol by Hezeer · Modo Simple: letra grande, botones grandes, una tarea por pantalla. */

html.hg-simple {
    --hg-base-font: 20px;
    --hg-touch: var(--hg-touch-simple);
    --hg-content-max: 780px;
    --hg-leading: 1.6;
}

html.hg-simple .hg-btn,
html.hg-simple .hg-input,
html.hg-simple .hg-page-btn {
    min-height: var(--hg-touch-simple);
}

html.hg-simple .hg-btn {
    font-size: 1.05rem;
    padding: 0.85rem 1.4rem;
}

html.hg-simple .hg-label,
html.hg-simple .hg-hint {
    font-size: 1rem;
}

html.hg-simple .hg-card,
html.hg-simple .hg-auth-card {
    border-width: 2px;
    box-shadow: none;
}

html.hg-simple .hg-auth-grid {
    grid-template-columns: minmax(0, 1fr);
}

html.hg-simple .hg-auth-intro {
    display: none;
}

html.hg-simple .hg-auth-card {
    max-width: 620px;
    margin: 0 auto;
}

html.hg-simple .hg-segmented__btn {
    min-width: 48px;
    min-height: 48px;
}

/* Barra superior del Modo Simple */
.hg-simple-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--hg-space-3);
    padding: var(--hg-space-3) var(--hg-space-4);
    background: var(--hg-surface);
    border-bottom: 2px solid var(--hg-border-strong);
    position: sticky;
    top: 0;
    z-index: 40;
    flex-wrap: wrap;
}

.hg-simple-topbar .hg-brand__text small {
    font-size: 0.8rem;
}

.hg-font-controls {
    display: inline-flex;
    gap: var(--hg-space-2);
}

.hg-font-btn {
    min-width: 52px;
    min-height: 52px;
    border: 2px solid var(--hg-border-strong);
    border-radius: var(--hg-radius-md);
    background: var(--hg-surface);
    color: var(--hg-text);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.hg-font-btn:hover {
    background: var(--hg-surface-2);
}

.hg-simple-main {
    padding: var(--hg-space-5) 0 7rem;
    min-height: 60vh;
    scroll-margin-top: 120px;
}

/* Inicio del residente */
.hg-simple-hero {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: var(--hg-space-2);
    margin-bottom: var(--hg-space-5);
}

.hg-simple-hero__title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin: var(--hg-space-2) 0 0;
}

.hg-simple-hero__text {
    font-size: 1.15rem;
    color: var(--hg-muted);
    margin: 0;
}

.hg-simple-hero__tenant {
    font-weight: 700;
    margin: 0;
    padding: 0.3rem 0.9rem;
    border-radius: var(--hg-radius-full);
    background: var(--hg-surface-2);
    border: 1px solid var(--hg-border);
}

.hg-simple-actions {
    display: grid;
    gap: var(--hg-space-3);
    margin-bottom: var(--hg-space-6);
}

.hg-simple-action-form {
    margin: 0;
}

.hg-simple-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon hint";
    align-items: center;
    column-gap: var(--hg-space-4);
    width: 100%;
    min-height: 96px;
    padding: var(--hg-space-4);
    border: 2px solid var(--hg-border-strong);
    border-radius: var(--hg-radius-lg);
    background: var(--hg-surface);
    color: var(--hg-text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: background var(--hg-transition);
}

.hg-simple-action:hover {
    background: var(--hg-surface-2);
}

.hg-simple-action__icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--hg-radius-md);
    background: var(--hg-surface-2);
    color: var(--hg-accent);
    border: 1px solid var(--hg-border);
}

.hg-simple-action__icon .hg-icon {
    width: 34px;
    height: 34px;
}

.hg-simple-action__label {
    grid-area: label;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.hg-simple-action__hint {
    grid-area: hint;
    color: var(--hg-muted);
    font-size: 1rem;
}

.hg-simple-action--quiet {
    background: var(--hg-surface-2);
}

/* Ayuda */
.hg-simple-help {
    border: 2px solid var(--hg-border-strong);
    border-radius: var(--hg-radius-lg);
    padding: var(--hg-space-5);
    background: var(--hg-surface);
    margin-bottom: var(--hg-space-5);
    scroll-margin-top: 120px;
}

.hg-simple-help__title {
    font-size: 1.5rem;
}

.hg-simple-help__text {
    font-size: 1.1rem;
}

.hg-simple-help__actions {
    display: grid;
    gap: var(--hg-space-3);
}

.hg-simple-help__empty {
    background: var(--hg-warning-soft-bg);
    color: var(--hg-warning-soft-ink);
    border-radius: var(--hg-radius-md);
    padding: var(--hg-space-3);
}

.hg-simple-preference {
    border-top: 2px solid var(--hg-border);
    padding-top: var(--hg-space-4);
    display: grid;
    gap: var(--hg-space-2);
    justify-items: start;
}

.hg-simple-preference__title {
    font-size: 1.2rem;
    margin: 0;
}

/* Navegación inferior fija (máximo 4 destinos) */
.hg-simple-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--hg-surface);
    border-top: 2px solid var(--hg-border-strong);
    padding-bottom: env(safe-area-inset-bottom);
}

.hg-simple-nav__form {
    display: contents;
}

.hg-simple-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 72px;
    padding: var(--hg-space-2) 0.25rem;
    border: 0;
    background: transparent;
    color: var(--hg-text);
    text-decoration: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
}

.hg-simple-nav__item .hg-icon {
    width: 26px;
    height: 26px;
}

.hg-simple-nav__item.is-active {
    color: var(--hg-primary);
    background: var(--hg-surface-2);
    box-shadow: inset 0 3px 0 var(--hg-accent);
}

.hg-simple-nav__item:focus-visible {
    outline-offset: -4px;
}

@media (max-width: 480px) {
    .hg-simple-topbar {
        padding: var(--hg-space-2) var(--hg-space-3);
    }

    .hg-simple-topbar .hg-brand__text small {
        display: none;
    }

    .hg-simple-action {
        min-height: 88px;
        padding: var(--hg-space-3);
        column-gap: var(--hg-space-3);
    }

    .hg-simple-action__icon {
        width: 56px;
        height: 56px;
    }

    .hg-simple-action__label {
        font-size: 1.2rem;
    }

    .hg-simple-help {
        padding: var(--hg-space-4);
    }
}
