/* static/css/onboarding.css */

/* Fuente base para ambos contextos */
.ob-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Tarjeta */
.ob-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  margin: 0 auto;
}

/* Contenido de tarjeta */
.ob-icon {
  font-size: 40px;
  color: var(--brand-primary-color, #FF5100);
  margin-bottom: 15px;
}
.ob-title {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 10px;
}
.ob-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  min-height: 60px;
}

/* Navegación */
.ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.ob-btn {
  background-color: var(--brand-secondary-color, #06326B);
  border: none;
  color: var(--brand-text-on-secondary, #FFFFFF);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ob-btn:hover { opacity: 0.85; }

/* Dots */
.ob-dots {
  display: flex;
  gap: 8px;
}
.ob-dots > div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  transition: background-color 0.3s;
}
.ob-dots > div.active {
  background-color: var(--brand-primary-color, #FF5100);
}

/* Encabezado reutilizable (si se usa) */
.ob-brand-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--brand-secondary-color, #06326B);
  text-align: center;
}
.ob-brand-header .brand-name {
  color: var(--brand-primary-color, #FF5100);
}

/* Utilidades */
.ob-fade {
  transition: opacity 0.5s ease-in-out;
}

/* Responsivo */
@media (max-width: 420px) {
  .ob-card { padding: 24px; }
  .ob-icon { font-size: 34px; }
}

/* Overlay a pantalla completa */
.onboarding-shell-root {
  position: relative;
  height: calc(100vh - 0px);
}

/* Centrado vertical y horizontal del contenido del loader */
#loader-wrapper {
  position: absolute; inset: 0;
  background-color: #f4f7f6;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  transition: opacity 0.5s ease-in-out;
}

/* Pila vertical: header + tarjeta + banda de carga */
.ob-stack {
  width: 100%;
  max-width: 520px; /* ligeramente más que la tarjeta para respiración */
  display: flex;
  flex-direction: column;
  align-items: stretch; /* la tarjeta ocupa el ancho */
  gap: 16px;
}

/* Header de marca consistente */
.ob-brand-header {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--brand-secondary-color, #06326B);
  text-align: center;
}
.ob-brand-header .brand-name {
  color: var(--brand-primary-color, #FF5100);
}

/* Banda de estado integrada visualmente con la tarjeta */
.ob-loading-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Spinner */
.spinner {
  width: 28px; height: 28px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top-color: var(--brand-primary-color, #FF5100);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-status p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  margin: 0;
}

/* Iframe contenedor */
#content-container { width: 100%; height: 100%; }
#content-container iframe { width: 100%; height: 100%; border: none; }