/* =====================================================================
   GalviaShop · Acceso · acceso-v6.css
   Iniciar sesión (9999) y Crear tienda (11). Lo arma acceso-v6.js.
   ===================================================================== */
:root {
  --g-tinta: #1A1650;      /* panel de marca */
  --g-tinta-2: #241F6B;
  --g-indigo: #4338CA;     /* acciones */
  --g-indigo-osc: #3730A3;
  --g-cian: #22D3EE;       /* acento del logo */
  --g-papel: #F6F6FA;
  --g-texto: #14123A;
  --g-gris: #66648A;
  --g-linea: #DDDCEA;
  --g-ok: #067647;
  --g-err: #B42318;
  --g-wa: #25D366;
  --g-f-tit: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --g-f-txt: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Universal Theme fuera de la vista ---------- */
body.gsa-on .t-Header, body.gsa-on .t-Body-header, body.gsa-on .t-Body-nav, body.gsa-on .t-Body-title,
body.gsa-on .t-Login-logo, body.gsa-on .t-Login-header, body.gsa-on .t-Footer, body.gsa-on #t_Footer_topButton { display: none !important; }
body.gsa-on .t-Body, body.gsa-on .t-Body-main, body.gsa-on .t-Body-content, body.gsa-on .t-Body-contentInner,
body.gsa-on .t-Body-fullContent, body.gsa-on .t-Login, body.gsa-on .t-Login-container, body.gsa-on .t-Login-body {
  padding: 0 !important; margin: 0 !important; max-width: none !important; min-height: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html:has(body.gsa-on), body.gsa-on { background: var(--g-papel) !important; background-image: none !important; }
body.gsa-on { margin: 0; font-family: var(--g-f-txt); color: var(--g-texto); -webkit-font-smoothing: antialiased; }
body.gsa-on .a-wrap, body.gsa-on .t-Login-region { display: none !important; }
#gsa, #gsa *, #gsa *::before, #gsa *::after { box-sizing: border-box; }

/* ---------- Estructura ---------- */
#gsa { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh;
  font-family: var(--g-f-txt); }

/* ---------- Panel de marca ---------- */
.gsa-lado {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(165deg, var(--g-tinta-2), var(--g-tinta) 55%);
  padding: 40px clamp(32px, 4vw, 60px) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 36px;
}
.gsa-lado::before { /* trama de puntos, se desvanece hacia abajo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.gsa-lado::after { /* luz detrás del teléfono */
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -170px; top: 50%; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.55), rgba(34,211,238,.16) 48%, transparent 70%);
}
.gsa-marca { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--g-f-tit); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.gsa-marca i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6366F1, var(--g-cian));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.gsa-intro { align-self: center; max-width: 430px; padding: 40px 0; }
.gsa-intro h1 { font-family: var(--g-f-tit); font-weight: 700; font-size: clamp(40px, 4.3vw, 60px); line-height: .98;
  letter-spacing: -.035em; margin: 0 0 20px; color: #fff; text-wrap: balance; }
.gsa-intro p { font-size: 17px; line-height: 1.55; color: #CBC8F0; margin: 0 0 30px; max-width: 30em; }
.gsa-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gsa-pts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.45; color: #B9B6E2; }
.gsa-pts b { display: block; color: #fff; font-weight: 600; }
.gsa-pts svg { width: 22px; height: 22px; color: var(--g-cian); }
.gsa-escena { position: relative; align-self: center; padding: 24px 8px 24px 0; }
.gsa-escena-nota { margin: 18px 0 0; text-align: center; font-size: 13px; color: #A9A6D6; }
.gsa-pie { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #8F8CC2; }
.gsa-pie a { color: #E4E2FF; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28); }
.gsa-pie a:hover { border-bottom-color: #fff; }

/* ---------- Teléfono ---------- */
.gsa-tel { width: 256px; aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 40px; background: #0F0C33;
  box-shadow: 0 50px 90px -30px rgba(5,3,30,.85), inset 0 0 0 1.5px rgba(255,255,255,.14);
  transform: rotate(-3deg); }
.gsa-tel-in { position: relative; height: 100%; overflow: hidden; border-radius: 31px; background: #fff; color: var(--g-texto);
  display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; }
.gsa-tel-url { margin: 24px 14px 6px; padding: 6px 10px; border-radius: 999px; background: #F0EFF7; color: var(--g-gris);
  font-size: 9.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsa-tel-url b { color: var(--g-texto); font-weight: 600; }

/* vista previa de la tienda (registro) */
.tp-top { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; border-bottom: 1px solid #EEEDF5; }
.tp-mono { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-indigo); color: #fff; font-family: var(--g-f-tit); font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.tp-top b { flex: 1; min-width: 0; font-family: var(--g-f-tit); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-bag { width: 40px; height: 18px; border-radius: 999px; background: var(--g-indigo); }
.tp-hero { margin: 10px; padding: 16px 14px 14px; border-radius: 14px; background: var(--g-indigo); color: #fff; }
.tp-hero small { display: block; font-size: 8.5px; color: #D9D7FF; margin-bottom: 5px; }
.tp-hero b { display: block; font-family: var(--g-f-tit); font-size: 20px; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 11px;
  overflow-wrap: anywhere; max-height: 3.1em; overflow: hidden; }
.tp-hero span { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--g-indigo); font-size: 8.5px; font-weight: 600; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px; }
.tp-grid i { display: block; aspect-ratio: 1 / 1.3; border-radius: 10px; background:
    linear-gradient(#ECEBF5, #ECEBF5) 0 0 / 100% 66% no-repeat,
    linear-gradient(#DCDAEA, #DCDAEA) 6px 76% / 62% 5px no-repeat,
    linear-gradient(var(--g-indigo), var(--g-indigo)) 6px 90% / 34% 5px no-repeat, #F7F7FB; }
.tp-wa { position: absolute; right: 12px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-wa); color: #fff; box-shadow: 0 6px 14px -4px rgba(37,211,102,.7);
  transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tp-wa.on { transform: scale(1); }
.tp-wa svg { width: 19px; height: 19px; }

/* panel (login) */
.tp-panel { padding: 2px 12px; }
.tp-saludo { margin: 6px 0 10px; font-family: var(--g-f-tit); font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.tp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tp-stats div { padding: 9px 10px; border-radius: 12px; background: #F2F1FA; }
.tp-stats small { display: block; font-size: 8.5px; color: var(--g-gris); }
.tp-stats b { font-family: var(--g-f-tit); font-size: 16px; letter-spacing: -.01em; }
.tp-sub { margin: 0 0 4px; font-size: 9.5px; color: var(--g-gris); }
.tp-ped { display: grid; grid-template-columns: 7px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEEDF5; }
.tp-ped i { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; }
.tp-ped span { min-width: 0; font-size: 8.5px; color: var(--g-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ped span b { display: block; font-size: 10.5px; color: var(--g-texto); }
.tp-ped em { font-style: normal; font-weight: 600; font-size: 9.5px; }
.tp-ped.nuevo { margin: 0 -12px; padding: 8px 12px; background: #EEEDFF; animation: gsa-fila .5s ease both; }
.tp-ped.nuevo i { background: #F79009; box-shadow: 0 0 0 3px rgba(247,144,9,.2); }
@keyframes gsa-fila { from { opacity: 0; transform: translateY(-8px); } }
.gsa-noti { position: absolute; left: -26px; top: 62%; z-index: 2; width: 252px;
  display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: center; padding: 12px 14px 12px 12px;
  border-radius: 18px; background: rgba(255,255,255,.97); color: var(--g-texto); font-size: 12px; line-height: 1.35;
  box-shadow: 0 26px 50px -18px rgba(5,3,30,.75);
  opacity: 0; transform: translate(-14px, 10px) rotate(-5deg); }
.gsa-noti.on { animation: gsa-llega .6s cubic-bezier(.2, 1.25, .4, 1) forwards; }
@keyframes gsa-llega { to { opacity: 1; transform: rotate(-1.5deg); } }
.gsa-noti .wa { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--g-wa); color: #fff; }
.gsa-noti .wa svg { width: 20px; height: 20px; }
.gsa-noti b { display: block; font-size: 13px; }
.gsa-noti span:last-child { color: var(--g-gris); }

/* ---------- Formulario ---------- */
.gsa-form { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: var(--g-papel); }
.gsa-caja { width: 100%; max-width: 404px; }
.gsa-caja h2 { margin: 0 0 8px; font-family: var(--g-f-tit); font-weight: 700; font-size: 36px; line-height: 1.04;
  letter-spacing: -.03em; color: var(--g-texto); }
.gsa-sub { margin: 0 0 30px; font-size: 15.5px; color: var(--g-gris); }
.gsa-campo { margin-bottom: 18px; }
#gsa .gsa-campo > label, #gsa .t-Form-label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; color: #2D2B52; line-height: 1.3; }
#gsa input[type=text], #gsa input[type=email], #gsa input[type=password], #gsa input[type=tel] {
  width: 100%; height: 52px; margin: 0; padding: 0 16px !important; font: inherit; font-size: 16px; color: var(--g-texto);
  background: #fff; border: 1.5px solid var(--g-linea); border-radius: 14px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#gsa input { outline: none !important; }
#gsa input::placeholder { color: #A6A4C0; }
#gsa input:hover { border-color: #C6C4DC; }
#gsa input:focus, #gsa input:focus-visible, #gsa input.is-focused { outline: none !important; border-color: var(--g-indigo) !important; box-shadow: 0 0 0 4px rgba(67,56,202,.14) !important; }
#gsa input.bad { border-color: #F97066; }
#gsa small, #gsa .gsa-campo small { display: block; margin-top: 7px; font-size: 13px; line-height: 1.4; color: var(--g-gris); }
#gsa small.ok { color: var(--g-ok); }
#gsa small.bad { color: var(--g-err); }

/* botones */
#gsa .gsa-btn, #gsa button.gsa-btn.t-Button {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin: 8px 0 0; padding: 0 20px;
  border: 0; border-radius: 14px; background: var(--g-indigo); color: #fff; cursor: pointer;
  font: 600 16px/1 var(--g-f-txt); letter-spacing: 0; text-shadow: none;
  box-shadow: 0 12px 26px -14px rgba(67,56,202,.9); transition: background .15s ease, transform .1s ease;
}
#gsa .gsa-btn:hover { background: var(--g-indigo-osc); }
#gsa .gsa-btn:active { transform: translateY(1px); }
#gsa .gsa-btn[disabled] { opacity: .6; cursor: progress; }
#gsa .gsa-btn:focus-visible, #gsa a:focus-visible, #gsa button:focus-visible { outline: 3px solid rgba(67,56,202,.45); outline-offset: 2px; }
#gsa .gsa-btn.gsa-btn-sec { height: 46px; margin-top: 6px; background: transparent; color: var(--g-gris); box-shadow: none; font-weight: 500; }
#gsa .gsa-btn.gsa-btn-sec:hover { background: #ECEBF5; color: var(--g-texto); }
#gsa .t-Login-buttons, #gsa .t-ButtonRegion-buttons { display: block; margin: 0; padding: 0; }
.gsa-alt { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--g-linea); text-align: center; font-size: 15px; color: var(--g-gris); }
#gsa .gsa-alt a { color: var(--g-indigo); font-weight: 600; text-decoration: none; cursor: pointer; }
#gsa .gsa-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ítems nativos de APEX (login) */
#gsa .t-Form-fieldContainer { display: block !important; margin: 0 0 18px !important; padding: 0 !important; }
#gsa .t-Form-labelContainer, #gsa .t-Form-inputContainer { display: block !important; width: 100% !important; max-width: none !important;
  flex: 0 0 100% !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
#gsa .t-Form-itemWrapper { display: block; }
#gsa .u-VisuallyHidden { position: static !important; width: auto !important; height: auto !important; clip: auto !important;
  overflow: visible !important; white-space: normal !important; }
#gsa .t-Form-itemWrapper > .apex-item-icon, #gsa .t-Form-itemWrapper > .fa { display: none !important; }
#gsa .apex-item-group--password .t-Button--passwordVisibility { display: flex !important; align-items: center !important; justify-content: center !important;
  top: 6px !important; right: 6px !important; width: 40px !important; height: 40px !important; min-height: 0 !important; transform: none !important; }
#gsa .t-Button--passwordVisibility .fa { display: block !important; position: static !important; margin: 0 !important; font-size: 17px; line-height: 1; color: inherit; transform: none !important; }
#gsa .apex-item-group--password { position: relative; display: block; }
#gsa .apex-item-group--password input { padding-right: 54px !important; }
#gsa .apex-item-group--password button, .gsa-ojo {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; padding: 0; margin: 0;
  display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--g-gris);
  box-shadow: none; cursor: pointer;
}
#gsa .apex-item-group--password button:hover, .gsa-ojo:hover { background: #F0EFF7; color: var(--g-texto); }
.gsa-ojo svg { width: 20px; height: 20px; }
#P9999_REMEMBER_CONTAINER { margin-bottom: 8px !important; }
#gsa input[type=checkbox] { width: 18px; height: 18px; margin: 0 9px 0 0; vertical-align: -3px; accent-color: var(--g-indigo); }
#P9999_REMEMBER_CONTAINER label { display: inline !important; font-size: 14.5px; font-weight: 500; color: #2D2B52; }
#gsa .t-Form-error { margin-top: 6px; font-size: 13px; color: var(--g-err); }

/* avisos */
#gsa .t-Body-alert { margin: 0 0 18px; }
#gsa .t-Alert { margin: 0; border-radius: 14px; border: 1px solid #FECDCA; background: #FEF3F2; color: var(--g-err); box-shadow: none; }
#gsa .t-Alert .t-Alert-title, #gsa .t-Alert h2 { font-family: var(--g-f-txt); font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
#gsa .t-Alert .t-Button--closeAlert { top: 6px; right: 6px; }
#gsa .a-err { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid #FECDCA; background: #FEF3F2;
  color: var(--g-err); font-size: 14px; line-height: 1.45; }
#gsa .a-err.on { display: block; animation: gsa-aviso .3s ease; }
@keyframes gsa-aviso { 0%, 100% { transform: none; } 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }

/* ---------- Registro: pasos, dirección y contraseña ---------- */
.gsa-pasos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.gsa-pasos li { display: grid; gap: 9px; font-size: 13.5px; color: var(--g-gris); }
.gsa-pasos li::before { content: ""; height: 4px; border-radius: 4px; background: var(--g-linea); transition: background .3s ease; }
.gsa-pasos li.on { color: var(--g-texto); font-weight: 600; }
.gsa-pasos li.on::before, .gsa-pasos li.hecho::before { background: var(--g-indigo); }
.gsa-paso { display: none; }
.gsa-paso.on { display: block; animation: gsa-paso .28s ease; }
@keyframes gsa-paso { from { opacity: 0; transform: translateX(10px); } }
.gsa-url { display: flex; align-items: center; height: 52px; overflow: hidden; background: #fff;
  border: 1.5px solid var(--g-linea); border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.gsa-url:hover { border-color: #C6C4DC; }
.gsa-url:focus-within { border-color: var(--g-indigo); box-shadow: 0 0 0 4px rgba(67,56,202,.14); }
.gsa-url.bad { border-color: #F97066; }
#gsa .gsa-url input { flex: 1 1 auto; min-width: 60px; height: 100%; padding: 0 1px 0 16px !important; text-align: right; border: 0 !important;
  border-radius: 0; box-shadow: none !important; background: transparent; }
.gsa-dom { flex: 0 0 auto; padding-right: 16px; font-size: 15px; color: var(--g-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsa-url-prev { display: none; margin: 8px 0 0; font-size: 13px; color: var(--g-gris); overflow-wrap: anywhere; }
.gsa-url-prev b { color: var(--g-texto); font-weight: 600; }
.gsa-clave { position: relative; }
#gsa .gsa-clave input { padding-right: 54px !important; }
.gsa-fuerza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.gsa-fuerza i { height: 4px; border-radius: 4px; background: var(--g-linea); transition: background .2s ease; }
.gsa-fuerza[data-n="1"] i:nth-child(1) { background: #F04438; }
.gsa-fuerza[data-n="2"] i:nth-child(-n+2) { background: #F79009; }
.gsa-fuerza[data-n="3"] i { background: #12B76A; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .gsa-lado { grid-template-columns: minmax(0, 1fr); }
  .gsa-escena { display: none; }
}
@media (max-width: 900px) {
  #gsa { grid-template-columns: 1fr; }
  .gsa-lado { grid-template-rows: auto auto; row-gap: 14px; padding: 20px 20px 26px; }
  .gsa-lado::after { width: 340px; height: 340px; right: -150px; top: -90px; transform: none; }
  .gsa-intro { padding: 6px 0 0; }
  .gsa-intro h1 { font-size: 30px; margin-bottom: 8px; }
  .gsa-intro p { font-size: 14.5px; margin: 0; }
  .gsa-pts, .gsa-pie { display: none; }
  .gsa-form { align-items: flex-start; padding: 28px 20px 48px; }
  .gsa-caja h2 { font-size: 29px; }
  .gsa-sub { margin-bottom: 24px; }
  /* en el celular el dominio no entra al lado: la dirección completa va debajo */
  .gsa-dom { display: none; }
  #gsa .gsa-url input { text-align: left; padding-right: 16px !important; }
  .gsa-url-prev { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  #gsa *, #gsa *::before { animation: none !important; transition: none !important; }
  .gsa-noti { opacity: 1; transform: rotate(-1.5deg); }
}
