/* Momentitos v1: ajustes sobre el diseño del prototipo */
body { background: #FFFBF0; }

/* en el celular la app ocupa toda la pantalla; en la compu se ve como un teléfono */
@media (max-width: 560px) {
  html body .page { padding: 0; max-width: none; }
  html body .main { gap: 0; }
  html body .x-app { padding: 0; gap: 0; }
  html body .x-app .x-phone { max-width: none; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; border: 0; }
}
@media (display-mode: standalone) {
  html body .x-app .x-phone { padding-top: env(safe-area-inset-top); }
}

/* acceso con código */
.x-gate h1 { font: 800 30px/1.08 var(--x-head, inherit); margin: 4px 0 8px; color: var(--x-navy); }
.x-gate .x-hello { font: 800 14px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--x-navy); }
.x-gate form { margin-top: 8px; }
.x-gate__input { text-transform: uppercase; letter-spacing: 0.08em; font-size: 20px; text-align: center; }
.x-gate__err { margin-top: 8px; color: #B42318; font: 700 15px/1.35 var(--sans); }
.x-gate .x-primary { width: 100%; margin-top: 14px; }
.x-gate__mp { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.x-gate .x-giftbtn { width: 100%; margin-top: 14px; }
.x-fine a { color: inherit; }

/* pie legal: siempre visible al final de cada pantalla, sin iniciar sesión */
.x-legal { margin: 28px 0 8px; padding: 16px 4px 0; border-top: 2px dashed rgba(74, 85, 120, 0.25); text-align: center; }
.x-screen--onb .x-legal { margin-left: 20px; margin-right: 20px; }
.x-legal__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.x-legal__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 2px solid #4A5578; border-radius: 999px;
  background: #fff; color: #14213D;
  font: 800 14px/1.2 var(--sans); text-decoration: none;
}
.x-legal__links { margin-top: 12px !important; font: 600 13px/1.5 var(--sans); color: rgba(20, 33, 61, 0.8); }
.x-legal__links a { color: inherit; text-underline-offset: 3px; }
.x-legal__fine { margin-top: 6px !important; font: 500 12px/1.4 var(--sans); color: rgba(20, 33, 61, 0.65); }

/* familia: quitar adulto */
.x-adult-rm { display: inline; margin: 0 0 0 8px; min-height: 0; padding: 0; }
.x-row[hidden] { display: none !important; }

/* aviso de datos cifrados (generado por build.py) */
.x-privnote {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 16px 0; padding: 12px 14px;
  border: 2px solid #4A5578; border-radius: 18px;
  background: #E6F7EF; color: #14213D;
  font: 700 15px/1.4 var(--sans);
  box-shadow: 3px 3px 0 #A8E6CF;
}
.x-privnote span { font-size: 18px; line-height: 1.2; }
.x-sheet .x-privnote { margin: 12px 0 0; }
/* fin aviso de datos cifrados */

/* Sumar a la familia */
.x-fam .x-famlist { margin: 14px 0 12px; padding-left: 20px; font: 700 15px/1.45 var(--sans); color: var(--x-navy); }
.x-fam .x-famlist li { margin: 6px 0; }
.x-famlink { margin-top: 12px; padding: 12px 14px; border: 2px dashed var(--x-navy); border-radius: 16px; background: #FFF3C4;
  font: 700 14px/1.35 ui-monospace, Menlo, monospace; color: var(--x-navy); word-break: break-all; user-select: all; -webkit-user-select: all; }
.x-famrow { margin-top: 10px; justify-content: flex-start; flex-wrap: wrap; }
.x-famwide { width: 100%; margin-top: 18px; }
.x-fammembers li.x-fammember { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-famquitar { min-height: 40px !important; padding: 0 14px !important; font-size: 14px !important; }
.x-famtog { display: inline-flex; align-items: center; margin: 8px 0 2px; min-height: 36px; padding: 0 12px; border: 2px solid rgba(20, 33, 61, 0.35);
  border-radius: 999px; background: #fff; color: var(--x-navy); font: 800 13px/1.1 var(--sans); cursor: pointer; }
.x-famtog[aria-pressed="true"] { background: #FFC629; border-color: #14213D; }
.x-famtog[aria-busy="true"] { opacity: 0.6; }
.x-log li .x-famtog { display: flex; width: max-content; }
.x-fambadge { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 999px; background: #FFC629; color: #14213D;
  border: 2px solid #14213D; font: 800 11px/1.1 var(--sans); }
.x-gal__item { position: relative; }
.x-famview { margin-top: 12px; }
#fam-code { white-space: nowrap; }

/* Familia con cobro (02/12/2026) */
.x-fam .x-famprecio { margin: 14px 0 10px; font: 800 16px/1.4 var(--sans); color: var(--x-navy); }
.x-fam a.x-fambtn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; box-sizing: border-box; }
.x-fam a.x-fambtn[hidden] { display: none; }
.x-fam #fam-activate { margin-top: 10px; }
