/* Patas al Parque — demo de infoweb.mx
   Dirección: libreta de campo de la paseadora; firma = sellos (credencial, matasellos, medallas). */
:root {
  --cielo: #E8F4F8;
  --cielo-2: #D3EAF2;
  --pasto: #2F9E5B;
  --pasto-h: #17603A;
  --pasto-c: #DDF1E3;
  --elote: #FFC83D;
  --elote-c: #FFF3CC;
  --jacaranda: #7E5BD6;
  --jacaranda-h: #5B3DB0;
  --jacaranda-c: #EEE8FB;
  --tinta: #1E2A32;
  --gris: #51606A;
  --linea: #CFE0E7;
  --blanco: #FFFFFF;
  --sello: #C23B33;
  --wa: #0F7A6E;
  --wa-h: #0B6359;
  --f-disp: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --f-txt: 'Figtree', 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --r: 20px;
  --sombra: 0 1px 0 rgba(30, 42, 50, .06), 0 8px 24px -12px rgba(30, 42, 50, .28);
  --tab: 66px;
  --cab: 104px;
  --ancho: 600px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cielo);
  color: var(--tinta);
  font: 400 1rem/1.5 var(--f-txt);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--pasto-h); }
h1, h2, h3 { font-family: var(--f-disp); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--jacaranda); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Banner de demo (aviso de la plataforma, ajeno a la paleta) ---------- */
.demo-banner { background: #2b2620; color: #f2ece1; text-align: center; font-size: .85rem; line-height: 1.4; padding: .4rem .9rem; letter-spacing: .01em; }
@media (min-width: 640px) { .demo-banner { font-size: .92rem; } }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.barra-sup { max-width: var(--ancho); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .45rem 16px; min-height: 52px; }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); font: 800 1.15rem/1 var(--f-disp); letter-spacing: -.02em; }
.marca svg { width: 34px; height: 34px; flex: none; }
.boton-icono { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--blanco); display: grid; place-items: center; color: var(--pasto-h); }
.boton-icono svg { width: 22px; height: 22px; }
.boton-icono[aria-pressed="false"] { color: var(--gris); }

