/* ============================================================
   NEAUVIA PRO · Páginas de la cuenta (checkout, admin, contraseña)
   Usa los tokens de neauviapro.css
   ============================================================ */
body.app { background: var(--light); color: var(--ink); }
.app__hdr { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.app__bar { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.app__bar .logo img { height: 24px; }
.app__nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; font-size: .86rem; }
.app__nav a, .app__nav button { color: #4a4744; }
.app__nav a:hover, .app__nav button:hover { color: var(--red); }
.app__who { font-size: .82rem; color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .app__who { display: none; } }
.app__main { padding: 40px 0 80px; }
.app__title { font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.app__title em { font-style: normal; font-weight: 600; color: var(--red); }
.app__lede { margin-top: .6rem; color: #5f5b56; font-weight: 300; }
.app__card { background: var(--white); border: 1px solid var(--line); padding: 1.6rem; }
@media (min-width: 768px) { .app__card { padding: 2rem; } }
.app__card + .app__card { margin-top: 1.4rem; }
.app__card h2 { font-weight: 500; font-size: 1.15rem; margin-bottom: 1rem; }
.app__gate { max-width: 520px; margin: 40px auto; text-align: center; }
.app__gate p { color: #5f5b56; margin: .6rem 0 1.4rem; }
.app__gate .btn + .btn { margin-left: .6rem; }
.app .fld { margin-bottom: 1rem; }
.app .fld > span { margin-bottom: .4rem; font-size: .8rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.app .fld input, .app .fld select, .app .fld textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; background: var(--white); border: 1px solid #d9d6d1; border-radius: 0; font-size: .95rem; }
.app .fld textarea { min-height: 90px; resize: vertical; }
.app .fld input:focus, .app .fld select:focus, .app .fld textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,18,59,.12); }
.app .btn--line { color: var(--ink); border-color: var(--ink); }
.app .btn--sm { min-height: 38px; padding: 0 1rem; font-size: .78rem; letter-spacing: .08em; }
.msg { margin: .4rem 0 1rem; padding: .75rem .9rem; font-size: .86rem; line-height: 1.5; color: var(--red-dk); background: rgba(196,18,59,.06); border-left: 2px solid var(--red); }
.msg.is-ok { color: #1e5b3a; background: rgba(37,150,90,.08); border-left-color: #25965a; }
.grid2 { display: grid; gap: 1.4rem; }
@media (min-width: 960px) { .grid2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; } }
.row2 { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Tablas */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { position: sticky; top: 0; background: var(--light); text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .8rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl small { display: block; color: var(--muted); font-size: .78rem; }
.tbl input[type=number] { width: 120px; min-height: 38px; padding: 0 .6rem; border: 1px solid #d9d6d1; text-align: right; font-size: .92rem; }
.tbl select { min-height: 36px; padding: 0 .5rem; border: 1px solid #d9d6d1; background: var(--white); font-size: .85rem; }
.acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.acts button { padding: .35rem .65rem; font-size: .76rem; font-weight: 500; border: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.acts button:hover { border-color: var(--ink); }
.acts .is-good { color: #1e5b3a; border-color: rgba(37,150,90,.4); }
.acts .is-bad { color: var(--red-dk); border-color: rgba(196,18,59,.35); }
.chip { display: inline-block; padding: .18rem .55rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.chip--pending { color: #8a6d1f; } .chip--approved { color: #1e7a4a; } .chip--rejected, .chip--revoked { color: var(--red-dk); }
.chip--admin { color: var(--ink); background: var(--light); }
.chip--pendiente_pago { color: #8a6d1f; } .chip--pagado, .chip--entregado { color: #1e7a4a; } .chip--enviado { color: #2d5f8a; } .chip--cancelado, .chip--pago_fallido { color: var(--red-dk); }

/* Admin */
.adm__tabs { display: flex; gap: 0; margin: 1.6rem 0 1.4rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.adm__tabs button { padding: .9rem 1.2rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9a958f; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.adm__tabs button.is-active { color: var(--ink); border-bottom-color: var(--red); }
.adm__tabs .hdr__badge { position: static; display: inline-grid; margin-left: .4rem; vertical-align: 1px; }
.adm__bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.adm__bar input[type=search] { min-height: 40px; min-width: 240px; padding: 0 .8rem; border: 1px solid #d9d6d1; font-size: .9rem; }
.adm__filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.adm__filters button { padding: .45rem .8rem; font-size: .8rem; border: 1px solid var(--line); background: var(--white); }
.adm__filters button.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.adm__detail td { background: #fbfaf8; }
.adm__detail dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1.4rem; }
.adm__detail dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm__detail dd { font-size: .88rem; word-break: break-word; }
.adm__empty { padding: 2rem; text-align: center; color: var(--muted); }
.adm__save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .8rem; align-items: center; padding: 1rem 0 0; background: linear-gradient(transparent, var(--light) 30%); }
.adm__save span { font-size: .84rem; color: var(--muted); }
.tbl tr.is-dirty td { background: #fff8ec; }

/* Checkout */
.co__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.co__item img { width: 64px; height: 80px; object-fit: contain; background: var(--light); }
.co__item .cart__qty { margin-top: .4rem; }
.co__sum p { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .95rem; }
.co__sum p.co__tot { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }
.co__note { margin-top: 1rem; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.co__done { text-align: center; padding: 2.4rem 1.6rem; }
.co__done h2 { font-weight: 300; font-size: 1.9rem; margin-bottom: .6rem; }
.co__folio { display: inline-block; margin: .8rem 0 1.2rem; padding: .5rem 1rem; background: var(--light); font-weight: 600; letter-spacing: .06em; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.check input { margin-top: .2rem; accent-color: var(--red); }
