/* ==========================================================================
   screens.css · DETALLES DE CADA PANTALLA
   ========================================================================== */

/* ---------- Bienvenida ---------- */
.welcome { justify-content: space-between; text-align: center; }
.welcome__hero { display: grid; gap: 14px; justify-items: center; padding-top: 12px; }
.welcome__logo { width: 168px; height: 168px; border-radius: 50%; box-shadow: var(--shadow); }
.welcome h1 { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--green-2); }
.welcome h1 span { color: var(--orange); }
.welcome__tag { color: var(--muted); max-width: 30ch; }
.features { display: grid; gap: 12px; text-align: left; margin: 6px 0; }
.feature { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.feature strong { display: block; font-weight: 600; font-size: .9375rem; }
.feature span { font-size: .8125rem; color: var(--muted); }
.welcome__actions { display: grid; gap: 12px; }
.legal-note { font-size: .75rem; color: var(--muted); }

/* ---------- Formularios (registro, login, recuperar) ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.screen__title { font-size: 1.625rem; font-weight: 700; line-height: 1.15; }
.screen__sub { color: var(--muted); margin-top: 6px; }
.center-card { text-align: center; display: grid; gap: 14px; justify-items: center; margin: auto 0; }
.center-card__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }

/* ---------- Inicio (después de entrar) ---------- */
.home__header { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; flex: none; }
.home__hello { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.kv { display: grid; gap: 10px; margin-top: 12px; font-size: .9375rem; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv div:last-child { border: 0; padding: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; text-align: right; word-break: break-all; }
.next-step { background: var(--orange-soft); border: 1px dashed var(--orange); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; }
.next-step h3 { font-size: 1rem; }

/* ---------- Paso 2: inicio por rol, pasos, tarjetas de estado ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.steps { display: grid; gap: 10px; }
.steps__item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps__num { min-width: 36px; height: 36px; padding: 0 6px; border-radius: 12px; background: var(--green-soft); color: var(--green-2); display: grid; place-items: center; font-weight: 700; font-size: .875rem; flex: none; }
.steps__item strong { display: block; font-size: .9375rem; font-weight: 600; }
.steps__item span:not(.steps__num) { font-size: .8125rem; color: var(--muted); }
.promo { background: var(--green-soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.promo h3 { font-size: 1rem; color: var(--green-2); } .promo p { font-size: .9rem; color: var(--green-2); }
.status-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); }
.status-card--ok { background: var(--green-soft); color: var(--green-2); }
.status-card__icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.status-card p { font-size: .875rem; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; margin: auto 0; padding: 20px 0; }
.empty h2 { font-size: 1.125rem; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--green-soft); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   WUFF · CAPA "VIVA" (estilo Eléctrico)
   Bloques de color a todo lo ancho, tarjeta oscura con botón lima y barra
   inferior flotante. Si algún día quieres volver a algo más sobrio, borra
   desde aquí hasta el final del archivo.
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 44px; height: 44px; border-radius: 14px; display: block; flex: none; box-shadow: 0 6px 16px rgba(14, 16, 51, .25); }
.brand__name { font-family: var(--font-title); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

/* Bienvenida: bloque azul arriba */
.welcome { text-align: left; }
.welcome__hero {
  justify-items: start; gap: 18px; position: relative; overflow: hidden;
  margin: calc(-18px - var(--safe-top)) -22px 0; padding: calc(30px + var(--safe-top)) 24px 40px;
  background: var(--green); color: #fff; border-radius: 0 0 36px 36px;
}
.welcome__hero::after { /* huella gigante de fondo */
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 220px; height: 220px; opacity: .14; pointer-events: none;
  background: url("../img/huella.svg") center / contain no-repeat;
}
.welcome h1 { font-size: 2.5rem; color: #fff; line-height: 1.02; max-width: 12ch; }
.welcome h1 span { color: var(--lime); }
.welcome__tag { color: rgba(255, 255, 255, .9); font-weight: 600; }
.welcome .brand__name { color: #fff; }
.feature { border: 0; box-shadow: var(--shadow); }
.feature:nth-child(2) .feature__icon { background: var(--orange-soft); color: #A3105A; }
.feature:nth-child(3) .feature__icon { background: var(--lime); color: var(--night); }

/* Inicio: encabezado azul con el saludo y el interruptor de rol */
.home-hero {
  margin: calc(-18px - var(--safe-top)) -22px 0; padding: calc(22px + var(--safe-top)) 22px 26px;
  background: var(--green); color: #fff; border-radius: 0 0 34px 34px; display: grid; gap: 18px;
}
.screen--tabs[data-role="paseador"] .home-hero { background: var(--night); }
.home-hero .home__hello { font-size: 1.75rem; color: #fff; }
.home-hero .muted { color: rgba(255, 255, 255, .85); font-weight: 600; }
.home-hero .avatar { background: var(--lime); color: var(--night); }
.home-hero .role-switch { background: rgba(255, 255, 255, .16); }
.home-hero .role-switch__btn { color: #fff; }
.home-hero .role-switch__btn small { color: rgba(255, 255, 255, .8); }
.home-hero .role-switch__btn.is-active { background: var(--lime); color: var(--night); box-shadow: none; }
.home-hero .role-switch__btn.is-active small { color: rgba(14, 16, 51, .75); }
.screen--tabs[data-role="paseador"] .home-hero .role-switch__btn.is-active { background: var(--orange); }
.avatar { background: var(--green); }

/* Tarjeta oscura de acción ("Pide tu primer paseo") */
.next-step { background: var(--night); color: #fff; border: 0; border-radius: 28px; padding: 20px; box-shadow: 0 18px 40px rgba(14, 16, 51, .22); }
.next-step h3 { font-size: 1.375rem; font-weight: 600; }
.next-step .muted { color: rgba(255, 255, 255, .8); }
.next-step .pill--warn { background: var(--lime); color: var(--night); }

.steps__item { border: 0; box-shadow: var(--shadow); }
.steps__item:nth-child(2) .steps__num { background: var(--orange-soft); color: #A3105A; }
.steps__item:nth-child(3) .steps__num { background: var(--lime); color: var(--night); }
.promo { background: var(--orange-soft); }
.promo h3, .promo p { color: var(--night); }
.section-title { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; }
.screen__title { font-family: var(--font-title); font-size: 1.875rem; font-weight: 600; }

/* Barra inferior: píldora oscura flotante */
.tabbar { margin: 20px -8px 0; bottom: calc(10px + var(--safe-bottom)); padding: 6px; background: var(--night); border: 0; border-radius: 26px; box-shadow: 0 12px 30px rgba(14, 16, 51, .25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tabbar__item { color: #A9ADD6; font-size: .75rem; padding: 10px 4px; border-radius: 20px; }
.tabbar__item[aria-current="page"], .screen--tabs[data-role="paseador"] .tabbar__item[aria-current="page"] { color: var(--lime); background: rgba(200, 255, 46, .12); }
.screen--tabs { padding-bottom: calc(14px + var(--safe-bottom)); }

/* ==========================================================================
   PASOS 3 y 4 · MASCOTAS, PASEOS Y SOLICITUDES
   ========================================================================== */
.btn--lime { background: var(--lime); color: var(--night); box-shadow: 0 8px 20px rgba(200, 255, 46, .35); }
.btn--lime:hover { background: #B8F014; }
.btn--danger { color: var(--danger); }
.btn .flip, .btn--lime .flip { display: inline-grid; transform: scaleX(-1); }
.next-step .btn--lime { margin-top: 8px; justify-content: space-between; }

.list { display: grid; gap: 14px; }
.empty--inline { margin: 10px 0; padding: 26px 10px; }

/* Mascotas */
.pet-card { display: flex; gap: 14px; align-items: flex-start; border: 0; }
.pet-avatar { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; flex: none; font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; transform: rotate(-4deg); }
.pet-card__name { font-size: 1.25rem; }
.pet-card__notes { font-size: .875rem; margin-top: 6px; color: var(--ink); background: var(--bg); border-radius: 12px; padding: 8px 10px; }

/* Duración: botones grandes */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip { min-height: 64px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); display: grid; align-content: center; justify-items: center; gap: 2px; cursor: pointer; color: var(--ink); }
.chip strong { font-size: 1rem; } .chip small { font-size: .8125rem; color: var(--muted); font-weight: 700; }
.chip.is-on { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(45, 59, 255, .3); }
.chip.is-on small { color: var(--lime); }

/* Tarjetas de paseo */
.walk-card, .req-card { border: 0; display: grid; gap: 8px; }
.walk-card__when { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; }
.walk-card__line { font-size: .9375rem; }
.walk-card__place { display: flex; align-items: center; gap: 6px; }
.walk-card__hint { font-size: .8125rem; color: var(--muted); }
.walk-card__walker { display: flex; align-items: center; gap: 10px; background: var(--lime); color: var(--night); border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.walk-card--confirmed { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.walk-card--cancelled, .walk-card--expired, .walk-card--completed { opacity: .7; }
.walk-card .btn--text { justify-self: start; padding: 0; }
.pill--live { background: var(--green-soft); color: var(--green-2); position: relative; padding-left: 22px; }
.pill--live::before, .live-dot { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s ease-in-out infinite; }
.pill--live::before { position: absolute; left: 9px; top: 50%; margin-top: -4px; }
.live-dot { display: inline-block; width: 12px; height: 12px; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 46, .3); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.req-card__price { background: var(--night); color: var(--lime); font-weight: 800; border-radius: 999px; padding: 6px 12px; font-size: .9375rem; }
.req-card .pill { justify-self: start; }
.req-card--off { opacity: .75; }
.req-card__reason { font-size: .875rem; color: #A3105A; background: var(--orange-soft); border-radius: 12px; padding: 10px 12px; }

/* Botones de cuentas de prueba (pantalla de inicio de sesión) */
.test-accounts { margin-top: 8px; padding: 16px; border-radius: var(--radius); border: 2px dashed var(--green); background: var(--green-soft); display: grid; gap: 10px; }
.test-accounts__title { font-weight: 800; color: var(--green-2); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
.test-accounts__row { display: grid; gap: 10px; }
.test-accounts .btn { background: var(--surface); }
.walk-card__place { align-items: flex-start; } .walk-card__place > span:first-child { flex: none; margin-top: 2px; }

/* ==========================================================================
   PASO 5 · PASEAR / DESCANSAR, MAPA Y SEGUIMIENTO
   ========================================================================== */
/* Interruptor Pasear / Descansar */
.duty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.duty__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.duty__text strong { font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; }
.duty__text span { font-size: .8125rem; color: var(--muted); }
.duty__btn { flex: none; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 800; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 8px 18px rgba(200, 255, 46, .4); }
.duty__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--night); }
.duty--on { background: var(--night); color: #fff; }
.duty--on .duty__text span { color: rgba(255, 255, 255, .75); }
.duty--on .duty__text strong::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 46, .3); animation: pulse 1.4s ease-in-out infinite; vertical-align: 2px; }
.duty--on .duty__btn { background: #fff; box-shadow: none; }
.duty--on .duty__dot { background: var(--orange); }
.duty__btn[disabled] { opacity: .6; }
.home-hero + .duty, .screen__body > .duty { margin-top: 2px; }

/* Pantalla de mapa: mapa a pantalla completa + hoja inferior */
.screen--map { padding: 0; min-height: inherit; position: relative; display: block; }
.map { position: absolute; inset: 0; z-index: 0; background: #DDE0F5; }
.map--off { display: grid; place-items: center; color: var(--muted); }
.map-top { position: absolute; z-index: 500; top: calc(14px + var(--safe-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.map-top .icon-btn { pointer-events: auto; box-shadow: var(--shadow); border: 0; width: 48px; height: 48px; }
.sheet { position: absolute; z-index: 500; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px calc(20px + var(--safe-bottom)); display: grid; gap: 10px; box-shadow: 0 -10px 30px rgba(14, 16, 51, .15); max-height: 55%; overflow-y: auto; }
.sheet__grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); justify-self: center; margin-bottom: 4px; }
.sheet .notice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sheet .notice .btn--text { min-height: 36px; padding: 0 8px; color: var(--green); }
@media (min-width: 520px) { .screen--map, .map { border-radius: 32px; overflow: hidden; } .sheet { border-radius: 28px 28px 32px 32px; } }

.map-pin { display: grid !important; place-items: center; border-radius: 50%; }
.map-pin--walker { background: var(--green); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(45, 59, 255, .25), 0 6px 14px rgba(14, 16, 51, .3); }
.map-pin--home { background: var(--night); color: var(--lime); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(14, 16, 51, .3); }
.leaflet-container { font-family: var(--font); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8125rem; color: var(--muted); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__dot { width: 12px; height: 12px; border-radius: 50%; }
.legend__dot--walker { background: var(--green); }
.legend__dot--home { background: var(--night); }
.legend__line { width: 18px; height: 4px; border-radius: 4px; background: var(--green); }

/* Cargando (bloques grises animados) */
.skeleton { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, #E6E8FA 25%, #F3F4FF 50%, #E6E8FA 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Barra "Sin conexión" */
.netbar { position: fixed; z-index: 2000; left: 0; right: 0; top: 0; padding: calc(8px + var(--safe-top)) 16px 8px; background: var(--danger); color: #fff; text-align: center; font-weight: 700; font-size: .875rem; transform: translateY(-100%); transition: transform .25s var(--ease); }
.netbar.is-on { transform: none; }

/* ==========================================================================
   PASO 6 · CHAT
   ========================================================================== */
.btn--chat { position: relative; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--night); font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
/* Puntico rojo en la pestaña Paseos / Agenda cuando hay mensajes sin leer */
body.has-unread .tabbar__item[href="#/trips"], body.has-unread .tabbar__item[href="#/agenda"] { position: relative; }
body.has-unread .tabbar__item[href="#/trips"]::after, body.has-unread .tabbar__item[href="#/agenda"]::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--night); }

.screen--chat { padding: 0; display: flex; flex-direction: column; height: 100dvh; min-height: 0; max-height: 100dvh; }
@media (min-width: 520px) { .screen--chat { height: min(860px, calc(100dvh - 48px)); max-height: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-top)) 16px 12px; background: var(--green); color: #fff; border-radius: 0 0 26px 26px; }
.chat-head .icon-btn { border: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.chat-head__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-head__who strong { display: block; font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; }
.chat-head__who small { display: block; font-size: .8125rem; opacity: .85; }
.avatar--sm { width: 40px; height: 40px; font-size: .95rem; background: var(--lime); color: var(--night); }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat-day { align-self: center; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface); padding: 4px 12px; border-radius: 99px; margin: 8px 0; text-transform: capitalize; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 26ch; }
.chat-msg { max-width: 80%; padding: 9px 12px 6px; border-radius: 20px; display: grid; gap: 2px; box-shadow: 0 2px 6px rgba(14, 16, 51, .06); }
.chat-msg p { white-space: pre-wrap; word-break: break-word; font-size: .9375rem; line-height: 1.35; }
.chat-msg--me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg--them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.chat-meta { justify-self: end; font-size: .6875rem; opacity: .75; display: inline-flex; gap: 4px; align-items: center; }
.chat-tick.is-read { color: var(--lime); opacity: 1; font-weight: 800; }
.chat-foot { padding: 6px 12px calc(12px + var(--safe-bottom)); background: var(--bg); display: grid; gap: 8px; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-chip { flex: none; border: 2px solid var(--green-soft); background: var(--surface); color: var(--green-2); border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: .875rem; cursor: pointer; min-height: 40px; }
.chat-bar { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border-radius: 26px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); }
.chat-input { flex: 1; border: 0; outline: none; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.35; padding: 10px 0; max-height: 120px; }
.chat-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); color: var(--night); display: grid; place-items: center; cursor: pointer; }
.chat-send[disabled] { opacity: .5; }
body[data-route="chat"] .toasts, body[data-route="walk"] .toasts, body[data-route="track"] .toasts { bottom: auto; top: calc(90px + var(--safe-top)); }

/* Lista de espera (ciudades donde aún no estamos) */
.waitlist { display: grid; gap: 12px; border: 2px dashed var(--orange); background: var(--orange-soft); box-shadow: none; }
.waitlist h3 { font-size: 1.2rem; }

/* ==========================================================================
   VERIFICACIÓN, FOTOS Y CONFIRMACIONES
   ========================================================================== */
/* Campo "Tomar foto" */
.shot { display: flex; align-items: center; gap: 14px; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; min-height: 84px; }
.shot--done { border-style: solid; border-color: var(--green); }
.shot__preview { width: 64px; height: 64px; flex: none; border-radius: 16px; background: var(--green-soft) center / cover no-repeat; color: var(--green); display: grid; place-items: center; }
.shot__preview--round { border-radius: 50%; }
.shot__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.shot__text small { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.shot__status { flex: none; font-weight: 800; color: var(--green); font-size: .875rem; }
.shot:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Fotos guardadas */
.photo { display: inline-block; background: var(--green-soft) center / cover no-repeat; flex: none; }
.photo--empty { background-image: none; }
.pet-avatar--photo { width: 56px; height: 56px; border-radius: 20px; transform: rotate(-4deg); }
.walker-photo { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--night); }
.profile-photo { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.who { display: flex; align-items: center; gap: 12px; }
.who > div { display: grid; }
.who__photo { width: 52px; height: 52px; border-radius: 16px; }

.verify-intro { display: grid; gap: 6px; }
.verify-card { display: grid; justify-items: center; text-align: center; gap: 10px; border: 2px dashed var(--green); }
.chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Recordatorio de correa y bolsitas */
.acks { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--orange-soft); }
.acks .check b { color: var(--night); }
.acks-ok { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--green-2); }

/* ======================= PASEO SEGURO (0013) ======================= */
body.no-scroll { overflow: hidden; }
.small { font-size: .8125rem; }
.stack { display: grid; gap: 10px; }

/* Selfie del día debajo de "Pasear / Descansar" */
.duty-wrap { display: grid; gap: 8px; }
.duty__selfie { display: flex; align-items: center; gap: 8px; margin: 0 6px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.duty__selfie span:first-child { flex: none; display: inline-grid; }
.duty__selfie--aprobado { color: var(--green-2); }
.duty__selfie--pendiente { color: #A3105A; }
.duty__selfie--rechazado { color: var(--danger); }

/* Cámara en vivo */
.cam { position: fixed; inset: 0; z-index: 4000; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.cam__top { display: flex; gap: 12px; align-items: center; padding: calc(12px + var(--safe-top)) 14px 10px; }
.cam__top > div { display: grid; } .cam__top small { opacity: .8; font-size: .8125rem; }
.cam__close { background: rgba(255,255,255,.15); color: #fff; border: 0; }
.cam__stage { position: relative; display: grid; place-items: center; overflow: hidden; }
.cam__video, .cam__preview { width: 100%; height: 100%; object-fit: cover; }
.cam__video--mirror { transform: scaleX(-1); }
.cam__msg { position: absolute; padding: 20px; text-align: center; max-width: 320px; }
.cam__stage .btn { position: absolute; bottom: 30px; }
.cam__bar { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 16px calc(20px + var(--safe-bottom)); }
.cam__shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: var(--lime); cursor: pointer; }
.cam__shutter[disabled] { opacity: .4; }
.cam__btn { flex: 1; max-width: 200px; }
.cam .btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; }

/* Hoja que sube desde abajo */
.overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(14, 16, 51, .55); display: grid; align-items: end; }
.overlay__sheet { background: var(--surface); border-radius: 28px 28px 0 0; padding: 18px 20px calc(22px + var(--safe-bottom)); display: grid; gap: 14px; max-height: 88vh; overflow-y: auto; width: min(560px, 100%); justify-self: center; animation: up .25s var(--ease); }
.overlay__title { font-family: var(--font-title); font-size: 1.35rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.code-input { width: 100%; font: 800 2.4rem/1 var(--font-title); letter-spacing: .5em; text-align: center; padding: 16px 0 16px .5em; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.code-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Pantalla del paseo */
.screen--paseo { padding-bottom: 0; }
.screen--paseo .topbar__title { font-family: var(--font-title); font-size: 1.15rem; }
.paseo { gap: 14px; padding-bottom: 12px; }
.paseo-menu { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.paseo-menu .tabbar__item { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .72rem; position: relative; }
.paseo-menu .tabbar__item .badge { position: absolute; top: 2px; right: calc(50% - 26px); }
.tabbar__item--sos { color: #FF8FB8 !important; }
.paseo-status { border-radius: 24px; padding: 18px; background: var(--green); color: #fff; display: grid; gap: 4px; box-shadow: 0 12px 26px rgba(45, 59, 255, .25); }
.paseo-status strong { font-family: var(--font-title); font-size: 1.45rem; line-height: 1.15; }
.paseo-status span { opacity: .9; font-size: .9rem; }
.paseo-status--arrived, .paseo-status--in_progress { background: var(--night); }
.paseo-status--arrived strong, .paseo-status--in_progress strong { color: var(--lime); }
.paseo-status--completed { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.paseo-status--cancelled, .paseo-status--expired { background: #E6E8FA; color: var(--ink); box-shadow: none; }
.code-card { border-radius: 24px; padding: 18px; background: var(--lime); color: var(--night); display: grid; gap: 6px; text-align: center; box-shadow: 0 12px 26px rgba(150, 200, 0, .3); }
.code-card--drop { background: var(--orange); color: #fff; box-shadow: 0 12px 26px rgba(255, 79, 163, .3); }
.code-card__label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.code-card__digits { font: 700 3.2rem/1.1 var(--font-title); letter-spacing: .08em; }
.code-card p { margin: 0; font-size: .875rem; font-weight: 600; }
.test-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.card--flush { padding: 0; overflow: hidden; }
.map--inline { position: relative; inset: auto; height: 230px; }
.map--pick { position: relative; inset: auto; height: 260px; border-radius: 20px; overflow: hidden; }
.map-info { padding: 10px 14px; margin: 0; }
.person__head { display: flex; gap: 14px; align-items: center; }
.person__photo { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--green-soft); }
.person__head > div { display: grid; gap: 4px; min-width: 0; }
.person__role { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.person__name { font-family: var(--font-title); font-size: 1.3rem; line-height: 1.15; }
.person__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person__phone { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1.15rem; }
.person__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.person__actions .btn { min-height: 46px; padding: 0 8px; font-size: .85rem; gap: 6px; }
.stars { color: #F2A900; font-weight: 800; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; }
.stars--big { font-size: 1.6rem; }
.reviews { display: grid; gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.reviews__title { font-size: .8125rem; font-weight: 800; color: var(--muted); }
.review { margin: 0; padding: 10px 12px; border-radius: 16px; background: var(--bg); display: grid; gap: 2px; }
.review p { margin: 0; } .review cite { font-size: .75rem; color: var(--muted); font-style: normal; }
.pet-full__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pet-full__photo { width: 100%; aspect-ratio: 1; border-radius: 18px; }
.pet-full__name { font-family: var(--font-title); font-size: 1.35rem; }
.care { margin: 10px 0 0; display: grid; gap: 6px; }
.care__row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: .875rem; }
.care__row dt { font-weight: 800; color: var(--muted); } .care__row dd { margin: 0; }
.care__row--alert { background: var(--orange-soft); } .care__row--alert dt { color: #A3105A; }
.addr__main { display: block; font-family: var(--font-title); font-size: 1.2rem; margin: 4px 0 2px; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.timeline__item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.timeline__item--sos .timeline__dot, .timeline__item--no_show .timeline__dot, .timeline__item--cancelado .timeline__dot { background: var(--orange-soft); color: #A3105A; }
.timeline__photo { display: block; width: 140px; height: 105px; border-radius: 14px; margin-top: 6px; }
.review-form { display: grid; gap: 10px; }
.star-row { display: flex; gap: 6px; }
.star-btn { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-size: 1.6rem; color: #F2A900; cursor: pointer; }
.star-btn.is-on { border-color: #F2A900; background: #FFF6D6; }
.chips--wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--wrap .chip { min-height: 44px; padding: 0 14px; font-weight: 700; }
.chip--sos.is-on { background: var(--danger); border-color: var(--danger); }
.btn--alarm { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--alarm-soft { background: var(--danger-soft); color: var(--danger); }

/* Dirección exacta */
.address-form { padding: 14px; border-radius: 22px; background: var(--bg); }
.pin-msg { font-weight: 700; color: var(--green-2); }
.care-form { border: 2px dashed var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 12px; margin: 0; }
.care-form legend { font-family: var(--font-title); font-weight: 600; padding: 0 6px; }
.care-edit { margin-top: 6px; display: grid; gap: 10px; }

/* Ayuda */
.help-hero { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.ticket-card { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.ticket-card p { margin: 0; }
.ticket-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ticket-head .small { flex-basis: 100%; }
.chat-who { display: block; font-size: .72rem; font-weight: 800; color: var(--green); margin-bottom: 2px; }
.chat-msg--ia { background: #EEF0FF; }
.chat-photo { display: block; width: 180px; height: 135px; border-radius: 12px; margin: 6px 0; }
.chat-attach { flex: none; }
.avatar--wuff { background: var(--green); color: #fff; display: inline-grid; place-items: center; }

/* ==========================================================================
   APP STORE / GOOGLE PLAY · cuenta, privacidad, reportes, permisos, sin conexión
   ========================================================================== */
/* Avisos SIEMPRE por encima de las hojas (antes quedaban tapados por la hoja abierta) */
.toasts { z-index: 4000; }
.overlay__sheet { max-height: 88dvh; }

/* Menú de "Cuenta y privacidad" en Perfil */
.menu-list { display: grid; margin: 8px -6px 0; }
.menu-list__item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 8px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-list__item > span:first-child { color: var(--green); display: grid; }
.menu-list__item:active, .menu-list__item:hover { background: var(--bg); }
.menu-list__item + .menu-list__item { border-top: 1px solid var(--line); border-radius: 0; }
.menu-list__item--danger, .menu-list__item--danger > span:first-child { color: var(--danger); }

/* Eliminar cuenta */
.danger-card { border: 2px solid var(--danger-soft); display: grid; gap: 8px; }
.danger-card > strong { color: var(--danger); }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.link { color: var(--green); font-weight: 700; text-align: center; }

/* Bloqueados */
.stack { display: grid; gap: 12px; }
.block-row { gap: 12px; }
.block-row__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.block-row__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn--sm { width: auto; min-height: 40px; padding: 8px 16px; font-size: .875rem; flex: none; }

/* Reportar */
.link-btn { background: none; border: 0; padding: 6px 4px; min-height: 36px; color: var(--muted); font: inherit; font-weight: 700; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn--sm { font-size: .75rem; min-height: 28px; margin-left: 8px; }
.person__safety { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.report-preview { margin: 0; padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 12px; overflow-wrap: anywhere; }
.chips .chip[aria-pressed="true"] { outline: 2px solid var(--green); }
.chat-report { background: none; border: 0; padding: 2px 0 2px 8px; color: inherit; opacity: .7; font: inherit; font-size: .6875rem; text-decoration: underline; cursor: pointer; }
.chat-head__more { margin-left: auto; color: var(--muted); }

/* Explicación de permisos */
.permiso { text-align: center; }
.permiso__icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }

/* Sin conexión */
.offline { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  background: rgba(14, 16, 51, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: screen-in .3s var(--ease); }
.offline__card { width: min(380px, 100%); background: var(--surface); border-radius: 28px; padding: 28px 22px; text-align: center; display: grid; gap: 12px; box-shadow: var(--shadow); }
.offline__icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; background: var(--night); color: var(--lime); }
.offline__card h2 { font-size: 1.4rem; }
.offline__card p { color: var(--muted); }

/* Textos legales dentro de la app */
.legal-doc { display: grid; gap: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.legal-doc h2 { font-size: 1.15rem; margin-top: 14px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; display: grid; gap: 4px; }
.legal-doc a { color: var(--green); font-weight: 700; }
.legal-doc .fecha, .legal-doc footer { color: var(--muted); font-size: .875rem; }
.legal-doc .caja { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.legal-doc--sheet { max-height: none; }
.legal-links { text-align: center; color: var(--muted); font-size: .8125rem; margin-top: 14px; }
.legal-links a { color: var(--muted); font-weight: 700; }
.bullets, .legal-doc ul { list-style: disc; } .legal-doc ol { list-style: decimal; }
.bullets li::marker, .legal-doc li::marker { color: var(--green); }
.form > textarea.field__input { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--bg); width: 100%; resize: vertical; }
.form > textarea.field__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Celular acostado: la barra inferior se hace compacta (si no, tapa media pantalla) */
@media (orientation: landscape) and (max-height: 500px) {
  .tabbar { padding: 3px 6px; border-radius: 18px; bottom: calc(6px + var(--safe-bottom)); margin-top: 12px; }
  .tabbar__item { padding: 4px 4px; font-size: .625rem; grid-auto-flow: column; gap: 6px; align-items: center; justify-content: center; }
  .tabbar__item svg { width: 18px; height: 18px; }
  .code-card { padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- Precio del paseo (nuevo paseo y detalle) ---------- */
.price-box { display: grid; gap: 8px; }
.price-box__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.price-box__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-box__row.is-good span:last-child { color: var(--green, #1f8a4c); font-weight: 600; }
.price-box__row.is-total { border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 10px; margin-top: 2px; font-weight: 800; font-size: 1.1rem; }
.price-box .field__hint { margin: 0; }

/* ---------- Billetera del paseador ---------- */
.notice--warn { background: var(--orange-soft); color: #7A0C44; }
.wallet-hero { background: var(--night); color: #fff; display: grid; gap: 4px; }
.wallet-hero__label { font-size: .85rem; opacity: .75; }
.wallet-hero__value { font-family: var(--font-title); font-size: 2.4rem; line-height: 1.1; color: var(--lime); }
.wallet-hero__value.is-neg { color: #FF8FB8; }
.wallet-hero__hint { margin: 4px 0 0; font-size: .9rem; opacity: .9; }
.wallet-key { font-weight: 800; font-size: 1.05rem; margin: 8px 0 2px; word-break: break-all; }
.moves { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.moves__item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.moves__item:first-child { border-top: 0; }
.moves__item.is-void { opacity: .45; text-decoration: line-through; }
.moves__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); }
.moves__icon--multa { background: var(--danger-soft); color: var(--danger); }
.moves__icon--pago { background: #E6E8FA; color: var(--night); }
.moves__text { display: grid; min-width: 0; }
.moves__text span { overflow-wrap: anywhere; }
.moves__amount { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--green-2); }
.moves__amount.is-neg { color: var(--danger); }
.how summary { font-weight: 800; cursor: pointer; }
.key-nudge { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--orange-soft); }
.key-nudge > span:first-child { color: #A3105A; display: grid; }
.key-nudge > span:last-child { display: grid; }
.noshow-wait { margin: 0; text-align: center; }
.credit-card__value { font-family: var(--font-title); font-size: 1.3rem; color: var(--green-2); }

/* Entrar con el celular: casilla grande del código de 6 dígitos */
.otp { width: 100%; font: 700 2rem/1 var(--font-title); letter-spacing: .5em; text-align: center; padding: 16px 12px 16px calc(12px + .5em);
  border: 2px solid var(--line, #dfe2f2); border-radius: 16px; background: #fff; color: var(--night, #0E1033); }
.otp:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(45, 59, 255, .15); }
.center { text-align: center; }

/* Propina: tres botones en fila */
.tip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tip-row .btn { min-width: 0; padding-left: 8px; padding-right: 8px; }
