/* Verificación de edad · prefijo ag- · azul marino y dorado de la marca */
.ag-page { --ag-navy: #061B38; --ag-blue: #154C82; --ag-gold: #F0C12C; --ag-gold2: #FFD76A; --ag-line: #E3EBF4; --ag-muted: #5B6F86; display: grid; place-items: start center; padding: 18px 0 40px; font-family: Lato, Arial, sans-serif; }
.ag-card { position: relative; width: min(520px, 100%); background: var(--ice, #fff); border: 1px solid var(--ag-line); border-radius: 24px; box-shadow: 0 18px 48px rgba(6, 27, 56, .14); padding: 34px 30px 26px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--ag-navy); }
.ag-card h1 { margin: 0; font-family: SansitaSwashed, Georgia, serif; font-size: clamp(24px, 4vw, 31px); line-height: 1.15; font-weight: 700; color: var(--ag-navy); }
.ag-sub { margin: 0; color: var(--ag-muted); font-size: 15.5px; line-height: 1.55; max-width: 44ch; }
.ag-main { width: 100%; justify-content: center; margin-top: 6px; }
.ag-link { border: 0; background: none; padding: 6px 10px; color: var(--ag-blue); font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.ag-link:hover { color: var(--ag-navy); text-decoration: underline; }
.ag-back { position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ag-line); background: var(--ice, #fff); color: var(--ag-navy); cursor: pointer; display: grid; place-items: center; }
.ag-back:hover { background: #F3F7FC; }
.ag-dots { display: flex; gap: 7px; margin: 0 0 4px; }
.ag-dots i { width: 26px; height: 5px; border-radius: 99px; background: #DCE6F1; } .ag-dots i.done { background: var(--ag-blue); } .ag-dots i.on { background: var(--ag-gold); }
.ag-secure { margin: 8px 0 0; font-size: 12.5px; color: var(--ag-muted); line-height: 1.5; max-width: 46ch; } .ag-secure i { color: #159A6B; margin-right: 4px; }

.ag-hero { position: relative; display: grid; place-items: center; margin: 4px 0 2px; }
.ag-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: var(--ag-gold2); background: linear-gradient(160deg, var(--ag-navy), var(--ag-blue)); box-shadow: 0 10px 26px rgba(6, 27, 56, .3); }
.ag-ic.big { width: 92px; height: 92px; font-size: 40px; }
.ag-ic.ok { background: linear-gradient(160deg, #0f7a52, #20b27d); color: #fff; } .ag-ic.bad { background: linear-gradient(160deg, #a02a2a, #d9534f); color: #fff; } .ag-ic.wait { background: linear-gradient(160deg, #8a6a05, #E8A91C); color: #fff; }
.ag-ic.spin { animation: ag-pulse 1.6s ease-in-out infinite; }
.ag-18 { position: absolute; right: -14px; bottom: -4px; padding: 3px 9px; border-radius: 99px; background: var(--ag-gold); color: #1c2733; font-weight: 900; font-size: 13px; border: 2px solid #fff; }
@keyframes ag-pulse { 50% { transform: scale(1.07); box-shadow: 0 10px 34px rgba(240, 193, 44, .5); } }

.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.ag-list li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding: 11px 13px; border-radius: 13px; background: #F3F7FC; border: 1px solid var(--ag-line); color: #33475F; font-size: 14.5px; line-height: 1.45; }
.ag-list i { color: var(--ag-blue); margin-top: 3px; }

.ag-methods { display: grid; gap: 10px; width: 100%; text-align: left; }
.ag-m { text-align: left; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--ag-line); background: var(--ice, #fff); font: inherit; color: var(--ag-navy); cursor: pointer; }
.ag-m.on { border-color: var(--ag-gold); background: #FFFBEB; box-shadow: 0 4px 14px rgba(240, 193, 44, .25); }
.ag-m.off { opacity: .6; cursor: not-allowed; background: #F7F9FC; }
.ag-m-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--ag-navy), var(--ag-blue)); color: var(--ag-gold2); font-size: 20px; }
.ag-m-t { display: grid; gap: 2px; } .ag-m-t b { font-size: 15.5px; } .ag-m-t small { color: var(--ag-muted); font-size: 13px; line-height: 1.35; }
.ag-m-ok { color: #159A6B; font-size: 20px; } .ag-soon { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #E8EEF6; color: var(--ag-muted); white-space: nowrap; }

.ag-docs { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ag-thumb { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--ag-line); background: #0b2342; aspect-ratio: 1.55; }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-thumb figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(6, 27, 56, .75); color: #fff; font-size: 12px; font-weight: 800; }
.ag-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(6, 27, 56, .8); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ag-drop { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: center; padding: 22px 16px; border-radius: 18px; border: 2px dashed #BFD0E4; background: #F7FAFE; }
.ag-drop > i { font-size: 30px; color: var(--ag-blue); } .ag-drop b { font-size: 15.5px; }
.ag-drop-b { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ag-phone { color: var(--ag-muted); font-size: 12.5px; line-height: 1.45; max-width: 36ch; }

.ag-cam { position: relative; width: min(300px, 78%); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #0b2342; box-shadow: 0 10px 28px rgba(6, 27, 56, .3); }
.ag-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.ag-oval { position: absolute; inset: 9% 13% 16%; border-radius: 50%; border: 3px dashed var(--ag-gold2); box-shadow: 0 0 0 999px rgba(6, 27, 56, .5); pointer-events: none; }
.ag-say { position: absolute; left: 10px; right: 10px; bottom: 16px; padding: 9px 12px; border-radius: 14px; background: rgba(6, 27, 56, .82); color: #fff; font-weight: 800; font-size: 14.5px; opacity: 0; transition: opacity .2s; }
.ag-say.on { opacity: 1; }
.ag-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .25); } .ag-bar i { display: block; height: 100%; width: 0; background: var(--ag-gold); }
.ag-ctl { display: grid; gap: 6px; width: 100%; justify-items: center; }
.ag-frames { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .ag-frames img { width: 78px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ag-line); transform: scaleX(-1); }
#ag-selfie-ui { display: grid; gap: 10px; width: 100%; justify-items: center; }

.ag-prog { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.ag-prog li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 13px; background: #F3F7FC; border: 1px solid var(--ag-line); color: var(--ag-muted); }
.ag-prog li.done { color: var(--ag-navy); } .ag-prog li.done > span { color: #159A6B; } .ag-prog li.on { color: var(--ag-navy); background: #FFFBEB; border-color: #F0D88A; } .ag-prog small { color: var(--ag-muted); font-size: 12.5px; }

.ag-why { width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: #FFF6F5; border: 1px solid #F2D2CF; } .ag-why b { color: #8a2420; font-size: 14px; }
.ag-why ul { margin: 8px 0 0; padding-left: 18px; color: #5a3a38; font-size: 14px; line-height: 1.6; }
.ag-note { margin: 0; padding: 11px 14px; border-radius: 12px; background: #EEF4FB; color: #33475F; font-size: 13.5px; line-height: 1.5; text-align: left; width: 100%; } .ag-note i { color: var(--ag-blue); margin-right: 5px; } .ag-note.warn { background: #FFF6E0; } .ag-note.warn i { color: #B7791F; }

/* candado para contenido +18 */
.ag-lock { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 26px 20px; border-radius: 20px; background: linear-gradient(160deg, #0A2547, #123a6b); color: #E8EFF8; border: 1px solid rgba(240, 193, 44, .5); }
.ag-lock b { color: #fff; font-size: 18px; } .ag-lock p { margin: 0; max-width: 42ch; font-size: 14.5px; line-height: 1.5; }
.ag-lock-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 193, 44, .18); color: var(--ag-gold2); font-size: 22px; }
.ag-lock .pfx-btn { margin-top: 6px; }

/* tarjeta de estado (Inicio / Ajustes) */
.ag-card-s { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--ag-line, #E3EBF4); background: var(--ice, #fff); box-shadow: 0 8px 22px rgba(6, 27, 56, .07); font-family: Lato, Arial, sans-serif; }
.ag-card-s b { display: block; color: #061B38; font-size: 16.5px; } .ag-card-s p { margin: 3px 0 0; color: #5B6F86; font-size: 14px; line-height: 1.45; }
.ag-s-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: #EEF4FB; color: #154C82; }
.ag-card-s.go { background: linear-gradient(120deg, #FFF8DC, #FFFDF4); border-color: #EBCB63; } .ag-card-s.go .ag-s-ic { background: linear-gradient(160deg, #F8D56A, #E8A91C); color: #1c2733; }
.ag-card-s.wait .ag-s-ic { background: #FFF1CC; color: #8a6a05; } .ag-card-s.bad { border-color: #F2D2CF; background: #FFF9F8; } .ag-card-s.bad .ag-s-ic { background: #FBE3E1; color: #b3322d; } .ag-card-s.ok .ag-s-ic { background: #DDF5EA; color: #159A6B; }

.ag-pop-b p { margin: 0; color: #33475F; line-height: 1.55; }

/* pasos del aviso, método elegido, QR del móvil, página del teléfono */
.ag-how { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ag-how li { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border-radius: 14px; background: #F3F7FC; border: 1px solid var(--ag-line); }
.ag-how li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--ag-navy), var(--ag-blue)); color: var(--ag-gold2); font-weight: 900; font-size: 13px; margin-bottom: 3px; }
.ag-how b { font-size: 13.5px; color: var(--ag-navy); } .ag-how small { font-size: 12px; color: var(--ag-muted); line-height: 1.3; }
.ag-m { transition: border-color .15s, box-shadow .15s, transform .15s; }
.ag-m.on:hover { transform: translateY(-1px); border-color: #E8A91C; }
.ag-m.on:not(.sel) { background: var(--ice, #fff); border-color: var(--ag-line); box-shadow: none; }
.ag-m.sel { border-color: var(--ag-gold); background: #FFFBEB; box-shadow: 0 4px 14px rgba(240, 193, 44, .28); }
.ag-m:focus-visible, .ag-link:focus-visible, .ag-back:focus-visible { outline: 3px solid var(--ag-blue); outline-offset: 2px; }
.ag-badge { white-space: nowrap; font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #DDF5EA; color: #0f7a52; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.ag-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C5D3E3; display: grid; place-items: center; color: transparent; font-size: 12px; background: var(--ice, #fff); }
.ag-m.sel .ag-radio { background: var(--ag-gold); border-color: var(--ag-gold); color: #1c2733; }
.ag-phone { font-size: 13.5px; } .ag-phone i { margin-right: 6px; }
.ag-hand { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: #F3F7FC; border: 1px solid var(--ag-line); }
.ag-hand.exp { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.ag-qr { width: 150px; height: 150px; padding: 6px; border-radius: 14px; background: var(--ice, #fff); border: 1px solid var(--ag-line); } .ag-qr svg { width: 100%; height: 100%; display: block; }
.ag-hand-t { display: grid; gap: 6px; min-width: 0; } .ag-hand-t b { color: var(--ag-navy); font-size: 15.5px; } .ag-hand-t p { margin: 0; color: var(--ag-muted); font-size: 13px; line-height: 1.45; }
.ag-copy { display: flex; gap: 6px; min-width: 0; } .ag-copy input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--ag-line); border-radius: 10px; background: var(--ice, #fff); color: var(--ag-navy); font: inherit; font-size: 12.5px; }
.ag-wait { color: var(--ag-navy) !important; font-weight: 700; } .ag-wait i { color: var(--ag-blue); margin-right: 5px; } .ag-wait .fa-circle-check { color: #159A6B; }
.ag-hand .ag-link { justify-self: start; padding-left: 0; font-size: 13px; }
.ag-card.v-phone { padding-top: 36px; }
.ag-card { animation: ag-in .32s ease both; } @keyframes ag-in { from { opacity: 0; transform: translateY(8px); } }
.ag-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--ag-navy), var(--ag-blue) 55%, var(--ag-gold)); }
.ag-card.v-done::before { background: linear-gradient(90deg, #0f7a52, #20b27d); } .ag-card.v-fail::before { background: linear-gradient(90deg, #a02a2a, #d9534f); } .ag-card.v-review::before { background: linear-gradient(90deg, #8a6a05, #E8A91C); }
.ag-card.v-done .ag-ic.ok { animation: ag-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes ag-pop { from { transform: scale(.4); opacity: 0; } }

@media (max-width: 640px) {
  .ag-badge { display: block; width: max-content; margin: 3px 0 0; }
  .ag-hand { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ag-hand-t { justify-items: center; } .ag-hand .ag-link { justify-self: center; } .ag-qr { width: 170px; height: 170px; }
  .ag-page { padding: 6px 0 26px; } .ag-card { padding: 30px 18px 22px; border-radius: 20px; }
  .ag-card-s { grid-template-columns: auto 1fr; } .ag-card-s .pfx-btn { grid-column: 1 / -1; justify-content: center; }
  .ag-m { grid-template-columns: 42px 1fr auto; padding: 12px; }
}
@media (hover: none) and (pointer: coarse) { .ag-phone { display: none; } .ag-hand { display: none; } }
@media (prefers-reduced-motion: reduce) { .ag-ic.spin, .ag-card, .ag-card.v-done .ag-ic.ok { animation: none; } .ag-say, .ag-m { transition: none; } }
