/* Vista de app: franja, cabecera blanca, buscador, barra inferior y marco de teléfono. */
body { background: #e9edf4; }
.app { max-width: 520px; min-height: 100vh; margin: 0 auto; background: var(--fondo); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.app .contenedor { max-width: none; }

.cab-app { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; background: #fff; }
.cab-marca { text-decoration: none; }
.lg { display: inline-grid; grid-template-columns: repeat(6, auto); column-gap: 3px; align-items: end; }
.lg b { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -.3px; }
.lg em { font-style: normal; font-size: 22px; font-weight: 900; color: #c9d5ec; line-height: 1; }
.lg u, .lg i { text-decoration: none; font-style: normal; font-size: 18px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--azul); }
.lg .az { color: var(--azul); } .lg .ro { color: var(--rojo); }
.cab-buscar { padding: 10px 18px 4px; background: #fff; }
.cab-buscar form { display: flex; border: 2px solid var(--azul); border-radius: 10px; overflow: hidden; background: #fff; }
.cab-buscar input { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 13px 12px; font-size: 16px; background: transparent; }
.cab-buscar input:focus { outline: none; }
.cab-buscar button { border: 0; background: var(--azul); color: #fff; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer; }
.cab-buscar button:focus-visible { outline: 3px solid var(--rojo); outline-offset: -3px; }
.cab-buscar form:focus-within { outline: 3px solid #7aa2e8; outline-offset: 1px; }

.salir { text-align: center; padding: 1.5rem 0 0; }
.salir form { margin: 0; }

.barra-app {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 10;
    display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--linea);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; font-weight: 600;
}
.barra-app a { position: relative; flex: 1; min-width: 0; padding: 0 2px; line-height: 1.15; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; text-decoration: none; color: var(--gris); }
.barra-app svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.barra-app a[aria-current="page"] { color: var(--azul); font-weight: 800; }
.barra-app a[aria-current="page"]::before { content: ""; position: absolute; top: -10px; left: 30%; right: 30%; height: 3px; background: var(--rojo); border-radius: 2px; }
