@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--text); overscroll-behavior-y: contain; }
html { overscroll-behavior-y: contain; }
button, input, select, textarea { font-family: inherit; }

.error-msg {
  background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-bdr);
  border-radius: 10px; padding: 12px 16px; font-size: 0.9rem;
  margin-bottom: 16px; display: none; font-weight: 500; animation: fadeIn 0.4s ease;
}

::placeholder { color: var(--hint); font-style: italic; font-size: 0.9rem; opacity: 1; }

.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--brand-20); border-radius: 26px; transition: 0.3s; }
.toggle-slider:before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--brand); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

.toggle-wrap { display: inline-block; flex-shrink: 0; }
.toggle-btn { position: relative; width: 48px; height: 26px; padding: 0; border: none; border-radius: 26px; background: var(--brand-20); cursor: pointer; transition: background 0.3s; -webkit-tap-highlight-color: transparent; }
.toggle-thumb { position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: transform 0.3s; display: flex; align-items: center; justify-content: center; }
.toggle-thumb::after {
  font-family: 'Material Symbols Outlined';
  font-size: 13px;
  font-style: normal;
  font-variation-settings: 'FILL' 1, 'wght' 600;
  content: 'close';
  color: var(--muted);
  line-height: 1;
}
.toggle-on .toggle-thumb::after {
  content: 'check';
  color: var(--brand);
}
.toggle-btn.toggle-on { background: var(--brand); }
.toggle-btn.toggle-on .toggle-thumb { transform: translateX(22px); }

.fnac-trigger-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border: 0px solid var(--border-light); border-radius: 12px;
  background: var(--surface-2); color: var(--text); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; font-family: inherit;
}
.fnac-trigger-btn:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-mid); }
.fnac-placeholder { color: var(--hint); font-style: italic; font-size: 0.88rem; }

.pantalla { display: none; }
.pantalla.activa { display: block; animation: smoothSlideUp 0.6s var(--ease-sheet); }

select, option, optgroup { font-family: 'Be Vietnam Pro', sans-serif !important; }

@media (prefers-color-scheme: dark) {
  #gsignin-skeleton, #gsignin-skeleton-main {
    background: linear-gradient(90deg,var(--dk-skeleton-base) 25%,var(--dk-skeleton-shine) 50%,var(--dk-skeleton-shine-2) 75%) !important;
    background-size: 200% 100% !important;
  }
}

/* WhatsApp grupo */
.btn-wp-grupo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border-radius: 12px; border: none;
  font-size: 0.88rem; font-weight: 800; cursor: pointer;
  text-decoration: none; transition: all 0.3s ease; letter-spacing: 0.3px;
  margin-top: 16px; background: var(--wa-bg); color: var(--success);
}
.btn-wp-grupo:hover { background: var(--wa-bg-hover); border-color: var(--wa-brand); transform: translateY(-2px); }

/* ─── MODALES INFO (primera vez) ──────────────────────────── */
.modal-info {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.82); padding: 16px;
  animation: fadeIn 0.25s ease;
}
.modal-info-card {
  background: var(--modal-info-card-bg); border-radius: var(--radius);
  padding: 24px 20px 20px; width: 100%; max-width: 360px;
  border: 2px solid var(--brand); max-height: 90vh; overflow-y: auto;
  animation: smoothSlideUp 0.3s var(--ease-sheet);
}
.modal-info-titulo { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.modal-info-sub    { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.modal-info-item   { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.modal-info-icon   { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-info-icon .material-symbols-outlined { font-size: 1.2rem; }
.mi-orange { background: var(--brand-light);  color: var(--brand); }
.mi-green  { background: var(--success-bg);   color: var(--success); }
.mi-blue   { background: var(--info-bg);      color: var(--info); }
.mi-amber  { background: var(--amber-light);  color: var(--amber-dark); }
.mi-purple { background: var(--purple-light); color: var(--purple); }
.modal-info-label  { font-size: 0.87rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.modal-info-desc   { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.modal-info-hr     { border: none; border-top: 1px solid var(--border-2); margin: 14px 0; width: 100%; }
.modal-info-footer { display: flex; gap: 10px; margin-top: 20px; }
.modal-info-footer .btn-secondary { flex: 1; font-size: 0.78rem; white-space: normal; padding: 10px 6px; line-height: 1.3; }
.modal-info-footer .btn-primary   { flex: 1; font-size: 0.78rem; padding: 20px; }
.modal-info-footer .btn-secondary { flex: 1; font-size: 0.78rem; white-space: nowrap; padding: 10px 6px; }

.otro-texto { width: 100%; }