/* ───────── Libreta Salvaje · estilo apuntes aesthetic ───────── */
:root {
  --ink: #3a2d32;
  --ink-soft: #6d5a61;
  --paper: #fffdf8;
  --grid: #e7eef0;
  --margin: #f7b9c7;
  --vanilla: #fff7e8;
  --shadow: 0 18px 50px rgba(94, 70, 73, 0.14);
  /* acento por tema */
  --a1: #f28cb1; --a2: #ffe0ec; --a3: #b8336a;
}
[data-theme="verde"] { --a1: #6cc47a; --a2: #d8f3d4; --a3: #2f7d3a; }
[data-theme="rosa"]  { --a1: #f28cb1; --a2: #ffe0ec; --a3: #b8336a; }
[data-theme="lila"]  { --a1: #a48ae6; --a2: #ebe3fd; --a3: #5f45a8; }
[data-theme="selva"]  { --a1: #4f9d5d; --a2: #dcefd9; --a3: #2c5f35; }
[data-theme="cielo"]  { --a1: #3b8fd9; --a2: #dbecfb; --a3: #1d5a92; }
[data-theme="safari"] { --a1: #e8962e; --a2: #fdebd1; --a3: #9a5a12; }

/* paletas de marcador para cada animal */
.c-verde    { --c1: #6cc47a; --c2: #d8f3d4; --c3: #2f7d3a; }
.c-rosa     { --c1: #f28cb1; --c2: #ffe0ec; --c3: #b8336a; }
.c-lila     { --c1: #a48ae6; --c2: #ebe3fd; --c3: #5f45a8; }
.c-celeste  { --c1: #5bb8ea; --c2: #d8f0fc; --c3: #1f6f9e; }
.c-durazno  { --c1: #ff9f6b; --c2: #ffe4d2; --c3: #c0561c; }
.c-amarillo { --c1: #f2c230; --c2: #fff3c2; --c3: #94700a; }

* { box-sizing: border-box; }
html { background: var(--vanilla); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 219, 174, 0.55), transparent 22rem),
    radial-gradient(circle at 90% 12%, rgba(247, 201, 206, 0.45), transparent 26rem),
    radial-gradient(circle at 60% 88%, rgba(217, 207, 247, 0.45), transparent 28rem),
    linear-gradient(135deg, #fff8eb 0%, #fffaf4 50%, #f8eef2 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

#app {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 18px 16px 110px;
}

/* ambiente flotante */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient span { position: absolute; top: -40px; opacity: .55; animation: fall var(--d) linear infinite; animation-delay: var(--delay); }
.petal { width: 12px; height: 18px; border-radius: 70% 30% 70% 30%; background: rgba(247, 185, 199, .8); }
.spark { color: #d9bd7e; font-size: 18px; }
.paw { font-size: 16px; opacity: .3 !important; }
@keyframes fall {
  0% { transform: translateY(-5vh) rotate(0deg) translateX(0); }
  50% { transform: translateY(50vh) rotate(160deg) translateX(30px); }
  100% { transform: translateY(110vh) rotate(320deg) translateX(-10px); }
}

/* ───── hoja de cuaderno ───── */
.sheet {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 26px, var(--margin) 26px, var(--margin) 28px, transparent 28px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 18px 22px 40px;
  margin: 26px 0 18px;
}
.sheet.plain { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px, 22px 22px; padding-left: 18px; }

/* cinta washi */
.tape {
  position: absolute; top: -13px; left: 50%;
  width: 116px; height: 28px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--c1, var(--a1)) 60%, transparent) 0 9px,
    rgba(255, 255, 255, .55) 9px 18px);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.tape.left { left: 22%; transform: translateX(-50%) rotate(-8deg); width: 80px; }
.tape.right { left: 80%; transform: translateX(-50%) rotate(7deg); width: 80px; }

/* ───── lettering ───── */
.lettering {
  font-family: "Chewy", "Fredoka", cursive;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .5px;
  color: var(--c1, var(--a1));
  -webkit-text-stroke: 2px var(--c3, var(--a3));
  paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--c3, var(--a3));
  margin: 0;
}
.script {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  color: var(--c3, var(--a3));
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 3px 4px 0 var(--c2, var(--a2));
  margin: 0;
}
.hand { font-family: "Patrick Hand", "Fredoka", cursive; font-size: 1.12rem; line-height: 1.4; }
.hl {
  background: linear-gradient(104deg, transparent .5%, var(--c2, var(--a2)) 2.5%, var(--c2, var(--a2)) 96%, transparent 98%);
  padding: 0 .25em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* cinta de título (banner) */
.ribbon {
  display: inline-block;
  position: relative;
  background: var(--c1, var(--a1));
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 7px 26px 6px;
  margin: 18px 0 10px -6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
  text-shadow: 1px 1px 0 var(--c3, var(--a3));
}

/* nube punteada */
.cloud {
  position: relative;
  background: #fff;
  border: 2.5px dashed var(--c3, var(--a3));
  border-radius: 46px 58px 50px 62px / 56px 44px 60px 46px;
  padding: 18px 20px;
  margin: 14px 4px 8px;
  text-align: center;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--c1, var(--a1)); opacity: .85;
}
.cloud::before { width: 14px; height: 14px; top: -9px; right: 24px; }
.cloud::after { width: 9px; height: 9px; bottom: -6px; left: 30px; background: var(--c2, var(--a2)); border: 2px solid var(--c1, var(--a1)); }

/* listas con puntos de marcador */
.dots { list-style: none; padding: 0; margin: 6px 0; }
.dots li { position: relative; padding-left: 22px; margin: 9px 0; }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c1, var(--a1));
  box-shadow: 0 0 0 3px var(--c2, var(--a2));
}

/* nota adhesiva */
.sticky {
  position: relative;
  background: #fff4a8;
  padding: 16px 16px 14px;
  border-radius: 3px 3px 18px 3px;
  box-shadow: 0 10px 24px rgba(120, 100, 40, .14);
  transform: rotate(-1.2deg);
  margin: 20px 4px;
}
.sticky.pink { background: #ffd9e6; transform: rotate(1deg); }
.sticky.blue { background: #d6efff; }
.sticky h4 { margin: 0 0 6px; font-family: "Fredoka"; font-weight: 700; font-size: 1rem; }

/* doodles */
.doodle { position: absolute; pointer-events: none; color: var(--c1, var(--a1)); font-size: 20px; line-height: 1; }

/* ───── portada / inicio ───── */
.cover { text-align: center; padding-top: 34px; padding-bottom: 26px; }
.cover .lettering { font-size: clamp(2.6rem, 12vw, 3.6rem); }
.cover .script { font-size: 1.5rem; margin-top: 6px; }
.cover .owner { margin-top: 10px; font-family: "Patrick Hand"; font-size: 1.15rem; color: var(--ink-soft); }
.cover .owner button { background: none; border: 0; color: var(--a3); text-decoration: underline dotted; font-family: inherit; font-size: inherit; padding: 0; }

.progress-paws { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }
.bar { flex: 1; max-width: 200px; height: 12px; border-radius: 99px; background: #fff; border: 2px solid var(--a3); overflow: hidden; }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--a1) 0 8px, var(--a2) 8px 14px); border-radius: 99px; transition: width .6s; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.tile {
  position: relative; display: block;
  background: #fff;
  border: 2.5px solid var(--c3);
  border-radius: 22px;
  padding: 18px 14px 14px;
  box-shadow: 4px 5px 0 var(--c2);
  text-align: center;
  transition: transform .15s;
}
.tile:active { transform: scale(.96) rotate(-1deg); }
.tile .ico { font-size: 2.3rem; display: block; margin-bottom: 4px; }
.tile b { font-family: "Chewy"; font-weight: 400; font-size: 1.35rem; color: var(--c3); display: block; }
.tile small { color: var(--ink-soft); font-size: .82rem; }

.daily { text-align: center; }
.daily .big { font-size: 3rem; display: block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(4deg); } }

/* ───── cabeceras de sección ───── */
.head { text-align: center; margin: 10px 0 6px; }
.head .lettering { font-size: 2.4rem; }
.head .script { font-size: 1.15rem; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--a3); background: #fff; border: 2px solid var(--a2); border-radius: 99px; padding: 6px 14px; font-size: .9rem; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 2px solid var(--a3); background: #fff; color: var(--a3); border-radius: 99px; padding: 6px 13px; font-weight: 600; font-size: .9rem; }
.chip.on { background: var(--a1); color: #fff; border-color: var(--a1); box-shadow: 2px 3px 0 var(--a3); }
.search { width: 100%; border: 2.5px dashed var(--a1); background: #fff; border-radius: 16px; padding: 11px 14px; outline: none; }
.search:focus { border-style: solid; }

/* grilla de animales (polaroids) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; margin-top: 8px; }
.polaroid {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 12px 10px 12px;
  box-shadow: 0 10px 24px rgba(94, 70, 73, .13);
  text-align: center;
  transition: transform .2s;
}
.polaroid:nth-child(odd) { transform: rotate(-1.6deg); }
.polaroid:nth-child(even) { transform: rotate(1.4deg); }
.polaroid:active { transform: scale(.95); }
.polaroid .pic { display: grid; place-items: center; height: 92px; border-radius: 8px; background: var(--c2); font-size: 3.2rem; margin-top: 6px; }
.polaroid b { display: block; font-family: "Chewy"; font-weight: 400; font-size: 1.25rem; color: var(--c3); margin-top: 8px; }
.polaroid small { color: var(--ink-soft); font-size: .78rem; display: block; line-height: 1.25; margin-top: 2px; }
.polaroid .tape { width: 64px; height: 20px; top: -9px; }
.badge-ok { position: absolute; top: -8px; right: -6px; background: var(--c1); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transform: rotate(12deg); }

/* ───── página de animal ───── */
.animal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pager { font-family: "Patrick Hand"; color: var(--ink-soft); }
.fav { background: #fff; border: 2px solid var(--a2); border-radius: 50%; width: 42px; height: 42px; font-size: 1.2rem; }
.fav.on { animation: pop .4s; }
.animal { text-align: left; }
.animal .hero { text-align: center; position: relative; padding-top: 4px; }
.animal .emoji-circle {
  width: 128px; height: 128px; margin: 4px auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--c2) 70%);
  border: 3px dashed var(--c1);
  display: grid; place-items: center;
  font-size: 4.6rem;
  animation: bob 3.4s ease-in-out infinite;
}
.animal .name { font-size: clamp(2.6rem, 12vw, 3.3rem); text-align: center; }
.animal .sci { text-align: center; font-size: 1.05rem; margin-top: 6px; }
.tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { background: var(--c2); color: var(--c3); border-radius: 99px; padding: 3px 11px; font-size: .82rem; font-weight: 600; }
.wow { font-family: "Patrick Hand"; font-size: 1.4rem; line-height: 1.25; color: var(--c3); }
.wow small { display: block; font-family: "Fredoka"; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--c1); font-weight: 700; margin-bottom: 4px; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ficha div { background: #fff; border: 2px solid var(--c2); border-radius: 14px; padding: 9px 10px; }
.ficha span { display: block; font-size: .72rem; font-weight: 700; color: var(--c1); text-transform: uppercase; letter-spacing: .5px; }
.ficha p { margin: 2px 0 0; font-family: "Patrick Hand"; font-size: 1.02rem; line-height: 1.25; }

.reto { background: #fff; border: 2.5px solid var(--c3); border-radius: 20px; padding: 14px; box-shadow: 4px 5px 0 var(--c2); margin-top: 22px; }
.reto h4 { margin: 0 0 4px; font-family: "Chewy"; font-weight: 400; color: var(--c3); font-size: 1.3rem; }
.reto p { margin: 0 0 10px; }
.opts { display: grid; gap: 8px; }
.opt {
  text-align: left; width: 100%;
  background: var(--paper); border: 2px solid var(--c2, var(--a2));
  border-radius: 14px; padding: 11px 13px; font-weight: 500;
  transition: transform .12s, background .2s;
}
.opt:active { transform: scale(.98); }
.opt.right { background: #dff5dc; border-color: #5bb26a; }
.opt.wrong { background: #ffe1e1; border-color: #e07a7a; animation: shake .35s; }
.opt:disabled { cursor: default; }
.why { margin-top: 10px; font-family: "Patrick Hand"; font-size: 1.08rem; background: var(--c2, var(--a2)); border-radius: 12px; padding: 10px 12px; }

.nav-animal { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--a1); color: #fff; border: 0;
  border-radius: 16px; padding: 12px 18px; font-weight: 700; font-size: 1rem;
  box-shadow: 3px 4px 0 var(--a3);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--a3); }
.btn.ghost { background: #fff; color: var(--a3); border: 2px solid var(--a2); box-shadow: none; }
.btn.block { width: 100%; }
.btn.c { background: var(--c1); box-shadow: 3px 4px 0 var(--c3); }

.learned-btn { margin-top: 16px; }
.learned { text-align: center; font-family: "Chewy"; color: var(--c3); font-size: 1.25rem; margin-top: 14px; }

/* ───── vet ───── */
.vet-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 2.5px solid var(--c3); border-radius: 20px; padding: 14px; box-shadow: 4px 5px 0 var(--c2); margin-bottom: 14px; }
.vet-card .ico { font-size: 2.2rem; width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--c2); border-radius: 16px; }
.vet-card b { font-family: "Chewy"; font-weight: 400; font-size: 1.3rem; color: var(--c3); display: block; }
.vet-card small { color: var(--ink-soft); }

table.vitals { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 2.5px solid var(--c3); border-radius: 16px; overflow: hidden; font-size: .92rem; }
.vitals th { background: var(--c1); color: #fff; padding: 8px 6px; font-weight: 600; }
.vitals td { padding: 9px 6px; text-align: center; border-top: 1.5px dashed var(--c2); font-family: "Patrick Hand"; font-size: 1.02rem; }
.vitals td:first-child { font-size: 1.5rem; }

.flip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flip { perspective: 800px; height: 168px; background: none; border: 0; padding: 0; }
.flip .in { position: relative; width: 100%; height: 100%; transition: transform .55s; transform-style: preserve-3d; }
.flip.on .in { transform: rotateY(180deg); }
.flip .f, .flip .b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.flip .f { background: #fff; border: 2.5px solid var(--c3); box-shadow: 3px 4px 0 var(--c2); }
.flip .f span { font-size: 2.6rem; }
.flip .f b { font-family: "Chewy"; font-weight: 400; color: var(--c3); font-size: 1.2rem; margin-top: 4px; line-height: 1.05; }
.flip .f small { font-size: .7rem; color: var(--ink-soft); margin-top: 4px; }
.flip .b { background: var(--c2); border: 2.5px dashed var(--c3); transform: rotateY(180deg); font-family: "Patrick Hand"; font-size: .98rem; line-height: 1.22; color: var(--ink); }

.check { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid var(--c2); border-radius: 16px; padding: 11px 12px; margin-bottom: 9px; text-align: left; width: 100%; transition: background .2s; }
.check .box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2.5px solid var(--c3); display: grid; place-items: center; font-size: 1rem; background: #fff; }
.check.on { background: var(--c2); }
.check.on .box { background: var(--c1); border-color: var(--c1); color: #fff; animation: pop .3s; }
.check b { display: block; font-weight: 600; }
.check span.t { font-family: "Patrick Hand"; font-size: 1.02rem; line-height: 1.25; color: var(--ink-soft); }

.case-patient { text-align: center; }
.case-patient .big { font-size: 4rem; display: block; animation: bob 3s ease-in-out infinite; }
.case-patient .chart { display: inline-block; background: #fff; border: 2px solid var(--c2); border-radius: 12px; padding: 4px 12px; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* pulso */
.pulse-wrap { text-align: center; }
.heart-btn {
  width: 168px; height: 168px; margin: 14px auto; border-radius: 50%;
  border: 0; background: radial-gradient(circle at 35% 30%, #ffc2d6, #f2568f);
  font-size: 4.6rem; color: #fff; box-shadow: 0 14px 30px rgba(242, 86, 143, .35), inset 0 -8px 0 rgba(0,0,0,.08);
  display: grid; place-items: center;
}
.heart-btn:active, .heart-btn.beat { transform: scale(.92); }
.timer { font-family: "Chewy"; font-size: 2.6rem; color: var(--c3); }
.compare { text-align: left; margin-top: 10px; }
.compare .row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: .9rem; }
.compare .row span:first-child { width: 28px; font-size: 1.3rem; text-align: center; }
.compare .row .lbl { width: 84px; flex: none; }
.compare .track { flex: 1; height: 14px; background: #fff; border-radius: 99px; border: 1.5px solid var(--c2); overflow: hidden; }
.compare .track i { display: block; height: 100%; background: var(--c1); border-radius: 99px; }
.compare .row.you .track i { background: repeating-linear-gradient(45deg, #f2568f 0 6px, #ffb3cc 6px 12px); }
.compare .num { width: 64px; text-align: right; font-family: "Patrick Hand"; font-size: 1rem; }

/* formulario pacientes */
.form { display: grid; gap: 10px; }
.form label { font-size: .85rem; font-weight: 600; color: var(--c3); }
.form input, .form select, .form textarea { width: 100%; border: 2px solid var(--c2); background: #fff; border-radius: 12px; padding: 10px 12px; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c1); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.species { display: flex; gap: 6px; flex-wrap: wrap; }
.species button { font-size: 1.6rem; width: 50px; height: 50px; border-radius: 14px; border: 2px solid var(--c2); background: #fff; }
.species button.on { border-color: var(--c3); background: var(--c2); transform: scale(1.06); }
.carnet { position: relative; background: #fff; border: 2.5px solid var(--c3); border-radius: 18px; padding: 14px 14px 12px 80px; box-shadow: 4px 5px 0 var(--c2); margin-bottom: 14px; min-height: 92px; }
.carnet .pet { position: absolute; left: 12px; top: 14px; width: 56px; height: 56px; border-radius: 50%; background: var(--c2); display: grid; place-items: center; font-size: 2rem; }
.carnet b { font-family: "Chewy"; font-weight: 400; font-size: 1.35rem; color: var(--c3); }
.carnet p { margin: 3px 0 0; font-family: "Patrick Hand"; font-size: 1.02rem; line-height: 1.25; }
.carnet .del { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 1rem; opacity: .5; }

/* ───── juegos ───── */
.game-card { text-align: center; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.statement { font-family: "Patrick Hand"; font-size: 1.5rem; line-height: 1.3; margin: 8px 0 4px; }
.vm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.vm-btns .btn { padding: 16px; font-size: 1.15rem; }
.vm-btns .yes { background: #6cc47a; box-shadow: 3px 4px 0 #2f7d3a; }
.vm-btns .no { background: #f2789f; box-shadow: 3px 4px 0 #b8336a; }
.score { display: flex; justify-content: space-between; font-family: "Patrick Hand"; font-size: 1.1rem; color: var(--ink-soft); margin: 6px 4px; }
.clue { font-family: "Patrick Hand"; font-size: 1.25rem; background: #fff; border: 2px dashed var(--a1); border-radius: 14px; padding: 10px 12px; margin: 8px 0; text-align: left; animation: in .35s; }
.emoji-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.emoji-opts button { font-size: 2.4rem; aspect-ratio: 1; border-radius: 18px; border: 2.5px solid var(--a2); background: #fff; transition: transform .12s; }
.emoji-opts button:active { transform: scale(.92); }
.emoji-opts button.right { background: #dff5dc; border-color: #5bb26a; animation: pop .35s; }
.emoji-opts button.wrong { background: #ffe1e1; border-color: #e07a7a; animation: shake .35s; }
.timebar { height: 10px; border-radius: 99px; background: #fff; border: 2px solid var(--a2); overflow: hidden; margin: 6px 0 12px; }
.timebar i { display: block; height: 100%; background: var(--a1); width: 100%; }
.stars { font-size: 2.6rem; letter-spacing: 6px; margin: 10px 0; }

/* ───── álbum ───── */
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stk { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: #fff; border: 2.5px dashed #e3d6da; position: relative; }
.stk.got { background: var(--c2); border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--c1), 0 6px 12px rgba(0,0,0,.1); }
.stk.got:nth-child(3n) { transform: rotate(-8deg); }
.stk.got:nth-child(3n+1) { transform: rotate(6deg); }
.stk:not(.got) span { filter: grayscale(1) brightness(1.6); opacity: .25; }
.medals { display: grid; gap: 10px; }
.medal { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--a2); border-radius: 16px; padding: 10px 12px; }
.medal .m { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #f3eef0; filter: grayscale(1); opacity: .45; flex: none; }
.medal.got { border-color: var(--a1); }
.medal.got .m { background: linear-gradient(135deg, #ffe9a8, #f5c95c); filter: none; opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f5c95c; }
.medal b { display: block; }
.medal small { color: var(--ink-soft); }

.themes { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.themes button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e6dadd; }
.themes button.on { box-shadow: 0 0 0 3px var(--a3); transform: scale(1.1); }

/* ───── barra inferior ───── */
.tabbar {
  position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  display: flex; gap: 2px;
  width: min(520px, calc(100% - 20px));
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--a2);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(94, 70, 73, .16);
}
.tabbar a { flex: 1; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-soft); padding: 5px 0 4px; border-radius: 18px; }
.tabbar a span { display: block; font-size: 1.35rem; line-height: 1.2; transition: transform .2s; }
.tabbar a.on { background: var(--a2); color: var(--a3); }
.tabbar a.on span { transform: translateY(-2px) scale(1.12); }

/* ───── efectos ───── */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
#fx span { position: absolute; top: 40%; font-size: 26px; animation: burst 1.4s ease-out forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.1) rotate(var(--r)); opacity: 0; }
}
#toast {
  position: fixed; left: 50%; top: 18px; z-index: 60;
  transform: translate(-50%, -140%);
  background: #fff; border: 2.5px solid var(--a1); border-radius: 18px;
  padding: 10px 18px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2, 1.4, .4, 1);
  max-width: calc(100% - 32px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); }
#modal:empty { display: none; }
#modal { position: fixed; inset: 0; z-index: 70; background: rgba(58, 45, 50, .35); display: grid; place-items: center; padding: 16px; }
#modal .sheet { width: min(440px, 100%); margin: 0; animation: in .35s; }

@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view { animation: in .35s ease; }
.slide-l { animation: slideL .35s ease; }
.slide-r { animation: slideR .35s ease; }
@keyframes slideL { from { opacity: 0; transform: translateX(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(-40px) rotate(-2deg); } to { opacity: 1; transform: none; } }

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt { margin-top: 14px; }
.small { font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───── álbum de estampitas ───── */
.album-top { padding-top: 22px; }
.album-count { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.album-count .lettering { font-size: 3.2rem; }
.seg { display: flex; gap: 4px; background: #fff; border: 2px solid var(--a2); border-radius: 18px; padding: 4px; margin: 6px 0 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 14px; padding: 9px 6px; font-weight: 600; color: var(--ink-soft); }
.seg button.on { background: var(--a1); color: #fff; box-shadow: 2px 2px 0 var(--a3); }
.seg.small button { padding: 6px 4px; font-size: .85rem; }
.chips.sub .chip { font-size: .82rem; padding: 4px 11px; border-style: dashed; }
.chips.sub .chip.on { border-style: solid; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin: 6px 0 10px; }
.slot {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; text-align: center;
}
.slot .num {
  position: absolute; top: -6px; left: -4px; z-index: 2;
  background: #fff; color: var(--c3); border: 2px solid var(--c1);
  border-radius: 99px; font-size: .68rem; font-weight: 700; padding: 1px 6px;
}
.slot .ghost {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  border: 2.5px dashed color-mix(in srgb, var(--c1) 70%, #fff);
  border-radius: 16px; background: rgba(255, 255, 255, .6);
  font-size: 2.3rem; filter: grayscale(1); opacity: .45;
}
.slot .photo {
  width: 100%; aspect-ratio: 1; display: block; position: relative;
  border-radius: 14px; overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2.5px var(--c1), 0 8px 16px rgba(94, 70, 73, .18);
  background: var(--c2);
}
.slot .photo::after { /* brillo de estampita */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.25) 100%);
  pointer-events: none;
}
.slot .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.got:nth-child(3n+1) .photo { transform: rotate(-2.5deg); }
.slot.got:nth-child(3n+2) .photo { transform: rotate(1.8deg); }
.slot.got:nth-child(3n) .photo { transform: rotate(-1deg); }
.slot b { font-size: .8rem; font-weight: 600; margin-top: 6px; line-height: 1.15; color: var(--ink); }
.slot:not(.got) b { color: var(--ink-soft); font-weight: 500; }
.slot:active { transform: scale(.95); }
.slot.just .photo { animation: stickOn .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stickOn {
  0% { transform: scale(1.6) rotate(-14deg); opacity: 0; box-shadow: 0 30px 40px rgba(0,0,0,.3); }
  60% { transform: scale(.94) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(-2deg); }
}

.next-albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.next { background: #fff; border: 2.5px dashed #e3d6da; border-radius: 18px; padding: 12px 6px; text-align: center; }
.next span { font-size: 2rem; display: block; filter: grayscale(.6); opacity: .7; }
.next b { display: block; font-size: .85rem; margin-top: 4px; }
.next small { color: var(--ink-soft); font-size: .72rem; }

/* ventanas del álbum */
#modal .album-modal { max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 18px 18px; }
.num-big { display: inline-block; background: #fff; border: 2px solid var(--c1); color: var(--c3); border-radius: 99px; font-weight: 700; padding: 2px 10px; font-size: .85rem; }
.ghost-big { font-size: 5rem; margin: 6px 0; filter: grayscale(1); opacity: .5; }
.sticker-big { position: relative; width: min(260px, 78%); margin: 4px auto 14px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 0 0 3px var(--c1, var(--a1)), 0 16px 30px rgba(94, 70, 73, .22); transform: rotate(-2deg); background: var(--c2, var(--a2)); }
.sticker-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.5), transparent 40%); }
.sticker-big .num { position: absolute; bottom: 8px; right: 8px; z-index: 1; background: #fff; color: var(--c3, var(--a3)); border-radius: 99px; font-weight: 700; font-size: .8rem; padding: 2px 9px; }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview { width: 120px; margin: 0 auto 6px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 0 0 2.5px var(--a1), 0 8px 18px rgba(0,0,0,.12); transform: rotate(-3deg); }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-list { max-height: 260px; overflow-y: auto; margin-top: 8px; border-radius: 14px; }
.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--a2); border-radius: 14px; padding: 8px 12px; margin-bottom: 6px; }
.pick-row span { font-size: 1.6rem; }
.pick-row b { flex: 1; font-weight: 600; }
.pick-row small { color: var(--ink-soft); font-size: .78rem; }
.compare-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; }
.compare-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--a2); display: block; }
.compare-photos small { color: var(--ink-soft); }
.form .inline { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.form .inline input { width: auto; }

/* ───── sonidos ───── */
.sound-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 2px;
  background: #fff; color: var(--c3, var(--a3)); border: 2.5px solid var(--c1, var(--a1));
  border-radius: 99px; padding: 8px 18px; font-weight: 700; box-shadow: 3px 3px 0 var(--c2, var(--a2));
}
.sound-btn.playing, .sound-big.playing { animation: wave 0.9s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c1, var(--a1)) 25%, transparent); } }
.sound-lock { display: inline-block; margin: 12px auto 2px; padding: 7px 14px; border-radius: 99px; background: #f3eef0; color: var(--ink-soft); font-size: .85rem; font-weight: 600; border: 2px dashed #e3d6da; }
.sound-lock.big { display: block; border-radius: 16px; padding: 12px; font-size: .95rem; margin: 14px 0 8px; }
.slot .snd { position: absolute; bottom: 26px; right: 2px; z-index: 2; background: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sound-big { background: radial-gradient(circle at 35% 30%, #bfe6fb, #3fa2dc); box-shadow: 0 14px 30px rgba(63, 162, 220, .35), inset 0 -8px 0 rgba(0,0,0,.08); }
.snd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.snd-opts button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2.5px solid var(--c2); border-radius: 18px; padding: 10px 6px; font-weight: 600; font-size: .9rem; }
.snd-opts button span { font-size: 2.1rem; }
.snd-opts button.right { background: #dff5dc; border-color: #5bb26a; animation: pop .35s; }
.snd-opts button.wrong { background: #ffe1e1; border-color: #e07a7a; animation: shake .35s; }
.credits li { margin: 12px 0; }
.credits a { color: var(--a3); text-decoration: underline; }

/* ───── puerta y vista para mamá ───── */
.tabbar[hidden] { display: none; }
.puerta { min-height: 80vh; display: grid; place-items: center; }
.puerta .sheet { width: 100%; padding: 30px 22px 24px; }
.puerta-ico { font-size: 3rem; margin-bottom: 4px; }
.code-input { width: 100%; border: 2.5px dashed var(--c1); background: #fff; border-radius: 16px; padding: 13px; text-align: center; font-size: 1.4rem; font-weight: 700; letter-spacing: .18em; outline: none; text-transform: uppercase; }
.code-input:focus { border-style: solid; }
.aviso { color: #b8336a; font-weight: 600; font-size: .92rem; margin: 10px 0 0; }
.link-btn { background: none; border: 0; color: var(--c3, var(--a3)); font-weight: 600; text-decoration: underline dotted; padding: 4px; }
.mama .plan-t { font-family: "Chewy"; font-weight: 400; color: #2f7d3a; font-size: 1.6rem; margin: 2px 0 0; }
.code-chip { font-family: ui-monospace, Menlo, monospace; font-weight: 700; background: var(--c2); color: var(--c3); border-radius: 99px; padding: 2px 10px; font-size: .85rem; margin-left: 6px; }
.plan-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border: 2.5px solid var(--c2); border-radius: 18px; padding: 14px 12px; text-align: left; }
.plan-opt.on { border-color: var(--c3); box-shadow: 3px 3px 0 var(--c2); }
.plan-opt b { font-size: 1.4rem; }
.plan-opt small { color: var(--ink-soft); font-size: .78rem; }
.plan-tag { position: absolute; top: -10px; right: 10px; background: #d9bd7e; color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; }
.code-row { display: flex; gap: 8px; margin-top: 6px; }
.code-row input { flex: 1; min-width: 0; border: 2px solid var(--c2); border-radius: 12px; padding: 10px 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; outline: none; }

/* ───── fotos reales ───── */
img.real { width: 100%; height: 100%; object-fit: cover; display: block; }
.emoji-circle.has-photo { overflow: hidden; padding: 0; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--c1), 0 12px 24px rgba(94, 70, 73, .18); width: 170px; height: 170px; animation: none; }
.polaroid .pic.has-photo { overflow: hidden; height: 120px; }
.daily .big.has-photo { width: 150px; height: 150px; margin: 6px auto; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--c1), 0 10px 20px rgba(94, 70, 73, .16); animation: none; }

/* ───────── tarjeta «Instala tu libreta» ───────── */
.install-card {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  margin: 18px 0 4px; padding: 16px 16px 16px 14px; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, #fff 0%, var(--a2) 100%);
  border: 2px dashed var(--a1); border-radius: 22px;
  box-shadow: 3px 5px 0 var(--a1), var(--shadow);
  transition: transform .15s, box-shadow .15s;
  animation: in .5s both, latido 2.8s ease-in-out 1s infinite;
}
.install-card:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--a1); animation: none; }
.install-card .tape { position: absolute; top: -10px; left: 50%; width: 74px; margin-left: -37px; transform: rotate(-3deg); }
.install-card img { flex: none; width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 6px 14px rgba(184, 51, 106, .25); }
.install-card .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.install-card b { font-family: "Chewy", "Fredoka", cursive; font-weight: 400; font-size: 1.35rem; color: var(--a3); letter-spacing: .01em; }
.install-card small { font-family: "Patrick Hand", cursive; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.25; }
.install-card .go { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--a1); color: #fff; font-size: 1.25rem; box-shadow: 2px 3px 0 var(--a3); }
@keyframes latido { 0%, 86%, 100% { transform: scale(1); } 92% { transform: scale(1.025); } }

.install-steps { text-align: center; }
.install-steps .ico-big { display: block; margin: 4px auto 6px; border-radius: 20px; box-shadow: 0 8px 18px rgba(184, 51, 106, .25); }
.install-steps .lettering { font-size: 2rem; margin: 2px 0 10px; }
.install-steps ol { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; text-align: left; }
.install-steps li { display: flex; align-items: flex-start; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 1rem; line-height: 1.35; }
.install-steps li > .n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--a1); color: #fff; font-weight: 700; font-size: .9rem; }
.install-steps .share { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid #2f80ed; border-radius: 6px; color: #2f80ed; font-size: .8rem; vertical-align: -4px; }
.install-steps .nota { margin: 0 0 14px; }
.install-steps li > .t { flex: 1; padding-top: 2px; }

/* selector de estilo (ajustes y bienvenida) */
.estilos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.estilos button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 16px; border: 2px solid var(--a2); background: #fff;
  font-weight: 700; color: var(--a3);
}
.estilos button span { font-size: 1.2rem; }
.estilos button.on { background: var(--a1); border-color: var(--a1); color: #fff; box-shadow: 2px 3px 0 var(--a3); }

/* ═══════════ ESTILO EXPLORADOR · cuaderno de campo ═══════════
   Kraft, selva, cielo y safari. Mismo contenido, otra libreta. */
[data-estilo="explorador"] {
  --ink: #2b3527;
  --ink-soft: #5b6650;
  --paper: #fffaf0;
  --grid: #ece3cc;
  --margin: #8fbf7a;
  --vanilla: #f4ecd8;
  --shadow: 0 18px 50px rgba(60, 70, 40, 0.16);
}
html[data-estilo="explorador"] { background: var(--vanilla); }
[data-estilo="explorador"] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(143, 191, 122, 0.35), transparent 22rem),
    radial-gradient(circle at 92% 14%, rgba(120, 180, 230, 0.30), transparent 24rem),
    radial-gradient(circle at 55% 90%, rgba(232, 150, 46, 0.20), transparent 26rem),
    linear-gradient(160deg, #f1e7cf 0%, #f6efdd 55%, #e9ead3 100%);
  background-attachment: fixed;
}
/* hojas que caen en vez de pétalos */
[data-estilo="explorador"] .petal { background: rgba(108, 160, 92, .75); border-radius: 0 80% 0 80%; width: 13px; height: 13px; }
[data-estilo="explorador"] .spark { color: #c79a3e; }
/* cinta de enmascarar en vez de washi */
[data-estilo="explorador"] .tape {
  background: rgba(226, 205, 160, .88);
  background-image: linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 100%);
  background-size: 7px 100%;
  border-radius: 1px;
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 3% 96%, 0 50%);
}
/* letras de aventura */
[data-estilo="explorador"] .lettering { font-family: "Luckiest Guy", "Chewy", cursive; letter-spacing: 1px; }
[data-estilo="explorador"] .script { font-family: "Permanent Marker", "Pacifico", cursive; }
[data-estilo="explorador"] .tile b,
[data-estilo="explorador"] .polaroid b,
[data-estilo="explorador"] .reto h4,
[data-estilo="explorador"] .vet-card b,
[data-estilo="explorador"] .learned,
[data-estilo="explorador"] .timer,
[data-estilo="explorador"] .carnet b,
[data-estilo="explorador"] .install-card b,
[data-estilo="explorador"] .flip .f b { font-family: "Luckiest Guy", "Chewy", cursive; letter-spacing: .5px; }
/* notas adhesivas y avisos sin rosado */
[data-estilo="explorador"] .sticky.pink { background: #e3f1d6; }
[data-estilo="explorador"] .vm-btns .no { background: #e07a4e; box-shadow: 3px 4px 0 #9a3f1c; }
[data-estilo="explorador"] .aviso { color: #9a3f1c; }
[data-estilo="explorador"] .install-card { border-color: var(--a1); }

/* foto propia en la página del animal */
.foto-propia { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.foto-propia .mini { border: 2px dashed var(--c1, var(--a1)); background: #fff; color: var(--c3, var(--a3)); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }
.foto-propia .mini.ghost { border-style: solid; border-color: var(--c2, var(--a2)); opacity: .85; }

/* En peligro */
.peligro { margin: 22px 0 6px; padding: 16px 16px 12px; border-radius: 18px; background: #fff3ef; border: 2px solid #f0b8a6; }
.peligro h4 { margin: 0 0 4px; font-family: "Chewy", "Fredoka", cursive; font-weight: 400; font-size: 1.35rem; color: #b5442a; }
.peligro .estado { display: inline-block; margin: 2px 0 8px; padding: 3px 10px; border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; color: #8a3520; }
.peligro .por { margin: 0 0 8px; font-family: "Patrick Hand", cursive; font-size: 1.05rem; color: var(--ink-soft); }
.peligro b.como { display: block; margin: 6px 0 2px; color: #2f7d3a; }
.peligro ul { margin: 4px 0 0; padding-left: 20px; font-family: "Patrick Hand", cursive; font-size: 1.05rem; line-height: 1.35; }
.peligro li { margin: 4px 0; }
.polaroid .badge-sos { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .8rem; background: #fff; border-radius: 999px; padding: 1px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
[data-estilo="explorador"] .peligro h4 { font-family: "Luckiest Guy", "Chewy", cursive; }

/* compartir la ficha */
.compartir-ficha { margin-top: 12px; background: var(--c1, var(--a1)); box-shadow: 3px 4px 0 var(--c3, var(--a3)); }

/* cómo funciona */
.guia .guia-e { font-size: 3.4rem; margin: 6px 0 2px; }
.guia .hand { margin: 10px 0 14px; }
.guia-puntos { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.guia-puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--a2); }
.guia-puntos i.on { background: var(--a1); width: 22px; border-radius: 99px; }
.guia-btns { display: flex; gap: 10px; }
.guia-btns .btn { flex: 1; }