/* ---------- Estructura ---------- */
main { max-width: var(--ancho); margin: 0 auto; padding: 0 16px calc(var(--tab) + 76px + env(safe-area-inset-bottom)); }
.vista { padding-top: 14px; }
.bloque { margin-top: 26px; }
.bloque-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 10px; }
.bloque-cab h2 { font-size: 1.32rem; font-weight: 700; }
.cuenta { font: 500 .82rem var(--f-mono); color: var(--gris); }
.ceja { margin: 0 0 .25rem; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--jacaranda-h); }
.intro { padding: 14px 2px 0; }
.intro h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; }
.intro-sola { padding-top: 10px; }
.sub { margin: .4rem 0 0; color: var(--gris); }
.fecha-hoy { display: inline-flex; margin: .55rem 0 0; padding: .3rem .7rem; border-radius: 99px; background: var(--blanco); border: 1.5px solid var(--linea); font: 500 .85rem var(--f-mono); color: var(--tinta); }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.15rem; border-radius: 99px; border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.15; text-align: center; transition: transform .12s ease, background-color .15s ease; }
.boton:active { transform: scale(.97); }
.boton svg { width: 22px; height: 22px; flex: none; }
.boton-verde { background: var(--pasto-h); color: #fff; }
.boton-verde:hover { background: #0F4A2C; }
.boton-sol { background: var(--elote); color: var(--tinta); }
.boton-sol:hover { background: #F5B70E; }
.boton-borde { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--linea); }
.boton-borde:hover { border-color: var(--pasto); }
.boton-wa { background: var(--wa); color: #fff; }
.boton-wa:hover { background: var(--wa-h); }
.boton-rojo { background: var(--sello); color: #fff; }
.ancho { width: 100%; margin-top: 18px; }
.enlace { background: none; border: 0; padding: .6rem .3rem; color: var(--pasto-h); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.boton-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--blanco); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; flex: none; }

/* ---------- Portada ---------- */
.portada { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 16 / 9; background: var(--cielo-2); }
.portada img { width: 100%; height: 100%; object-fit: cover; }
.sello-ejemplo { position: absolute; right: 12px; top: 12px; transform: rotate(4deg); padding: .32rem .62rem; border: 2.5px double var(--sello); color: var(--sello); background: rgba(255, 255, 255, .92); border-radius: 8px; font: 800 .78rem/1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- La manada de hoy ---------- */
.manada-fila { list-style: none; margin: 0 -16px; padding: 6px 16px 10px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.manada-fila::-webkit-scrollbar { display: none; }
.manada-fila li { scroll-snap-align: start; flex: none; }
.cara-btn { background: none; border: 0; padding: 0; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.cara { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--blanco); box-shadow: 0 0 0 2.5px var(--elote), var(--sombra); }
.cara img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cara-nombre { font-weight: 700; font-size: .82rem; line-height: 1.15; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cara-hora { font: 500 .72rem var(--f-mono); color: var(--gris); }
.impaciente .cara { animation: impaciencia 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes impaciencia {
  0%, 62%, 100% { transform: rotate(0) translateY(0); }
  68% { transform: rotate(-6deg) translateY(-2px); }
  74% { transform: rotate(5deg) translateY(0); }
  80% { transform: rotate(-3deg) translateY(-1px); }
  86% { transform: rotate(0) translateY(0); }
}
.hecho .cara { box-shadow: 0 0 0 2.5px var(--pasto), var(--sombra); }
.palomita { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--pasto-h); color: #fff; display: grid; place-items: center; border: 2px solid #fff; font-size: .8rem; font-weight: 800; }
.zzz { position: absolute; left: 2px; top: -6px; font: 800 .8rem var(--f-disp); color: var(--jacaranda-h); background: #fff; border-radius: 99px; padding: 0 .3rem; box-shadow: var(--sombra); }

/* ---------- Turnos ---------- */
.turnos { display: grid; gap: 12px; }
.turno { background: var(--blanco); border-radius: var(--r); box-shadow: var(--sombra); padding: 14px; display: grid; gap: 12px; border: 1.5px solid transparent; }
.turno-cab { display: flex; align-items: center; gap: 12px; }
.turno-hora { font: 500 1.5rem/1 var(--f-mono); letter-spacing: -.03em; }
.turno-quien { display: flex; align-items: center; gap: .45rem; margin-left: auto; font-size: .88rem; color: var(--gris); }
.turno-quien img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.turno-perros { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-perro { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 99px; background: var(--cielo); font-weight: 600; font-size: .9rem; border: 0; }
.chip-perro img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip-perro.agregar { background: var(--blanco); border: 1.5px dashed var(--linea); padding: 4px 12px; color: var(--pasto-h); min-height: 38px; }
.turno-pie { display: flex; gap: 10px; align-items: center; }
.turno-pie .boton { flex: 1; }
.turno.hecho { background: var(--pasto-c); }
.turno-hecho-txt { font-size: .9rem; color: var(--pasto-h); font-weight: 600; }
.turno.vacio { opacity: .75; }

/* ---------- Equipo ---------- */
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.equipo figure { margin: 0; background: var(--blanco); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); }
.equipo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.equipo figcaption { padding: .55rem .8rem; font-size: .92rem; }

/* ---------- CTA InfoWeb ---------- */
.cta-final { margin-top: 30px; padding: 22px 18px; border-radius: 26px; background: var(--elote-c); border: 2px solid var(--elote); }
.cta-final h2 { font-size: 1.45rem; font-weight: 800; }
.cta-final p { margin: .6rem 0 1rem; }
.cta-final .boton { width: 100%; }
.cta-tel { font-size: .9rem; color: var(--gris); margin-bottom: 0 !important; }
.cta-fijo { position: fixed; right: max(12px, calc(50vw - var(--ancho) / 2 + 12px)); bottom: calc(var(--tab) + 12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 190px; padding: .45rem .8rem; border-radius: 99px; border: 0; background: var(--tinta); color: #fff; font-size: .76rem; font-weight: 600; line-height: 1.2; box-shadow: var(--sombra); text-align: left; }

/* ---------- Pie ---------- */
.pie { margin-top: 34px; padding: 18px 2px 0; border-top: 1.5px solid var(--linea); font-size: .88rem; color: var(--gris); }
.pie p { margin: 0 0 .6rem; }
.pie strong { color: var(--tinta); }
.pie .credito { margin-top: 1rem; color: var(--tinta); }
.pie-ia { font-style: italic; }

/* ---------- Barra de pestañas ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; justify-content: center; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; max-width: 150px; height: var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--gris); font-size: .78rem; font-weight: 700; }
.tabbar svg { width: 26px; height: 26px; padding: 2px; border-radius: 12px; box-sizing: content-box; width: 40px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--pasto-h); }
.tabbar a[aria-current="page"] svg { background: var(--pasto-c); }

/* ---------- Credenciales (lista) ---------- */
.credenciales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 520px) { .credenciales { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-cred { position: relative; background: var(--blanco); border: 0; border-radius: 18px; padding: 0 0 10px; box-shadow: var(--sombra); text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.mini-cred::before { content: ''; display: block; height: 14px; background: var(--pasto-h); }
.mini-cred img, .mini-cred .sin-foto { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.mini-cred strong { display: block; padding: .5rem .7rem 0; font: 700 1.1rem/1.1 var(--f-disp); }
.mini-cred span { padding: 0 .7rem; font-size: .8rem; color: var(--gris); }
.energia-mini { display: flex; gap: 3px; padding: .35rem .7rem 0; }
.energia-mini i { width: 14px; height: 6px; border-radius: 3px; background: var(--linea); }
.energia-mini i.on { background: var(--elote); }
.sin-foto { display: grid; place-items: center; background: var(--jacaranda-c); color: var(--jacaranda-h); font: 800 2.6rem var(--f-disp); }

/* ---------- Capas / modales ---------- */
.capa { position: fixed; inset: 0; z-index: 80; background: rgba(20, 30, 36, .72); display: flex; align-items: flex-end; justify-content: center; animation: aparece .2s ease both; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
#capa-cred { align-items: center; padding: 12px; }
.cred-modal { position: relative; width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
#cred-root { width: 100%; }
.cred-modal .cerrar { position: absolute; right: -4px; top: -4px; z-index: 3; }
.cred-nav { display: flex; gap: 10px; width: 100%; }
.cred-nav .boton { flex: none; min-width: 52px; }
.cred-nav .boton-verde { flex: 1; }
.cred-modal .enlace { color: #fff; }
.hoja { width: min(var(--ancho), 100%); max-height: 88vh; overflow-y: auto; background: var(--blanco); border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: sube .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sube { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.hoja h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: .4rem; }
.hoja p { margin: .4rem 0 .9rem; }
.hoja .acciones { display: grid; gap: 10px; margin-top: 14px; }
.hoja-perro { padding: 12px 0; border-top: 1.5px solid var(--linea); }
.hoja-perro:first-of-type { border-top: 0; }
.hoja-perro h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: .5rem; }
.hoja-perro h3 img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; margin: .3rem 0 .7rem; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; inset: 0; }
.opciones span { display: inline-flex; min-height: 40px; align-items: center; padding: .4rem .85rem; border-radius: 99px; border: 1.5px solid var(--linea); font-weight: 600; font-size: .92rem; }
.opciones input:checked + span { background: var(--pasto-h); border-color: var(--pasto-h); color: #fff; }
.opciones input:focus-visible + span { outline: 3px solid var(--jacaranda); outline-offset: 2px; }
.campo-t { font-size: .82rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: .3rem 0 .6rem; }
.check input { width: 22px; height: 22px; accent-color: var(--pasto-h); }
textarea, input[type="text"], input[type="number"], input[type="tel"], select {
  width: 100%; font: inherit; padding: .65rem .8rem; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta);
}
textarea { min-height: 70px; resize: vertical; }
.form-perro label { display: block; margin-top: .7rem; font-weight: 600; font-size: .92rem; }
.form-perro .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ayuda-c { font-size: .82rem; color: var(--gris); font-weight: 400; }

/* ---------- Credencial (gafete que se voltea) ---------- */
.cred-flip { width: 100%; aspect-ratio: 33 / 50; perspective: 1400px; cursor: pointer; }
.cred-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.3, 1.35, .45, 1); }
.cred-flip.volteada .cred-in { transform: rotateY(180deg); }
.cred-cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--blanco); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.cred-atras { transform: rotateY(180deg); }
.cred-banda { position: relative; height: 58px; flex: none; background: var(--pasto-h); color: var(--elote); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 9px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.cred-banda::before { content: ''; position: absolute; left: 50%; top: 10px; width: 54px; height: 12px; margin-left: -27px; border-radius: 8px; background: var(--cielo); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.cred-banda b { color: #fff; font-weight: 500; }
.cred-foto { position: relative; margin: 12px 12px 0; border-radius: 18px; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.cred-foto img, .cred-foto .sin-foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sellos { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sello { padding: .3rem .5rem; border: 2.5px double currentColor; border-radius: 8px; background: rgba(255, 255, 255, .9); font: 800 .7rem/1.05 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; max-width: 70%; }
.sello:nth-child(odd) { color: #A8302A; transform: rotate(-4deg); }
.sello:nth-child(even) { color: var(--jacaranda-h); transform: rotate(3deg); }
.cred-datos { padding: 10px 16px 14px; flex: none; }
.cred-nombre { font: 800 2rem/1 var(--f-disp); letter-spacing: -.03em; }
.cred-meta { margin: .3rem 0 .55rem; color: var(--gris); font-size: .9rem; }
.energia { display: flex; align-items: center; gap: .6rem; }
.energia small { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.energia-barra { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.energia-barra i { height: 10px; border-radius: 5px; background: var(--linea); }
.energia-barra i.on { background: var(--elote); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.cred-atras .cred-cuerpo { flex: 1 1 auto; min-height: 0; padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; font-size: .92rem; }
.cred-cuerpo h3 { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: 0 0 .15rem; }
.cred-cuerpo p { margin: 0; }
.cuidado { background: var(--elote-c); border-radius: 14px; padding: 10px 12px; }
.medallas-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.medalla-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem .2rem .3rem; border-radius: 99px; background: var(--jacaranda-c); color: var(--jacaranda-h); font-size: .78rem; font-weight: 700; }
.medalla-chip svg { width: 18px; height: 18px; }
.ficticio { font-size: .75rem; color: var(--gris); }

/* ---------- Expediente ---------- */
.exp-cab { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.exp-cab img, .exp-cab .sin-foto { width: 92px; height: 92px; border-radius: 26px; object-fit: cover; box-shadow: var(--sombra); font-size: 2rem; }
.exp-cab h1 { font-size: 2.2rem; font-weight: 800; }
.volver { display: inline-flex; align-items: center; gap: .3rem; margin: 2px 0 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.tarjeta { background: var(--blanco); border-radius: var(--r); box-shadow: var(--sombra); padding: 14px 16px; margin-top: 12px; }
.tarjeta h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; font-size: .95rem; }
.datos dt { color: var(--gris); }
.datos dd { margin: 0; font-weight: 600; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.galeria img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.galeria img:first-child { grid-column: span 2; grid-row: span 2; }
.medallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.medalla { text-align: center; padding: 10px 6px; border-radius: 16px; background: var(--cielo); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.medalla svg { width: 38px; height: 38px; margin: 0 auto 4px; display: block; color: var(--linea); }
.medalla.ganada { background: var(--jacaranda-c); color: var(--jacaranda-h); }
.medalla.ganada svg { color: var(--jacaranda); }
.medalla small { display: block; font-weight: 500; color: var(--gris); margin-top: 2px; }
.botones-fila { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.botones-fila .boton { flex: 1 1 140px; }

/* ---------- Historial ---------- */
.dia { margin-top: 20px; }
.dia h2 { font: 500 .8rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-bottom: 8px; }
.paseo-reg { background: var(--blanco); border-radius: var(--r); box-shadow: var(--sombra); padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.paseo-reg > img { width: 64px; height: 80px; border-radius: 12px; object-fit: cover; }
.paseo-reg h3 { font: 700 1rem/1.2 var(--f-txt); }
.paseo-reg .linea { font-size: .86rem; color: var(--gris); margin: .15rem 0 .45rem; }
.paseo-reg .caras { display: flex; gap: 6px; flex-wrap: wrap; }
.paseo-reg .caras button { border: 0; padding: 0; background: none; display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; gap: 2px; min-width: 44px; }
.paseo-reg .caras img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--elote); }
.iconitos { display: flex; gap: .55rem; flex-wrap: wrap; font: 500 .78rem var(--f-mono); color: var(--gris); margin-top: .4rem; }
.iconitos span { display: inline-flex; align-items: center; gap: .15rem; }
.iconitos svg { width: 15px; height: 15px; }

/* ---------- Cobros ---------- */
.meses { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.meses button { min-height: 44px; padding: .35rem .95rem; border-radius: 99px; border: 1.5px solid var(--linea); background: #fff; font-weight: 700; }
.meses button[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.totales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.total { background: var(--blanco); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sombra); }
.total b { display: block; font: 500 1.6rem/1.1 var(--f-mono); letter-spacing: -.03em; }
.total span { font-size: .84rem; color: var(--gris); }
.total.debe b { color: var(--sello); }
.dueno { background: var(--blanco); border-radius: var(--r); box-shadow: var(--sombra); padding: 14px; margin-top: 12px; }
.dueno-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dueno h3 { font: 700 1.08rem/1.2 var(--f-txt); }
.dueno .saldo { text-align: right; font: 500 1.25rem/1 var(--f-mono); white-space: nowrap; }
.dueno .saldo small { display: block; font: 600 .72rem var(--f-txt); color: var(--gris); margin-top: 3px; }
.dueno .saldo.ok { color: var(--pasto-h); }
.dueno .saldo.mal { color: var(--sello); }
.desglose { list-style: none; padding: 0; margin: .7rem 0; font-size: .9rem; display: grid; gap: 6px; }
.desglose li { display: flex; align-items: center; gap: .5rem; }
.desglose img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.desglose .monto { margin-left: auto; font-family: var(--f-mono); }
.dueno .botones-fila { margin-top: 8px; }
.dueno .boton { min-height: 44px; font-size: .92rem; }
.pago-form { display: flex; gap: 8px; margin-top: 8px; }
.pago-form input { flex: 1; }
.restaurar { margin-top: 30px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--linea); text-align: center; }
.restaurar p { margin: 0 0 .6rem; color: var(--gris); }

/* ---------- Paseo en vivo ---------- */
.paseo { position: fixed; left: 0; right: 0; top: var(--cab); bottom: 0; z-index: 70; background: var(--cielo); display: flex; flex-direction: column; max-width: var(--ancho); margin: 0 auto; overflow-y: auto; }
.paseo-cab { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.paseo-perros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.paseo-perros button { flex: none; display: flex; align-items: center; gap: .35rem; padding: 3px 10px 3px 3px; border-radius: 99px; border: 2px solid transparent; background: #fff; font-weight: 700; font-size: .85rem; min-height: 40px; }
.paseo-perros button img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.paseo-perros button[aria-checked="true"] { border-color: var(--pasto-h); background: var(--pasto-c); }
.paseo-perros .todos { padding: 3px 12px; }
.reloj { flex: none; text-align: right; background: var(--tinta); color: #fff; border-radius: 14px; padding: 5px 10px; }
.reloj span { display: block; font: 500 1.35rem/1 var(--f-mono); letter-spacing: -.02em; }
.reloj small { font: 500 .72rem var(--f-mono); color: var(--elote); }
.mapa-caja { position: relative; flex: 1 0 auto; min-height: 270px; margin: 0 12px; border-radius: 22px; overflow: hidden; background: #EFE6D2; box-shadow: inset 0 0 0 1.5px rgba(30, 42, 50, .08); }
#mapa { position: absolute; inset: 0; }
#mapa svg { width: 100%; height: 100%; display: block; }
.globo { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 26px)); background: #fff; color: var(--tinta); padding: .3rem .65rem; border-radius: 14px; font-weight: 700; font-size: .85rem; white-space: nowrap; box-shadow: var(--sombra); pointer-events: none; animation: globo .25s cubic-bezier(.2, 1.6, .4, 1) both; }
.globo::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes globo { from { transform: translate(-50%, calc(-100% - 16px)) scale(.6); opacity: 0; } }
.tira { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 3; }
.tira img { width: 54px; height: 68px; object-fit: cover; border-radius: 8px; border: 3px solid #fff; box-shadow: var(--sombra); animation: llega .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes llega { from { transform: translateY(-120px) scale(2.2) rotate(-8deg); } }
.foto-vuela { position: fixed; z-index: 75; border: 5px solid #fff; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .45); object-fit: cover; pointer-events: none; transition: all .7s cubic-bezier(.5, 0, .3, 1); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.flash.dispara { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.paseo-ctrl { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.velocidad { display: flex; background: #fff; border-radius: 99px; padding: 3px; border: 1.5px solid var(--linea); }
.velocidad button { flex: 1; border: 0; background: none; border-radius: 99px; padding: .35rem; font-weight: 700; font-size: .82rem; min-height: 40px; }
.velocidad button[aria-pressed="true"] { background: var(--elote); }
.botones-ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.botones-ev button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border-radius: 18px; border: 0; background: #fff; box-shadow: var(--sombra); font-weight: 700; font-size: .85rem; transition: transform .1s ease; }
.botones-ev button:active { transform: scale(.94); }
.botones-ev svg { width: 26px; height: 26px; }
[data-ev="pipi"] svg { color: #9A7400; }
[data-ev="popo"] svg { color: #8A5A3B; }
[data-ev="agua"] svg { color: #2C8DB8; }
[data-ev="jugo"] svg { color: var(--sello); }
[data-ev="amigo"] svg { color: var(--jacaranda); }
.botones-ev .ev-camara { background: var(--tinta); color: #fff; }
.botones-ev .ev-camara svg { color: var(--elote); }
.paseo-acciones { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.paseo-acciones .boton { min-height: 48px; }
.btn-listo { animation: late 1.1s ease-in-out infinite; }
@keyframes late { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255, 200, 61, .45); } }
@media (max-height: 700px) {
  .botones-ev button { min-height: 50px; font-size: .78rem; }
  .botones-ev svg { width: 22px; height: 22px; }
}

/* Mapa */
.ev-pin { animation: pin .45s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes pin { from { transform: scale(0); } }
.huella-m { animation: huella .4s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes huella { from { opacity: 0; transform: scale(.4); } }

/* ---------- Postal ---------- */
.postal-vista { position: fixed; left: 0; right: 0; top: var(--cab); bottom: 0; z-index: 72; background: var(--cielo); display: flex; flex-direction: column; }
.postal-barra { display: flex; align-items: center; gap: 10px; padding: 8px 12px; max-width: var(--ancho); width: 100%; margin: 0 auto; }
.postal-pestanas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.postal-pestanas button { flex: none; display: flex; align-items: center; gap: .35rem; padding: 3px 10px 3px 3px; border-radius: 99px; border: 2px solid transparent; background: #fff; font-weight: 700; font-size: .85rem; min-height: 40px; }
.postal-pestanas img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.postal-pestanas button[aria-selected="true"] { border-color: var(--pasto-h); background: var(--pasto-c); }
.postal-scroll { flex: 1; overflow-y: auto; padding: 4px 14px 30px; }
.postal-scroll > * { max-width: 460px; margin-left: auto; margin-right: auto; }
.espera { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 60vh; font: 700 1.1rem var(--f-disp); color: var(--pasto-h); text-align: center; }
.espera svg { width: 34px; height: 34px; animation: brinca .6s ease-in-out infinite alternate; }
@keyframes brinca { to { transform: translateY(-10px) rotate(12deg); } }
.postal-acciones { display: grid; gap: 10px; margin-top: 16px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nota-link { margin: 0; font-size: .85rem; color: var(--gris); text-align: center; min-height: 1.2em; word-break: break-all; }

.postal { position: relative; background: #fff; border-radius: 26px; box-shadow: 0 24px 50px -24px rgba(30, 42, 50, .45); padding: 18px 16px 16px; overflow: hidden; }
.postal::before { content: ''; position: absolute; inset: 7px; border-radius: 20px; border: 2px dashed var(--cielo-2); pointer-events: none; }
.pos-cab { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 76px; padding-right: 74px; }
.pos-tipo { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--jacaranda-h); }
.pos-nombre { font: 800 2.4rem/.95 var(--f-disp); letter-spacing: -.035em; margin-top: .2rem; }
.pos-con { margin-top: .3rem; font-size: .9rem; color: var(--gris); }
.estampilla { position: absolute; right: 0; top: -4px; width: 70px; height: 84px; padding: 5px; background: #fff; transform: rotate(5deg);
  -webkit-mask: radial-gradient(circle 3.5px at 50% 0, transparent 98%, #000) 0 0 / 9px 50% repeat-x, radial-gradient(circle 3.5px at 50% 100%, transparent 98%, #000) 0 100% / 9px 50% repeat-x;
  mask: radial-gradient(circle 3.5px at 50% 0, transparent 98%, #000) 0 0 / 9px 50% repeat-x, radial-gradient(circle 3.5px at 50% 100%, transparent 98%, #000) 0 100% / 9px 50% repeat-x;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.estampilla img, .estampilla .sin-foto { width: 100%; height: 100%; object-fit: cover; font-size: 1.6rem; }
.pos-fotos { position: relative; height: 0; padding-bottom: calc(65% + 44px); margin: 14px 0 6px; }
.polaroid { position: absolute; top: 0; width: 52%; background: #fff; padding: 6px 6px 18px; border-radius: 6px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.polaroid img, .polaroid .sin-foto { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid:nth-child(1) { left: 0; transform: rotate(-6deg); z-index: 1; }
.polaroid:nth-child(2) { left: 24%; top: 10px; transform: rotate(3deg); z-index: 2; }
.polaroid:nth-child(3) { right: 0; top: 2px; transform: rotate(8deg); z-index: 3; }
.polaroid.sola { left: 24%; }
.polaroid:nth-child(1):nth-last-child(2) { left: 0; z-index: 2; }
.polaroid:nth-child(2):nth-last-child(1) { left: auto; right: 0; top: 14px; z-index: 1; transform: rotate(5deg); }
.pos-frase { position: relative; margin: 14px 0 12px; padding-left: 26px; font: 700 1.32rem/1.2 var(--f-disp); color: var(--pasto-h); letter-spacing: -.01em; }
.pos-frase::before { content: '“'; position: absolute; left: 0; top: -.2em; font-size: 3rem; line-height: 1; color: var(--elote); }
.pos-mapa { position: relative; border-radius: 18px; overflow: hidden; background: #EFE6D2; aspect-ratio: 306 / 432; }
.pos-mapa svg { width: 100%; height: 100%; display: block; }
.matasellos { position: absolute; right: 8px; bottom: 8px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid #A8302A; color: #A8302A; display: grid; place-items: center; text-align: center; font: 800 .62rem/1.15 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; transform: rotate(-12deg); background: rgba(255, 255, 255, .82); }
.matasellos b { display: block; font: 500 .95rem var(--f-mono); letter-spacing: 0; }
.pos-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pos-stats div { background: var(--cielo); border-radius: 14px; padding: 8px 10px; }
.pos-stats b { display: block; font: 500 1.2rem/1.1 var(--f-mono); letter-spacing: -.03em; }
.pos-stats span { font-size: .74rem; color: var(--gris); }
.momentos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.momento { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem .3rem .4rem; border-radius: 99px; background: var(--cielo); font-size: .82rem; font-weight: 700; }
.momento svg { width: 18px; height: 18px; }
.pos-animo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; font-size: .9rem; }
.pos-animo div { border: 1.5px solid var(--linea); border-radius: 14px; padding: 8px 10px; }
.pos-animo small { display: block; font: 500 .66rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.pos-animo strong { font-family: var(--f-disp); font-size: 1.05rem; }
.pos-notas { margin: 10px 0 0; font-size: .9rem; background: var(--elote-c); border-radius: 14px; padding: 8px 12px; }
.pos-medallas { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pos-pie { margin-top: 12px; display: flex; justify-content: space-between; font: 500 .7rem var(--f-mono); color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }

/* Animación de armado de la postal */
.armando .arma { animation: arma .6s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: var(--d, 0s); }
@keyframes arma { from { transform: translateY(26px) scale(.96); } }
.armando .polaroid { animation: cae .7s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: var(--d, 0s); }
@keyframes cae { from { transform: translateY(-80px) rotate(-20deg) scale(1.3); } }
.armando .matasellos, .armando .estampilla { animation: golpe .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d, 0s); }
@keyframes golpe { from { transform: scale(1.9) rotate(-30deg); } }
.armando .ruta-postal { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: traza 1.6s ease-in-out .5s forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }

/* ---------- Guía ---------- */
.guia { position: fixed; z-index: 85; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; background: var(--tinta); color: #fff; border-radius: 20px; padding: 14px 16px 10px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); }
.guia-paso { margin: 0; font: 500 .72rem var(--f-mono); color: var(--elote); text-transform: uppercase; letter-spacing: .08em; }
.guia p { margin: .25rem 0 .4rem; }
.guia-bot { display: flex; justify-content: space-between; align-items: center; }
.guia .enlace { color: #fff; font-weight: 600; }
.guia .boton { min-height: 40px; background: var(--elote); color: var(--tinta); }
.realce { position: relative; z-index: 84; box-shadow: 0 0 0 4px var(--elote), 0 0 0 9999px rgba(20, 30, 36, .35) !important; border-radius: 20px; }

/* ---------- Toast, confeti, huellas ---------- */
.aviso-toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; top: calc(var(--cab) + 12px); z-index: 95; width: fit-content; max-width: 460px; background: #fff; border-radius: 18px; padding: .65rem 1rem; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .4); font-weight: 700; display: flex; align-items: center; gap: .6rem; animation: sube .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.aviso-toast svg { width: 32px; height: 32px; color: var(--jacaranda); flex: none; }
.confeti { position: fixed; inset: 0; z-index: 94; pointer-events: none; width: 100%; height: 100%; }
#huellas-tap { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden; }
.huella-tap { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--pasto); opacity: 0; animation: tap 1s ease-out both; }
@keyframes tap { 0% { opacity: .55; transform: scale(.5) rotate(var(--g, 0deg)); } 100% { opacity: 0; transform: scale(1.15) rotate(var(--g, 0deg)) translateY(-6px); } }

/* ---------- Página de postal compartida ---------- */
.solo-postal main { padding-bottom: 40px; }
.solo-postal .postal-acciones { margin-top: 16px; }
.postal-404 { text-align: center; padding: 40px 10px; }

/* ---------- Aviso de privacidad ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 1.25rem 16px 3rem; line-height: 1.65; }
.legal h1 { font-size: 1.9rem; margin: .4em 0 .5em; }
.legal h2 { font-size: 1.2rem; margin: 1.5em 0 .4em; }

@media (min-width: 760px) {
  .intro h1 { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .armando .ruta-postal { stroke-dashoffset: 0; }
}

/* Ajustes tras la crítica de Fase 2 */
body:has(#postal-vista:not([hidden])) .aviso-toast { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); }
body:has(.capa:not([hidden])) .cta-fijo, .cta-fijo.oculto { opacity: 0; pointer-events: none; }
.cta-fijo { transition: opacity .2s ease; }
