/* Olana · página de inicio (index.html). Base y tokens: olana.css */

section { scroll-margin-top: 80px; }
.sec { padding-block: 48px; }
.sec-title { font-size: clamp(1.6rem, 4.8vw, 2.3rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.sec-head .sub { color: var(--ink-2); margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { padding-block: 24px 28px; overflow: hidden; }
.hero .wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 40px; } .hero { padding-block: 48px 56px; } }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); font-size: .95rem; color: var(--ink-2); box-shadow: 0 1px 2px rgba(74,40,16,.06); }
.hero h1 { font-size: clamp(2.2rem, 8.6vw, 3.7rem); line-height: 1.04; margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--orange-lg); }
.hero .lead { margin-top: 14px; font-size: clamp(1.08rem, 2.8vw, 1.22rem); color: var(--ink-2); max-width: 36ch; }
.hero-ctas { display: grid; gap: 10px; margin-top: 24px; max-width: 560px; }
.hero-ctas .btn { --h: 60px; }
.hero-ctas .btn-secondary { font-size: 1.1rem; }
@media (min-width: 560px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
.hero-note { margin-top: 12px; display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--muted); }

/* La "O" del logo contiene la foto y emite señales; las burbujas cuentan lo último que pasó */
.beacon-area { position: relative; height: clamp(330px, 92vw, 400px); }
@media (min-width: 900px) { .beacon-area { height: 470px; } }
.beacon { position: absolute; left: 50%; top: 50%; height: min(88%, calc((100vw - 32px) * 114 / 85)); aspect-ratio: 85 / 114; transform: translate(-50%, -50%); }
.beacon .ol-pinmark { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand); filter: drop-shadow(0 18px 30px rgba(236,117,33,.28)); }
.beacon .photo { position: absolute; left: 50%; top: 35.6%; width: 56%; aspect-ratio: 29.4 / 27.9; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.beacon .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.ripple { position: absolute; left: 50%; top: 35.6%; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--brand); transform: translate(-50%, -50%) scale(.8); opacity: 0; animation: hRipple 4.5s var(--ease) infinite; pointer-events: none; }
.ripple:nth-child(2) { animation-delay: 1.5s; } .ripple:nth-child(3) { animation-delay: 3s; }
@keyframes hRipple { 0% { transform: translate(-50%, -50%) scale(.8); opacity: .55 } 100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0 } }
.bubble { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: min(250px, 66%); padding: 7px 14px 7px 7px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: var(--shadow); transition: opacity .45s var(--ease), transform .45s var(--ease); animation: bubFloat 7s ease-in-out infinite; }
.bubble.out { opacity: 0; transform: translateY(8px) scale(.96); }
.bubble img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; background: var(--surface-2); }
.bubble span { display: grid; gap: 1px; font-size: .86rem; line-height: 1.3; min-width: 0; }
.bubble b { font-weight: 700; }
.bubble small { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bubble .dot { width: 7px; height: 7px; }
.bubble.s1 { left: 0; top: 0; }
.bubble.s2 { right: 0; top: 57%; animation-delay: -2.3s; }
.bubble.s3 { left: 0; bottom: 0; animation-delay: -4.6s; }
.bubble.s4 { display: none; }
@media (min-width: 900px) {
  .bubble.s1 { left: -2%; top: 6%; }
  .bubble.s2 { right: -2%; top: 18%; }
  .bubble.s3 { left: 0; bottom: 12%; }
  .bubble.s4 { display: flex; right: 2%; bottom: 2%; animation-delay: -1.2s; }
}
@keyframes bubFloat { 50% { translate: 0 -6px; } }

/* ---------- Números ---------- */
.stats { padding-block: 4px 16px; }
.stats-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(74,40,16,.05); overflow: hidden; }
@media (min-width: 760px) { .stats-panel { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 300px) { .stats-panel { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line) !important; } .bubble { display: none !important; } }
.stat { padding: 18px 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 760px) { .stat { border-bottom: 0; border-right: 1px solid var(--line) !important; } .stat:last-child { border-right: 0 !important; } }
.stat .n { display: block; font: 700 clamp(1.7rem, 6vw, 2.3rem)/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.stat:first-child .n { color: var(--orange-lg); }
.stat .l { font-size: .92rem; color: var(--muted); }

/* ---------- Mascotas en búsqueda (reemplaza a los carruseles) ---------- */
.feed .updated { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.controls { display: grid; gap: 12px; margin-bottom: 18px; }
.controls > * { min-width: 0; }
@media (min-width: 860px) { .controls { grid-template-columns: minmax(300px, auto) 1fr minmax(200px, auto); align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip .i { width: 20px; height: 20px; }
.controls .select select { min-height: 48px; border-radius: 999px; padding-block: 0; font-weight: 600; font-size: .98rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pcard { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); color: inherit; text-align: left; box-shadow: 0 1px 2px rgba(74,40,16,.06); transition: transform .25s var(--ease), box-shadow .25s; animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard.is-match { box-shadow: 0 0 0 2px var(--brand); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) } }
.pcard .ph { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s var(--ease); }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .tag { position: absolute; left: 8px; top: 8px; }
.noimg { display: grid; place-items: center; color: var(--brand); }
.noimg img { display: none; }
.noimg::after { content: ""; width: 34%; aspect-ratio: 85 / 114; background: currentColor; -webkit-mask: var(--pin-mask) center / contain no-repeat; mask: var(--pin-mask) center / contain no-repeat; opacity: .35; }
:root { --pin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -7 85 114'%3E%3Cellipse cx='35.3' cy='33.6' rx='29.4' ry='27.9' fill='none' stroke='%23000' stroke-width='11.8'/%3E%3Cpath d='M6.7 57.5C14 65.5 24.5 69.8 35 69.8C45.5 69.8 56.5 65.5 64.2 57.5C58 70 47 86 35.4 100C23.7 86 12.7 70 6.7 57.5Z'/%3E%3C/svg%3E"); }
.pcard .bd { display: grid; gap: 2px; padding: 10px 12px 12px; }
.pcard .nm { font: 600 1.04rem/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .mt { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .lv { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: .86rem; color: var(--ink-2); }
.pcard .lv.off { color: var(--muted); }
.grid .skel { aspect-ratio: 1 / 1.32; }
/* Fin de la lista: tarjeta con el mismo estilo que un perfil; ocupa la fila completa */
.endcard { grid-column: 1 / -1; display: grid; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(74,40,16,.06), 0 6px 18px -10px rgba(122,62,20,.25); }
.ec-ph { display: grid; place-items: center; min-height: 104px; background: radial-gradient(circle at 50% 120%, rgba(236,117,33,.22), transparent 60%), var(--tint-2); color: var(--brand); }
.ec-ph .ol-pinmark { width: 46px; height: auto; }
.ec-bd { display: grid; gap: 8px; padding: 16px 16px 18px; }
.ec-bd h3 { font-size: 1.15rem; }
.ec-bd p { color: var(--ink-2); font-size: .96rem; }
.ec-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (min-width: 640px) {
  .endcard { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
  .ec-ph { min-height: 0; }
  .ec-ph .ol-pinmark { width: 58px; }
  .ec-bd { padding: 20px 22px; }
}
.feed-foot { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Vista rápida (al tocar una mascota) ---------- */
dialog.qv { touch-action: pan-y; -webkit-user-select: none; user-select: none; border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; background: #140F0C; color: #fff; overflow: hidden; }
dialog.qv[open] { display: block; animation: qvIn .3s var(--ease); }
dialog.qv.closing { animation: olSheetOut .2s ease-in forwards; }
dialog.qv::backdrop { background: rgba(20,15,12,.75); }
@keyframes qvIn { from { opacity: 0; transform: scale(.98) } }
@media (min-width: 700px) { dialog.qv { margin: auto; width: min(460px, 92vw); height: min(88dvh, 820px); border-radius: 26px; box-shadow: var(--shadow-lg); } }
.qv-media { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.qv-media .bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.65); }
.qv-media .fg { position: relative; width: 100%; height: 100%; object-fit: contain; }
.qv-top { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); }
.qv-count { font-weight: 600; font-size: .92rem; opacity: .9; font-variant-numeric: tabular-nums; }
.qv-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.qv-btn:hover { background: rgba(255,255,255,.28); }
.qv-nav { position: absolute; z-index: 3; top: 30%; }   /* encima del texto: en pantallas bajas el bloque de info sube */
.qv-nav.prev { left: max(10px, env(safe-area-inset-left, 0px)); } .qv-nav.next { right: max(10px, env(safe-area-inset-right, 0px)); }
.qv-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 70px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(20,15,12,0), rgba(20,15,12,.82) 34%, rgba(20,15,12,.94)); }
.qv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qv-chip[hidden] { display: none; }
.qv-chip .i { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.2; }
.qv-chip { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font: 600 .86rem var(--display); }
.qv-info h2 { font-size: 1.9rem; line-height: 1.1; color: #fff; }
.qv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; color: #F3E7DE; }
.qv-meta span { display: inline-flex; align-items: center; gap: 6px; }
.qv-msg { font-size: 1rem; line-height: 1.5; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.5em; }
.qv-msg.loading { height: 3em; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08)); background-size: 200% 100%; animation: olShimmer 1.2s linear infinite; }
@media (max-height: 700px) { .qv-msg { -webkit-line-clamp: 3; } }
.qv-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }
.qv-actions .btn-secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.65); }
.qv-actions .btn-secondary:hover { background: rgba(255,255,255,.24); }
#qvCompare { grid-column: 1 / -1; }   /* solo con match: fila propia, el texto no cabe a media fila en celular */
.qv-actions .btn { min-width: 0; white-space: nowrap; }
@media (max-width: 360px) { .qv-actions .btn-share { padding: 0 .8em; font-size: .95rem; } }

/* ---------- ¿Cómo funciona? (escena animada, sin imágenes) ---------- */
.how-stage { position: relative; height: 230px; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
@media (min-width: 760px) { .how-stage { height: 280px; } }
.frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.frame.on { opacity: 1; }
.frame .chiplet { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.frame .chiplet .i { color: var(--brand); }
.photo-card { width: 104px; height: 124px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); position: relative; }
.photo-card .i { width: 46px; height: 46px; stroke-width: 1.5; }
.f1 .photo-card { margin-top: -26px; }
.f1 .ol-pinmark { position: absolute; width: 34px; color: var(--brand); left: calc(50% + 36px); top: 30px; }
.f1.on .ol-pinmark { animation: dropPin .8s var(--spring) .15s both; }
.f1.on .chiplet { animation: rise .45s var(--ease) .7s both; }
@keyframes dropPin { from { transform: translateY(-70px); opacity: 0 } 60% { opacity: 1 } to { transform: none } }
@keyframes rise { from { transform: translate(-50%, 10px); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }
.f2 .pair { display: flex; align-items: center; gap: 14px; margin-top: -26px; }
.f2 .photo-card { width: 82px; height: 98px; border: 2px solid var(--primary); }
.f2 .photo-card.b { border-color: var(--ink); }
.f2 .photo-card .i { width: 36px; height: 36px; }
.f2 .scanner { position: relative; width: 74px; height: 86px; display: grid; place-items: center; }
.f2 .scanner .ol-pinmark { width: 58px; color: var(--brand); position: relative; z-index: 1; }
.f2 .scanner::before, .f2 .scanner::after { content: ""; position: absolute; left: 50%; top: 38%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: scanRing 1.8s var(--ease) infinite; }
.f2 .scanner::after { animation-delay: .9s; }
@keyframes scanRing { from { transform: scale(.7); opacity: .7 } to { transform: scale(1.9); opacity: 0 } }
.f2.on .photo-card.a { animation: slideL .7s var(--ease) both; }
.f2.on .photo-card.b { animation: slideR .7s var(--ease) both; }
.f2.on .chiplet { animation: rise .45s var(--ease) .6s both; }
@keyframes slideL { from { transform: translateX(-60px); opacity: 0 } }
@keyframes slideR { from { transform: translateX(60px); opacity: 0 } }
@keyframes spin { to { transform: rotate(360deg) } }
.notif { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; width: min(320px, 84%); padding: 14px; border-radius: 18px; background: var(--bg); box-shadow: var(--shadow); margin-top: -26px; text-align: left; }
.notif .wa { width: 40px; height: 40px; border-radius: 12px; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; }
.notif b { font-family: var(--display); }
.notif small { color: var(--muted); font-size: .82rem; margin-left: 6px; }
.notif p { font-size: .92rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.f3.on .notif { animation: notifIn .6s var(--spring) both; }
.f3.on .chiplet { animation: rise .45s var(--ease) .55s both; }
@keyframes notifIn { from { transform: translateY(-50px); opacity: 0 } }
.how-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.how-steps::before, .how-steps::after { content: ""; position: absolute; top: 26px; left: calc(100% / 6); height: 2px; background: var(--line); width: calc(100% * 2 / 3); }
.how-steps::after { background: var(--brand); transform-origin: left; transform: scaleX(var(--prog, 0)); transition: transform .5s var(--ease); }
.how-steps li { position: relative; z-index: 1; display: flex; }
.how-steps button { width: 100%; border: 0; background: none; padding: 0 4px; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; color: var(--ink-2); }
.how-steps .c { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--spring); }
.how-steps .c .i { width: 24px; height: 24px; }
.how-steps b { font: 600 clamp(.9rem, 3.7vw, 1.02rem)/1.2 var(--display); color: var(--ink); }
.how-steps small { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.how-steps button.done .c { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.how-steps button[aria-current="step"] .c { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }
@media (max-width: 380px) { .how-steps small { font-size: .8rem; } }

/* ---------- Comunidad ---------- */
.duo { display: grid; gap: 16px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.feature { position: relative; min-height: 320px; display: flex; align-items: flex-end; border-radius: var(--r-lg); overflow: hidden; background: #3A2A20; color: #fff; text-decoration: none; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .5s, transform .8s var(--ease); }
.feature img.fade { opacity: 0; }
.feature:hover img { transform: scale(1.03); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,12,6,.85)); }
.feature.empty-feature { background: var(--tint); color: var(--ink); }
.feature.empty-feature::after { display: none; }
.feature .tx { position: relative; z-index: 1; display: grid; gap: 6px; padding: 22px; }
.feature .k { display: flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.feature h3 { font-size: 1.6rem; }
.feature p { max-width: 42ch; opacity: .95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 4px; }

/* ---------- Apóyanos ---------- */
.donate-card { display: grid; gap: 22px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); }
@media (min-width: 760px) { .donate-card { grid-template-columns: 1.3fr .7fr; align-items: center; padding: 36px; } }
.donate-card .yape { margin-top: 18px; }
.costs { margin-top: 18px; border-top: 1px solid var(--line); }
.costs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.costs span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-box { justify-self: center; display: grid; justify-items: center; gap: 8px; }
.qr-box img { width: 180px; height: 180px; border-radius: var(--r); border: 1px solid var(--line); }
.qr-box small { color: var(--muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 2px; font: 600 1.1rem/1.35 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { color: var(--brand); transition: transform .25s var(--ease); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list .ans { padding: 0 2px 20px; color: var(--ink-2); max-width: 65ch; }

/* ---------- Formulario: una pregunta por paso ---------- */
dialog.report { background: var(--bg); }
.q-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; flex: none; }
.q-meter { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.q-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--primary); transition: width .45s var(--ease); }
.q-count { min-width: 3.6em; text-align: right; font: 600 .95rem var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.q-kind { padding: 6px 20px 0; font: 600 .82rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: none; }
.q { display: none; gap: 16px; padding-top: 10px; }
.q.on { display: grid; animation: qIn .4s var(--ease); }
.q.back { animation-name: qInBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(22px) } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-22px) } }
.q-title { font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.18; }
.q-help { color: var(--ink-2); margin-top: -6px; }
.form-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FDECEA; color: var(--danger); font-weight: 600; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles label { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 6px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); font: 600 1.08rem var(--display); cursor: pointer; transition: border-color .15s, background-color .15s, transform .2s var(--spring); }
.tiles label .i { width: 38px; height: 38px; stroke-width: 1.6; color: var(--ink-2); }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles label:has(input:checked) { border-color: var(--primary); background: var(--tint); transform: scale(1.03); }
.tiles label:has(input:checked) .i { color: var(--ink); }
.tiles label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chips .chip { min-height: 48px; padding: 0 18px; font-size: 1rem; }
.date-field { position: relative; }
.date-field .input { padding-right: 52px; cursor: pointer; min-height: 60px; -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
.date-field input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.date-field .i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.date-field input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 16px; border-radius: 20px; border: 2px dashed #E9C7AE; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--primary); background: var(--tint-2); }
.dropzone .big { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }
.dropzone .big .i { width: 28px; height: 28px; }
.dropzone b { font: 600 1.1rem var(--display); }
.dropzone small { color: var(--muted); font-size: .92rem; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--surface-2); animation: popIn .3s var(--spring); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.thumbs .t img { position: relative; z-index: 1; }
.thumbs .t .main, .thumbs .t button { z-index: 2; }
.thumbs .t .i.ph { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; color: var(--muted); }
.thumbs .t .main { position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.95); font-size: .72rem; font-weight: 700; }
.thumbs .t button { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); background: var(--ink); color: #fff; display: grid; place-items: center; }
.thumbs .t button .i { width: 16px; height: 16px; }
@keyframes popIn { from { transform: scale(.7); opacity: 0 } }
.counter { justify-self: end; margin-top: -8px; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-field { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(235,111,24,.18); }
.invalid .phone-field { border-color: var(--danger); }
.phone-field span { display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.phone-field .input { border: 0; border-radius: 0; box-shadow: none !important; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: .96rem; }
.note .i { margin-top: 2px; color: var(--ink); }

/* ---------- Espera: tu foto dentro de la O mientras la IA analiza ---------- */
.scan { position: relative; width: 180px; aspect-ratio: 85 / 114; margin: 8px auto 0; }
.scan .ol-pinmark { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand); }
.scan .photo { position: absolute; left: 50%; top: 35.6%; width: 56%; aspect-ratio: 29.4 / 27.9; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.scan .photo img { width: 100%; height: 100%; object-fit: cover; }
.scan .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(236,117,33,0) 0 280deg, rgba(236,117,33,.55) 360deg); animation: spin 2.2s linear infinite; mix-blend-mode: multiply; }
.scan .ripple { width: 82%; animation-duration: 2.4s; }
.scan .ripple + .ripple { animation-delay: 1.2s; }
.load-title { text-align: center; font-size: 1.4rem; margin-top: 18px; }
.checklist { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 12px; max-width: 320px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); transition: color .3s; }
.checklist .b { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.checklist .b .i { width: 16px; height: 16px; stroke-width: 2.8; opacity: 0; color: #fff; }
.checklist li.active, .checklist li.done { color: var(--ink); }
.checklist li.active .b { border-color: var(--primary); border-top-color: transparent; animation: spin .9s linear infinite; }
.checklist li.done .b { background: var(--primary); border-color: var(--primary); animation: popIn .35s var(--spring); }
.checklist li.done .b .i { opacity: 1; }
.tip { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink-2); text-align: center; min-height: 3.4em; transition: opacity .35s; }
.tip.fade { opacity: 0; }
.state-text { text-align: center; color: var(--ink-2); margin-top: 10px; }

/* ---------- Reporte registrado ---------- */
.burst { position: relative; width: 112px; height: 112px; margin: 4px auto 0; display: grid; place-items: center; }
.burst .core { width: 76px; height: 76px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; animation: popIn .5s var(--spring) both; }
.burst .core .i { width: 38px; height: 38px; stroke-width: 2.4; }
.burst i { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid var(--brand); animation: burst 1.4s var(--ease) both; }
.burst i:nth-child(2) { animation-delay: .2s; } .burst i:nth-child(3) { animation-delay: .4s; }
@keyframes burst { from { transform: scale(.8); opacity: .8 } to { transform: scale(1.9); opacity: 0 } }
.result-title { text-align: center; font-size: 1.5rem; margin-top: 8px; }
.idbox { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface); display: grid; gap: 10px; text-align: center; }
.idbox p { color: var(--ink-2); }
.idbox code { font: 600 clamp(1.05rem, 4.6vw, 1.3rem)/1.25 var(--mono); padding: 12px; border-radius: 12px; background: var(--bg); word-break: break-all; user-select: all; -webkit-user-select: all; }
.teaser { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tint); font-weight: 600; }
.teaser .i { width: 24px; height: 24px; color: var(--ink); }
.activate { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--surface); display: grid; gap: 8px; }
.activate strong { font: 600 1.08rem var(--display); }
.activate p { color: var(--ink-2); font-size: .97rem; }
.activate .deadline { color: var(--ink); font-weight: 600; }
.activate .hint { font-size: .9rem; color: var(--muted); text-align: center; }
.activate.is-active { background: var(--tint-2); }

@media (prefers-reduced-motion: reduce) {
  .ripple, .scan .sweep { display: none; }
  .bubble { animation: none; }
}
.qv-media img { -webkit-user-drag: none; }

/* Pantallas muy angostas o con zoom alto (< 300px de ancho útil) */
@media (max-width: 300px) {
  .how-steps { grid-template-columns: 1fr; gap: 12px; }
  .how-steps::before, .how-steps::after { display: none; }
  .how-steps button { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .how-steps .c { grid-row: span 2; }
  .how-stage .frame > :not(.chiplet) { transform: scale(.78); }
  .frame .chiplet { font-size: .8rem; }
  .seg .count { display: none; }
  .pcard .tag { font-size: .7rem; }
}
