/* controlDeIngreso · Base móvil */
:root {
    --bg: #f5f6f8;
    --fg: #0f172a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #0ea5e9;
    --ok: #16a34a;
    --danger: #dc2626;
    --top-h: 64px;
    --bottom-h: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --maxw: 720px;
    /* Silver bar base + lighting */
    --silver-1: #f2f2f2;
    --silver-2: #d9d9d9;
    --silver-3: #c3c3c3;
    --silver-4: #b1b1b1;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    color-scheme: light
}

body {
    margin: 0;
    font: 15px system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
    color: var(--fg);
    background: var(--bg);
}


html.is-blocked,
html.is-blocked body {
    overflow: hidden;
}

/* Bars: fixed, full-width, metallic silver with soft lighting */
.bar {
    position: fixed;
    left: 0;
    right: 0;
    background:
        radial-gradient(120% 180% at 50% -40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, var(--silver-1), var(--silver-2) 35%, var(--silver-3) 65%, var(--silver-4));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 6px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.bar--top {
    top: 0;
    height: calc(var(--top-h) + var(--safe-top));
    padding-top: var(--safe-top);
}

.bar--bottom {
    bottom: 0;
    height: calc(var(--bottom-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
}

.bar__inner {
    height: var(--top-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    max-width: var(--maxw);
    margin: 0 auto;
}

#bottombar .menu {
    height: var(--bottom-h);
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.menu__item {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 72px;
    height: 42px;
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
}

.menu__item.is-active {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.5);
}

.menu__icon {
    font-size: 18px;
    line-height: 1;
}

.menu__label {
    font-size: 12px;
}

/* Main content: occupies remaining space, scrolls if needed */
#content {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: calc(var(--top-h) + var(--safe-top) + 8px) 12px calc(var(--bottom-h) + var(--safe-bottom) + 8px);
    min-height: 100svh;
    /* small viewport height for mobile UIs */
}

/* Sample content block */
.page {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.page__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.page__text {
    margin: 0 0 8px 0;
    color: var(--fg);
}

.page__hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* User chip in top bar */
.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #d8d8d8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user__name {
    font-weight: 700;
    font-size: 14px;
}

.user__desc {
    font-size: 12px;
    color: var(--muted);
}

/* Buttons */
.btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.btn:active {
    transform: translateY(1px);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.05);
}

/* --- Invitado profile additions --- */
.user__avatar::before {
    content: '👤';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
}

.page--photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.photo-box {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-box .placeholder {
    color: var(--muted);
    font-weight: 700;
}

.menu--center-only {
    justify-content: center !important;
    gap: 0 !important;
}

.hidden {
    display: none !important;
}


/* Cámara fullscreen */
.cdi-cam {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
    flex-direction: column;
    z-index: 50
}

.cdi-cam.on {
    display: flex
}

.cdi-cam .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    color: #fff
}

.cdi-cam .bar .btn {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px 12px
}

.cdi-cam video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cdi-cam .shutter {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center
}

.cdi-cam .shutter .btn-shot {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 6px solid #fff;
    background: rgba(255, 255, 255, .2)
}