/* Dogui · app del plan. Misma marca que el quiz: naranja #ff8a3d, azul noche #1f2a44, Nunito.
   El crema #f3eadb es el fondo de las ilustraciones. */
:root {
  --naranja: #ff8a3d;
  --naranja-osc: #f26b1d;
  --naranja-suave: #fff1e6;
  --navy: #1f2a44;
  --texto: #2a3248;
  --gris: #6b7487;
  --linea: #ece4d8;
  --fondo: #fffaf5;
  --crema: #f3eadb;
  --blanco: #fff;
  --verde: #4caf6a;
  --verde-suave: #e6f5ea;
  --rojo: #e5484d;
  --rojo-suave: #fdecec;
  --s1: #fde9d6; --s2: #e4efe1; --s3: #fbe3e0; --s4: #e3ecf7;
  --s5: #fdf0cf; --s6: #e8e4f4; --s7: #dff0ee; --s8: #f6e2ec;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(31, 42, 68, .05), 0 6px 18px rgba(31, 42, 68, .07);
  --abajo: calc(68px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--texto);
  background: var(--fondo); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1 { font-size: 1.55rem; line-height: 1.2; font-weight: 900; color: var(--navy); }
h2 { font-size: 1.2rem; line-height: 1.25; font-weight: 800; color: var(--navy); }
h3 { font-size: 1rem; font-weight: 800; color: var(--navy); }
.pant { max-width: 30rem; margin: 0 auto; padding: 16px 16px calc(var(--abajo) + 24px); min-height: 100vh; }
.pant.sin-barra { padding-bottom: 32px; }
.chico { font-size: .875rem; color: var(--gris); }
.centro { text-align: center; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; }

/* botones */
.btn { display: block; width: 100%; padding: 15px 18px; border-radius: 999px; background: var(--naranja); color: #fff;
  font-weight: 900; font-size: 1.05rem; text-align: center; box-shadow: 0 4px 0 var(--naranja-osc); transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--naranja-osc); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sec { background: var(--blanco); color: var(--navy); box-shadow: 0 0 0 2px var(--linea) inset; }
.btn.verde { background: var(--verde); box-shadow: 0 4px 0 #3a8f55; }
.link { display: block; margin: 14px auto 0; color: var(--gris); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.atras { width: 42px; height: 42px; border-radius: 50%; background: var(--blanco); box-shadow: var(--sombra); display: grid; place-items: center;
  font-size: 1.3rem; color: var(--navy); }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.top .t { flex: 1; font-weight: 800; color: var(--navy); text-align: center; padding-right: 54px; }

/* tarjetas */
.card { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; }
.card + .card { margin-top: 12px; }
.ilus { border-radius: var(--radio); background: var(--crema); overflow: hidden; aspect-ratio: 1 / 1; }
.ilus img { width: 100%; height: 100%; object-fit: cover; }
.ilus.baja { aspect-ratio: 16 / 10; }
.etq { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--naranja-osc); background: var(--naranja-suave); padding: 3px 10px; border-radius: 999px; }
.tip { background: var(--naranja-suave); border-radius: var(--radio); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.tip img { width: 48px; height: 48px; border-radius: 50%; background: var(--crema); flex: none; }
.tip b { color: var(--navy); }

/* inicio (datos del perro) */
.razas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.raza { background: var(--blanco); border-radius: 16px; box-shadow: var(--sombra); padding: 8px 6px 10px; text-align: center;
  font-weight: 700; font-size: .85rem; color: var(--navy); border: 2px solid transparent; }
.raza img { border-radius: 12px; background: var(--crema); aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
.raza.sel { border-color: var(--naranja); }
.opc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--blanco); border-radius: 16px;
  box-shadow: var(--sombra); padding: 14px 16px; font-weight: 700; border: 2px solid transparent; }
.opc + .opc { margin-top: 10px; }
.opc.sel { border-color: var(--naranja); background: var(--naranja-suave); }
.opc .tilde { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linea); flex: none; display: grid; place-items: center; font-size: .8rem; }
.opc.sel .tilde { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.campo { width: 100%; padding: 15px 16px; border-radius: 14px; border: 2px solid var(--linea); font: inherit; font-size: 1.1rem; background: #fff; }
.campo:focus { outline: none; border-color: var(--naranja); }
.pasitos { display: flex; gap: 6px; margin: 4px 0 18px; }
.pasitos i { flex: 1; height: 6px; border-radius: 3px; background: var(--linea); }
.pasitos i.on { background: var(--naranja); }

/* hoy: encabezado y camino */
.cab { display: flex; align-items: center; gap: 12px; }
.cab .av { width: 52px; height: 52px; border-radius: 50%; background: var(--crema); overflow: hidden; flex: none; box-shadow: 0 0 0 3px #fff, var(--sombra); }
.cab .av img { width: 100%; height: 100%; object-fit: cover; }
.cab .q { flex: 1; min-width: 0; }
.cab .q b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.racha { background: var(--blanco); box-shadow: var(--sombra); border-radius: 999px; padding: 6px 12px; font-weight: 900; color: var(--navy); white-space: nowrap; }
.barra { height: 12px; border-radius: 6px; background: var(--linea); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--verde); border-radius: 6px; transition: width .4s; }
.hoy { margin-top: 16px; display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radio); padding: 14px; }
.hoy img { width: 76px; height: 76px; border-radius: 14px; background: var(--crema); flex: none; }
.hoy .q { flex: 1; } .hoy small { opacity: .75; font-weight: 700; } .hoy b { display: block; font-size: 1.1rem; line-height: 1.25; margin: 2px 0 8px; }
.hoy .btn { padding: 10px 14px; font-size: .95rem; }
.semana { margin-top: 26px; border-radius: 24px; padding: 16px 12px 8px; }
.semana header { text-align: center; margin-bottom: 8px; }
.semana header b { display: block; font-weight: 900; color: var(--navy); font-size: 1.1rem; }
.semana header span { font-size: .85rem; color: var(--gris); }
.nodo { display: flex; align-items: center; gap: 14px; width: 82%; padding: 8px 0; text-align: left; position: relative; }
.nodo:nth-of-type(odd) { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.nodo .c { width: 78px; height: 78px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 4px #fff, var(--sombra); overflow: hidden; flex: none; position: relative; }
.nodo .c img { width: 100%; height: 100%; object-fit: cover; }
.nodo .n { font-weight: 800; color: var(--navy); line-height: 1.25; }
.nodo .n small { display: block; font-weight: 700; color: var(--gris); font-size: .8rem; }
.nodo .estado { position: absolute; top: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; color: #fff; box-shadow: 0 0 0 3px #fff; }
.nodo .c { overflow: visible; } .nodo .c img { border-radius: 50%; }
.nodo.hecho .estado { background: var(--verde); }
.nodo.bloq { opacity: .55; } .nodo.bloq .c img { filter: grayscale(.6); }
.nodo.bloq .estado { background: #c9b9a3; }
.nodo.actual .c { box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(255, 138, 61, .35), var(--sombra); animation: latido 1.8s infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 14px rgba(255, 138, 61, .12), var(--sombra); } }
.instalar { margin-top: 16px; }
.instalar p { font-size: .9rem; color: var(--gris); margin-top: 4px; }

/* sesión */
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.meta span { background: var(--blanco); box-shadow: var(--sombra); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 800; color: var(--navy); }
.pasos { list-style: none; counter-reset: p; }
.pasos li { counter-increment: p; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea); cursor: pointer; }
.pasos li:first-child { border-top: 0; }
.pasos li::before { content: counter(p); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--naranja-suave);
  color: var(--naranja-osc); font-weight: 900; display: grid; place-items: center; }
.pasos li.ok::before { content: "✓"; background: var(--verde); color: #fff; }
.pasos li.ok span { color: var(--gris); }
details summary { font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; }
details summary::after { content: " ▾"; color: var(--gris); }
details ul { margin: 10px 0 0 20px; } details li + li { margin-top: 6px; }
.herr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.timer { text-align: center; }
.timer .reloj { font-size: 2.3rem; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer .reloj.fin { color: var(--verde); }
.timer button { margin-top: 8px; font-weight: 800; color: var(--naranja-osc); }
.clicker { display: grid; place-items: center; }
.clicker button { width: 96px; height: 96px; border-radius: 50%; background: #ffd25e; box-shadow: 0 6px 0 #e0a92a, inset 0 -4px 0 rgba(0,0,0,.06);
  font-weight: 900; color: #7a5200; letter-spacing: .05em; }
.clicker button:active, .clicker button.pulso { transform: translateY(4px); box-shadow: 0 2px 0 #e0a92a; }
.resul { display: grid; gap: 10px; }
.resul .opc { justify-content: center; }
.festejo { position: fixed; inset: 0; background: rgba(31, 42, 68, .55); display: grid; place-items: center; padding: 20px; z-index: 50; }
.festejo .card { max-width: 24rem; width: 100%; text-align: center; padding: 22px; animation: sube .3s ease-out; }
.festejo .card img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 12px; background: var(--crema); }
@keyframes sube { from { transform: translateY(30px); opacity: 0; } }

/* lectura y test */
.puntos { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.puntos i { width: 8px; height: 8px; border-radius: 50%; background: var(--linea); }
.puntos i.on { background: var(--naranja); width: 22px; border-radius: 4px; }
.diapo h2 { margin: 16px 0 8px; }
.diapo p { font-size: 1.08rem; }
.navd { display: flex; gap: 10px; margin-top: 24px; }
.navd .btn.sec { width: 40%; }
.preg { font-size: 1.2rem; font-weight: 900; color: var(--navy); text-align: center; margin: 18px 0; }
.opc.bien { border-color: var(--verde); background: var(--verde-suave); }
.opc.mal { border-color: var(--rojo); background: var(--rojo-suave); }
.marcador { display: flex; gap: 8px; justify-content: center; margin: 12px 0; font-size: 1.4rem; }

/* órdenes */
.orden { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; }
.orden img { width: 64px; height: 64px; border-radius: 14px; background: var(--crema); flex: none; }
.orden .q { flex: 1; }
.estrellas { color: #f2b01e; letter-spacing: 2px; font-size: .95rem; }
.estrellas .no { color: var(--linea); }
.lista-s { margin-top: 10px; display: none; }
.card.abierta .lista-s { display: block; }
.lista-s button { display: flex; justify-content: space-between; width: 100%; padding: 10px 0; border-top: 1px solid var(--linea); font-weight: 700; color: var(--navy); text-align: left; }

/* ayuda */
.sos { background: var(--rojo-suave); border-radius: var(--radio); padding: 14px 16px; color: #8a2327; font-weight: 700; }
.sos a { color: inherit; }
.ficha { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; }
.ficha img { width: 58px; height: 58px; border-radius: 14px; background: var(--crema); flex: none; }
.ficha b { color: var(--navy); }
.bloque h3 { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.bloque ul { margin-left: 20px; } .bloque li + li { margin-top: 6px; }
.bloque.ya { border-left: 5px solid var(--verde); }
.bloque.no { border-left: 5px solid #f2b01e; }
.bloque.vet { border-left: 5px solid var(--rojo); background: var(--rojo-suave); }
.aviso { font-size: .85rem; color: var(--gris); text-align: center; margin-top: 16px; }

/* mi perro */
.retrato { width: 160px; height: 160px; border-radius: 50%; background: var(--crema); margin: 8px auto 12px; overflow: hidden; box-shadow: 0 0 0 5px #fff, var(--sombra); }
.retrato img { width: 100%; height: 100%; object-fit: cover; }
.filas div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--linea); }
.filas div:first-child { border-top: 0; }
.filas span { color: var(--gris); font-weight: 700; flex: none; } .filas b { color: var(--navy); text-align: right; }

/* barra de abajo */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--linea);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.tabs .in { display: flex; width: 100%; max-width: 30rem; }
.tabs button { flex: 1; padding: 9px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .74rem; font-weight: 800; color: var(--gris); }
.tabs button i { font-style: normal; font-size: 1.35rem; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.tabs button.on { color: var(--naranja-osc); } .tabs button.on i { filter: none; opacity: 1; }
.tabs button.sosb i { filter: none; opacity: 1; }

.modal { position: fixed; inset: 0; background: rgba(31, 42, 68, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 60; }
.modal .card { width: 100%; max-width: 30rem; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: sube .25s ease-out; }
.confeti { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 70; pointer-events: none; animation: cae linear forwards; }
@keyframes cae { to { transform: translateY(105vh) rotate(720deg); } }
