/* Estilos comunes de Radio Taxi Regina: barra de navegación y marco de celular en escritorio.
   Se carga después del <style> de cada pantalla para pisar lo que haga falta. */

.appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: rgba(20, 22, 20, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.12);
    font-family: "Manrope", sans-serif;
}

.appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.appbar-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f4b400;
}

.appbar-logo svg { width: 20px; height: 20px; fill: #18140f; }

.appbar-links {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.appbar-links a {
    padding: 7px 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.15s ease, background 0.15s ease;
}

.appbar-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.appbar-links a[aria-current="page"] { background: #f4b400; color: #18140f; }

.appbar a:focus-visible { outline: 2px solid #f4b400; outline-offset: 2px; }

@media (max-width: 560px) {
    .appbar-name { display: none; }
    .appbar-links a { padding: 7px 11px; font-size: 12.5px; }
}

/* Pantallas de celular (pasajero y chofer). */
.phone {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

/* En escritorio la app se muestra dentro de un marco de celular con scroll propio. */
@media (min-width: 900px) and (min-height: 640px) {
    body.con-marco {
        --alto-marco: min(880px, calc(100vh - 96px));
        --aire-marco: calc((100vh - 56px - var(--alto-marco)) / 2);
        height: 100vh;
        overflow: hidden;
    }

    .con-marco .phone {
        max-width: 410px;
        height: var(--alto-marco);
        min-height: 0;
        margin: calc(56px + var(--aire-marco)) auto 0;
        overflow-x: hidden;
        overflow-y: auto;
        border: 10px solid #141614;
        border-radius: 44px;
        background: var(--panel);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 32px 70px rgba(20, 22, 20, 0.28);
        scrollbar-width: none;
    }

    .con-marco .phone::-webkit-scrollbar { display: none; }

    .con-marco .bottom-nav {
        bottom: calc(var(--aire-marco) + 10px);
        max-width: 390px;
        border-radius: 0 0 34px 34px;
        overflow: hidden;
    }

    .con-marco .toast {
        bottom: calc(var(--aire-marco) + 100px);
        max-width: 366px;
    }

    .con-marco .modal-overlay { padding-bottom: calc(var(--aire-marco) + 96px); }
}

.app-footer a,
.dashboard-footer a,
.footer a { color: inherit; font-weight: 800; text-decoration: none; }

.app-footer a:hover,
.dashboard-footer a:hover,
.footer a:hover { color: #b07f00; }

/* Descripción al costado del marco: solo en pantallas anchas. */
.marco-info { display: none; }

@media (min-width: 1180px) and (min-height: 640px) {
    .con-marco .marco-info {
        position: fixed;
        top: calc(56px + (100vh - 56px) / 2);
        right: calc(50% + 205px + 64px);
        transform: translateY(-50%);
        display: block;
        width: 320px;
        font-family: "Manrope", sans-serif;
        color: var(--ink);
    }

    .marco-eyebrow {
        display: inline-flex;
        padding: 6px 11px;
        border-radius: 999px;
        background: #fef0c7;
        color: #7a4f00;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .marco-info h2 {
        margin: 16px 0 10px;
        font-size: 2rem;
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .marco-info p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.55;
    }

    .marco-info ul {
        margin: 20px 0 0;
        padding: 0;
        list-style: none;
    }

    .marco-info li {
        position: relative;
        padding: 9px 0 9px 26px;
        border-top: 1px solid var(--line);
        font-size: 14px;
        font-weight: 700;
    }

    .marco-info li::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 50%;
        width: 10px;
        height: 10px;
        margin-top: -5px;
        border-radius: 50%;
        background: var(--brand);
        box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.22);
    }
}
