/* ============================================================
   Tutorial de bienvenida (onboarding) · Carnet Digital UNAS
   ============================================================ */
#vista-tutorial {
    background: linear-gradient(180deg, var(--verde-primario) 0%, var(--verde-oscuro) 100%);
    min-height: 100dvh; display: flex; flex-direction: column;
    padding: 0; padding-bottom: 0; user-select: none;
}
.tut-cabecera {
    display: flex; align-items: center; justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top)) 18px 0;
}
.tut-marca { color: var(--texto-claro-1); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tut-contador { color: var(--texto-claro-2); font-size: 12px; font-weight: 700; }

.tut-escena {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 18px 10px; text-align: center;
}
.tut-icono {
    width: 132px; height: 132px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; line-height: 1; margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.tut-icono.tut-icono-logo { background: var(--blanco); border-color: var(--blanco); }
.tut-icono img { width: 96px; height: 96px; object-fit: contain; }

.tut-tarjeta {
    background: var(--blanco); border-radius: 18px; padding: 22px 20px 18px;
    width: 100%; max-width: 420px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}
.tut-entrando { animation: tut-aparecer 0.28s ease; }
@keyframes tut-aparecer {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tut-titulo { font-size: 22px; font-weight: 800; color: var(--verde-primario); margin-bottom: 8px; }
.tut-texto { font-size: 15px; line-height: 1.5; color: var(--texto-oscuro); }
.tut-nota {
    margin-top: 12px; font-size: 13px; color: var(--verde-acento); font-weight: 700;
    background: var(--verde-suave); border-radius: 10px; padding: 8px 10px;
}

/* Maqueta de la barra inferior con la pestaña resaltada */
.tut-tabs {
    display: flex; margin-top: 16px; border: 1px solid var(--gris-borde); border-radius: 12px;
    background: var(--fondo-claro); padding: 6px 2px; overflow: hidden;
}
.tut-tabs > span {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; font-weight: 700; color: var(--gris-deshabilitado); padding: 4px 0; border-radius: 8px;
}
.tut-tabs > span > span { font-size: 20px; }
.tut-tabs > span.activo {
    color: var(--verde-primario); background: var(--blanco);
    box-shadow: 0 0 0 2px var(--ambar); animation: tut-pulso 1.4s ease-in-out infinite;
}
@keyframes tut-pulso {
    0%, 100% { box-shadow: 0 0 0 2px var(--ambar); }
    50%      { box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.45); }
}

.tut-puntos { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.tut-puntos span {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}
.tut-puntos span.activo { width: 22px; border-radius: 4px; background: var(--ambar); }

.tut-pie {
    padding: 14px 18px max(18px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 6px;
}
.tut-fila-botones { display: flex; gap: 10px; align-items: center; }
.tut-fila-botones .boton { margin-top: 0; }
.boton-tut-atras {
    flex: 0 0 auto; width: auto; padding: 0 18px; background: rgba(255, 255, 255, 0.14);
    color: var(--blanco); border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.boton-tut-atras.invisible { display: none; }   /* en el primer paso el botón «Siguiente» ocupa todo el ancho */
.boton-tut-siguiente { flex: 1; background: var(--ambar); color: var(--verde-oscuro); }
.boton-tut-siguiente:active { filter: brightness(0.92); }
.boton-tut-omitir {
    background: none; border: none; color: var(--texto-claro-2); font-family: inherit;
    font-size: 14px; font-weight: 700; padding: 10px; cursor: pointer; text-align: center;
}

@media (max-height: 640px) {
    .tut-icono { width: 96px; height: 96px; font-size: 48px; margin-bottom: 14px; }
    .tut-icono img { width: 70px; height: 70px; }
    .tut-titulo { font-size: 19px; }
    .tut-texto { font-size: 14px; }
}
